AutoHotkey Community

It is currently May 27th, 2012, 11:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: February 10th, 2012, 11:16 pm 
Sleeps are freezing script when it's running... when I remove the "Sleep 100" script works good .. but buttons aren't work in game witout sleep ...

this is my edited code:



Code:
toggle = 0
toggle2 = 0
toggle3 = 0

SetTimer, go, 380
SetTimer, go1, 380
SetTimer, go3, 40

$1::
If toggle = 1
{
toggle = 0
return
}
If toggle = 0
{
toggle = 1
return
}
return

;----
$2::
If toggle2 = 1
{
toggle2 = 0
return
}
If toggle2 = 0
{
toggle2 = 1
return
}
return

;---
$3::
If toggle3 = 1
{
toggle3 = 0
return
}
If toggle3 = 0
{
toggle3 = 1
return
}
return




Go:
If toggle = 1
{
Send {1 down}
sleep 100
Send {1 up}
}
return

Go1:
If toggle2 = 1
{
Send {2 down}
sleep 100
Send {2 up}
}
return

Go3:
If toggle3 = 1
{
Send {3 down}
sleep 40
Send {3 up}
}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2012, 2:10 am 
Offline

Joined: August 25th, 2011, 8:41 pm
Posts: 460
Well it worked fine for me, but I cannot test it in your application, where probably lies the problem, but if it works fine now good for you!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2012, 2:47 pm 
You're saying it wrong .. it freezes well :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Edd and 17 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