Author |
Topic: Contest #1 (Read 206 times) |
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Contest #1
« Thread started on: Apr 6th, 2007, 02:19am » |
|
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!
|
|
Logged
|
|
|
|
SS
Administrator
    
member is offline


Posts: 34
|
 |
Re: Contest #1
« Reply #1 on: Apr 6th, 2007, 5:07pm » |
|
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)
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #2 on: Apr 7th, 2007, 12:58pm » |
|
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
|
| « Last Edit: Apr 7th, 2007, 1:16pm by Gnome » |
Logged
|
|
|
|
SS
Administrator
    
member is offline


Posts: 34
|
 |
Re: Contest #1
« Reply #3 on: Apr 7th, 2007, 6:52pm » |
|
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.
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #4 on: Apr 7th, 2007, 7:37pm » |
|
ok yeah that would be cool. I like the idea too, i want to make Gnome easy and that looks cool!
|
|
Logged
|
|
|
|
SS
Administrator
    
member is offline


Posts: 34
|
 |
Re: Contest #1
« Reply #5 on: Apr 7th, 2007, 8:27pm » |
|
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)
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #6 on: Apr 7th, 2007, 8:30pm » |
|
yeah i really like that
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #7 on: Apr 8th, 2007, 12:59am » |
|
I also need help on the Kill Gnome Programs menu.
|
|
Logged
|
|
|
|
SS
Administrator
    
member is offline


Posts: 34
|
 |
Re: Contest #1
« Reply #8 on: Apr 8th, 2007, 12:12pm » |
|
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 » |
Logged
|
|
|
|
nitesh201
Administrator
    
member is offline


Posts: 8
|
 |
Re: Contest #1
« Reply #9 on: Apr 10th, 2007, 10:30pm » |
|
you can also kill the process using the WinAPI.
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #10 on: Apr 10th, 2007, 10:35pm » |
|
Can you explain more abou this WinAPI?
|
|
Logged
|
|
|
|
nitesh201
Administrator
    
member is offline


Posts: 8
|
 |
Re: Contest #1
« Reply #11 on: Apr 10th, 2007, 10:46pm » |
|
look at lnedads forum. He designed an app using the WinAPI to do this.
|
|
Logged
|
|
|
|
Gnome
Who? Administrator
    
member is offline


Posts: 108
|
 |
Re: Contest #1
« Reply #12 on: Apr 10th, 2007, 10:52pm » |
|
NPProcess? I downloaded that but there is no source code.
|
|
Logged
|
|
|
|
SS
Administrator
    
member is offline


Posts: 34
|
 |
Re: Contest #1
« Reply #13 on: Apr 11th, 2007, 9:26pm » |
|
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 » |
Logged
|
|
|
|
|