 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Palmatex
Joined: 30 Jun 2008 Posts: 9
|
Posted: Fri Jul 11, 2008 9:41 am Post subject: Anyone can fix it? |
|
|
Hey guys i have a script but i want to turn off for 5 second when i press 2 i try this but dont work enyone can fix it?
| Code: | *2::
Hotkey, ~LButton, ~LButton, Off
SetTimer, ActivateRapidFire, -5000
ActivateRapidFire:
Hotkey, ~LButton, ~LButton, On
~LButton::
if !GetKeyState("ScrollLock", "T")
return
Loop
{
MouseClick, left,,, 1, 0, U
If !GetKeyState("LButton", "P")
break ; break after up event to prevent button 'sticking'
MouseClick, left,,, 1, 0, D
}
Return |
|
|
| Back to top |
|
 |
Palmatex
Joined: 30 Jun 2008 Posts: 9
|
Posted: Fri Jul 11, 2008 10:01 am Post subject: |
|
|
Sorry i fixed
| Code: | *2::
Hotkey, ~LButton, ~LButton, Off
SetTimer, ActivateRapidFire, -5000
Return
ActivateRapidFire:
Hotkey, ~LButton, ~LButton, On
Return
~LButton::
if !GetKeyState("ScrollLock", "T")
return
Loop
{
MouseClick, left,,, 1, 0, U
If !GetKeyState("LButton", "P")
break ; break after up event to prevent button 'sticking'
MouseClick, left,,, 1, 0, D
}
Return |
Last edited by Palmatex on Fri Jul 11, 2008 10:02 am; edited 1 time in total |
|
| Back to top |
|
 |
tonne
Joined: 06 Jun 2006 Posts: 1197 Location: Denmark
|
Posted: Fri Jul 11, 2008 10:01 am Post subject: |
|
|
Possibly | Code: |
*2::
Hotkey, ~LButton, Off ; ~LButton, removed
SetTimer, ActivateRapidFire, -5000
return
ActivateRapidFire:
Hotkey, ~LButton, On ; ~LButton, removed
return
~LButton::
if !GetKeyState("ScrollLock", "T")
return
Loop
{
MouseClick, left,,, 1, 0, U
If !GetKeyState("LButton", "P")
break ; break after up event to prevent button 'sticking'
MouseClick, left,,, 1, 0, D
}
Return |
_________________ there's a dog barking close within the range of my ear
sounds like he wants to escape the chain
he would probably bite me to death if he could
but the chain lets me spit in his face
- Kashmir |
|
| Back to top |
|
 |
Palmatex
Joined: 30 Jun 2008 Posts: 9
|
Posted: Fri Jul 11, 2008 10:02 am Post subject: |
|
|
Thank You  |
|
| 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
|