Gnome Programming
« Contest #1 »

Welcome Guest. Please Login or Register.
Nov 21st, 2009, 5:58pm



Notices Welcome to the Gnome forum!

Go check out the newest Gnome version.

Welcome to the Gnome forum.
JustLiberty Forum
LibertyBasic Forum
Fire BASIC
GameBASIC
Feather Script

BPL
Programmers Paradise
Gnome is a free, easy and open source programming language. Gnomes focus is to make programming easy and the developing enviroment even easier. Thanks alot to Montenegro too!

Pages: 1  Reply Notify Send Topic Print
 thread  Author  Topic: Contest #1  (Read 206 times)
Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Contest #1
« Thread started on: Apr 6th, 2007, 02:19am »
Quote

Contest #1!
This contest is all about thinking of the best command to add to Gnome! Maybe even converting LB to Gnome.
Something new, something easy...

The winner will be in the Help file and Help menu Permanantly!!Name and website are optional.
Become a Gnome Developer(?)
And you can say: I thought of that command!
User IP Logged

SS
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 34
xx Re: Contest #1
« Reply #1 on: Apr 6th, 2007, 5:07pm »
Quote

How about a command to open a window and add buttons on it.

Code:
mainwin.off()
gui.win {
_Normal
("Window title")
}

gui.button {
("Button name")
//handle\\
UL
45
85
65
95
}

//handle\\
text.win {
_TW_NORMAL
("Notepad")
}
 

 


I will try to work on the lb command so that it can convert to gnome (in the scripting to allow this command to work)
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #2 on: Apr 7th, 2007, 12:58pm »
Quote

ok thanks. thats a good idea. I'll still have to add the gui.win command and the co-ordinates but thats ok. I just released Gnome v0.30 Beta. its on the wikispace. I added quite a bit more commands this time wink
« Last Edit: Apr 7th, 2007, 1:16pm by Gnome » User IP Logged

SS
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 34
xx Re: Contest #1
« Reply #3 on: Apr 7th, 2007, 6:52pm »
Quote

As i am working on it, How about a API call. something like this

Code:

dll.call
("user32")
("title") as long
("message") as long


 


It still need some work on it, but thats the best I can think of.
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #4 on: Apr 7th, 2007, 7:37pm »
Quote

ok yeah that would be cool. I like the idea too, i want to make Gnome easy and that looks cool! wink
User IP Logged

SS
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 34
xx Re: Contest #1
« Reply #5 on: Apr 7th, 2007, 8:27pm »
Quote

and maybe something that can do some mouse moving(marcos)

(I will make something to help you out)

Code:
mouse.move {
45 west
90 north_south
10 north
20 east
}

 


I know that how todo that in some languages, but lb will take allow of api calls to do something like that (from what I know)
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #6 on: Apr 7th, 2007, 8:30pm »
Quote

yeah i really like that grin wink
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #7 on: Apr 8th, 2007, 12:59am »
Quote

I also need help on the Kill Gnome Programs menu.
User IP Logged

SS
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 34
xx Re: Contest #1
« Reply #8 on: Apr 8th, 2007, 12:12pm »
Quote

LB's Method in kill programs is making a "Force" on the exe is closing so that if is in a loop, it can force it out of the loop.

EDIT BY NITESH: Changed to make words more readable and understandable
« Last Edit: Apr 10th, 2007, 10:29pm by nitesh201 » User IP Logged

nitesh201
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 8
xx Re: Contest #1
« Reply #9 on: Apr 10th, 2007, 10:30pm »
Quote

you can also kill the process using the WinAPI.
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #10 on: Apr 10th, 2007, 10:35pm »
Quote

Can you explain more abou this WinAPI?
User IP Logged

nitesh201
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 8
xx Re: Contest #1
« Reply #11 on: Apr 10th, 2007, 10:46pm »
Quote

look at lnedads forum. He designed an app using the WinAPI to do this.
User IP Logged

Gnome
Who?
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM


Posts: 108
xx Re: Contest #1
« Reply #12 on: Apr 10th, 2007, 10:52pm »
Quote

NPProcess? I downloaded that but there is no source code.
User IP Logged

SS
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 34
xx Re: Contest #1
« Reply #13 on: Apr 11th, 2007, 9:26pm »
Quote

Maybe its time for you to hit the books and the newsletters.

EDIT:

Here is a code you can use

Code:
sub closeConsole
 call trapcloseConsole "#handle"
 end sub

sub trapcloseConsole handle$
 calldll #user32, "SetParent", hMainWndParent as ulong, hMainWnd as ulong, result as ulong
 calldll #user32, "DestroyWindow", hMainWndParent as ulong, result as void
end sub

 


So try this and see if this will work.
« Last Edit: Apr 12th, 2007, 1:20pm by SS » User IP Logged

Pages: 1  Reply Notify Send Topic Print
« Previous Topic | Next Topic »


New Monthly Ad-Free Plan!

$6.99 Gets 50,000 Ad-Free Pageviews!
| Free Shoutboxes | Hookah |

This Board Hosted For FREE By Conforums ©
Get Your Own Free Message Board!