AutoHotkey Community

It is currently May 26th, 2012, 2:14 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Button Loop
PostPosted: January 14th, 2009, 4:32 pm 
Offline

Joined: January 9th, 2009, 9:25 pm
Posts: 11
After pushing this button once, and then pushing it again, i want the code to rerun. But after its pushed once it cant be pushed again until the code has run all the way through. How do i get it to rerun when its pushed multiple times without waiting for the rest of the code to finish?

Code:
!r::
Gui, Show, Options X5 Y5 W500 H200, Somename,
Gui, Add, Button, X445 Y5 W50 H30, Run
Return

ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe


And seriously, i know theirs a quick fix to this to this so please answer with some kind of help.[/code]


Last edited by Holy Macro on January 15th, 2009, 1:47 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2009, 4:51 pm 
Offline
User avatar

Joined: August 4th, 2008, 1:22 pm
Posts: 241
Location: UK
Oh wait what is the rest of the code


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2009, 6:25 pm 
Code:
#MaxThreadsPerHotkey 9
ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2009, 9:09 pm 
Offline

Joined: January 9th, 2009, 9:25 pm
Posts: 11
Ok my mistake, sorry, heres the entire piece.


Code:
!r::
Gui, Show, Options X5 Y5 W500 H200, Somename,
Gui, Add, Button, X445 Y5 W50 H30, Run
Return

ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2009, 1:42 pm 
Offline

Joined: January 9th, 2009, 9:25 pm
Posts: 11
...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: G. Sperotto, LazyMan, poserpro, Tilter_of_Windmills and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group