lummel Posted November 30, 2008 Posted November 30, 2008 hi, I wanted to make a script which hold ctrl + right mouse button for hours, but i dont know if theres a command for that. Any1 know if there's a command to hold right mouse button and ctrl at the same time for hours?
darzanmihai Posted November 30, 2008 Posted November 30, 2008 hi, I wanted to make a script which hold ctrl + right mouse button for hours, but i dont know if theres a command for that. Any1 know if there's a command to hold right mouse button and ctrl at the same time for hours?MouseDown ( "right" ) Send("{CTRLDOWN}") I do not like stupid and idiot people that write idiot things...If you are one, do not write.
lummel Posted November 30, 2008 Author Posted November 30, 2008 HotKeySet("{END}", "_Exit") HotKeySet("{PAUSE}", "_Pause") Global $Paused While 1 MouseDown ( "right" ) Send("{CTRLDOWN}") WEnd Func _Pause() $Paused = NOT $Paused While $Paused Sleep(1) WEnd EndFunc Func _Exit() Exit EndFunc This is what I got but when I start the script and press pause and go to game it doesnt do it again when i press pause again. What I want is that it will click right mouse button once but then hold it forever and same for ctrl.
darzanmihai Posted December 1, 2008 Posted December 1, 2008 I think this is what you are looking for: HotKeySet("{END}", "_Exit") HotKeySet("{PAUSE}", "_Pause") Global $Paused=False While 1 WEnd Func _Pause() $Paused = NOT $Paused If $Paused=True Then ToolTip("Paused") MouseUp ( "right" ) Send("{CTRLUP}") Else ToolTip("Started") MouseDown ( "right" ) Send("{CTRLuP}") EndIf While $Paused=True Sleep(10) WEnd EndFunc Func _Exit() Exit EndFunc I do not like stupid and idiot people that write idiot things...If you are one, do not write.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now