AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Quick question: gui and commands

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Cyber



Joined: 10 Mar 2009
Posts: 86
Location: Nsw/Syd/Kiama

PostPosted: Fri Feb 19, 2010 3:24 am    Post subject: Quick question: gui and commands Reply with quote

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
View user's profile Send private message MSN Messenger
Guest






PostPosted: Fri Feb 19, 2010 5:53 am    Post subject: Re: Quick question: gui and commands Reply with quote

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






PostPosted: Fri Feb 19, 2010 12:10 pm    Post subject: Reply with quote

thanks buddy, that helped alot.

=]

~cyber
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group