BlueForce Posted June 4, 2006 Share Posted June 4, 2006 (edited) i will post the code on what i have, but please do not execute the script because it's caused me to hit the reset button 2 times so far. soon as the script starts it begins clicking the left mouse button which i don't want it to do. i want it to click the left mouse button only after i clicked the left button and stop clicking when i click the right mouse button. sounds simple right? ive been fiddling around with this for a while taking parts from other scripts while searching and whatever. but those didnt work the way i wanted them to. anyways here's the script: HotKeySet("{NUMPAD0}","_Start") HotKeySet("{NUMPAD1}","_Pause") HotKeySet("{NUMPAD2}", "_Closing") If MouseClick("left") then Call ("_Start") If MouseClick("right") then Call ("_Pause") While 1 Sleep(200) WEnd Func _Start() While 1 Sleep(200) MouseClick("left") WEnd EndFunc Func _Pause() While 1 Sleep(200) WEnd EndFunc Func _Closing() Exit EndFunc thanks for your help/assistance with this. this is for a game called digital paintball, so i can have an easier time shooting like a automatic gun instead of clicking the mouse 8000 times a second myself Edited June 4, 2006 by BlueForce Link to comment Share on other sites More sharing options...
Valuater Posted June 4, 2006 Share Posted June 4, 2006 this wont work... its not proper use If MouseClick("left") then Call ("_Start") If MouseClick("right") then Call ("_Pause") look up _IsPressed() in help also your function loops do not have an exit capable see hotKeySet() in help, at the bottom is a great demo 8) Link to comment Share on other sites More sharing options...
BlueForce Posted June 4, 2006 Author Share Posted June 4, 2006 it tells me _IsPressed or any combination of IsPressed isnt a valid search in help. hmm mabye i don't have the beta version... Link to comment Share on other sites More sharing options...
Valuater Posted June 4, 2006 Share Posted June 4, 2006 (edited) it tells me _IsPressed or any combination of IsPressed isnt a valid search in help. hmm mabye i don't have the beta version...i cant remember if it is in the last public release, however you will need it right away( i havent used the last release in a long, long time and never looked back )its herehttp://www.autoitscript.com/forum/index.php?showtopic=197178 Edited June 4, 2006 by Valuater Link to comment Share on other sites More sharing options...
Nomad Posted June 4, 2006 Share Posted June 4, 2006 i cant remember if it is in the last release, however you will need it right away( i havent used the last release in a long, long time and never looked back )its herehttp://www.autoitscript.com/forum/index.php?showtopic=197178 _IsPressed is in the latest beta release, I use it often. Link to comment Share on other sites More sharing options...
BlueForce Posted June 4, 2006 Author Share Posted June 4, 2006 (edited) ahh thanks alot ill try and see how i can change this around now ok well here is what i have so far which isnt clicking the left mouse button when i hold it down: unorganized but w/e #include <Misc.au3> $dll = DllOpen("user32.dll") HotKeySet("{NUMPAD2}", "_Closing") Sleep(1000) While 1 If _IsPressed("01", $dll) Then MouseClick("left") EndIf WEnd DllClose($dll) Func _Closing() Exit EndFunc Edited June 4, 2006 by BlueForce Link to comment Share on other sites More sharing options...
BlueForce Posted June 5, 2006 Author Share Posted June 5, 2006 sorry to double post but editing it doesnt bring it up to the top. if i didnt do this my problem would never be solved :\ thanks Link to comment Share on other sites More sharing options...
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