savagenoob Posted May 19, 2013 Share Posted May 19, 2013 I am trying to create a script that does what my title says, this is what I have: HotKeySet("{ESC}", "Terminate") Sleep(4000) While 1 MouseDown("right") Sleep(1000) MouseUp("right") WEnd Func Terminate() Exit 0 EndFunc but when i execute it, it holds the right click but it never releases it....any ideas? Link to comment Share on other sites More sharing options...
Terenz Posted May 19, 2013 Share Posted May 19, 2013 Try this: Sleep(4000) MouseDown("right") Sleep(1000) MouseUp("right") What is your goal? Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
savagenoob Posted May 19, 2013 Author Share Posted May 19, 2013 (edited) That works for some odd reason, when i do the While 1 loop it doesnt release and doesnt repeat. Did I say game? I meant a program for a school project. Edited May 19, 2013 by savagenoob Link to comment Share on other sites More sharing options...
Terenz Posted May 19, 2013 Share Posted May 19, 2013 (edited) Sorry but game automation isn't allowed here, read the rules: http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules Edited May 19, 2013 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
Developers Jos Posted May 19, 2013 Developers Share Posted May 19, 2013 Did I say game? I meant a program for a school project. Click SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts