 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Cyber
Joined: 10 Mar 2009 Posts: 86 Location: Nsw/Syd/Kiama
|
Posted: Fri Feb 19, 2010 3:24 am Post subject: Quick question: gui and commands |
|
|
Hey guys, thanks for taking the time to read this.
im realativly new, and not to good with gui.
iv use the smart gui to make a simple gui interface.
i have created a "start macro" button,
i have also writen a script that sends mouse clicks to certain selected co-ordinates.
i whish to assign the start button to the script
il show a quick eg of what i was thinking but it obviously doesnt work =]
StartMacro::
loop 9999
(
sleeprandom , 1200,1445
click 1234,1234
sleep 200000
)
ps
"StartMacro" is the name of the button, and its all 1 script. im not trying to get the gui to run a eperat script _________________ ---{+.-}--- |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 19, 2010 5:53 am Post subject: Re: Quick question: gui and commands |
|
|
add a g label right before the comma that you put the name in durring the GUI.
For example:
In your GUI write you have:
| Code: | | Gui, Add, Button, gStartMacro, Start Macro |
Elsewhere:
| Code: |
StartMacro:
loop 9999
(
sleeprandom , 1200,1445
click 1234,1234
sleep 200000
)
|
Read more about the g label for buttons here. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 19, 2010 12:10 pm Post subject: |
|
|
thanks buddy, that helped alot.
=]
~cyber |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|