HarleyD Posted March 1, 2011 Share Posted March 1, 2011 iv read help and iv looked on youtube im a compleet noob ..and been messing around for serveral hours with great frustration so i figured i would finaly ask, im trying to do 2 scripts both probably short if i can figure out how to use the command... first one im trying to do is just click were ever my mouse is 100x .... MouseClick ( "left" [, x, y [, 100 [, 0 ]]] ) this is what i tryed and others but i cant seem to get it to work i tryed adding an $var = defalt and puting it were the x,y are but that didnt work.... also i tryed to maybe just mouseclick "left" and maybe just loop it 100x but i cant seem to figure out loop....other one i wanted to do was just randomly click every 1-10 seconds i know you guys on here probably get buged for stuff all the time sorry ahead of time i tryed for serveral hours with no avail. Link to comment Share on other sites More sharing options...
JohnOne Posted March 1, 2011 Share Posted March 1, 2011 MouseClick("Right",Default,Default,100) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
HarleyD Posted March 1, 2011 Author Share Posted March 1, 2011 MouseClick("Right",Default,Default,100)ahhh default default.... and i dont have to have a move, ok thank you john seting me in the right direction Link to comment Share on other sites More sharing options...
HarleyD Posted March 1, 2011 Author Share Posted March 1, 2011 (edited) ok i got it to work fine although problem im having now is its not very usefull just runing script and it hiting it 100times with no real way to controle it... what should i do to make me have to press a key to use it? this is what i tryed.... func click100 MouseClick("Left",Default,Default,100) EndFunc hotkeyset ("F3" [, "click100"]) ==> Missing separator character after keyword.: func click100 func click100^ ERROR what am i doing wrong? Edited March 1, 2011 by HarleyD Link to comment Share on other sites More sharing options...
HarleyD Posted March 1, 2011 Author Share Posted March 1, 2011 ok this is my new one func click100 () MouseClick("Left",Default,Default,100) EndFunc hotkeyset ("F3" [, "click100"]) and im geting hotkeyset ("F3" [, "click100"]) hotkeyset ("F3" ^ ERROR Link to comment Share on other sites More sharing options...
JohnOne Posted March 2, 2011 Share Posted March 2, 2011 (edited) hotkeyset ("F3" [, "click100"])You should have figured from your earlier post that the brackets highlighted are not supposed to be present, they are in the helpfile to indicat that the parameters they refer to are optional.You might want to have a look and functions too, the need parenths, and function keys in hotkeyset need curly bracets Edited March 2, 2011 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
HarleyD Posted March 2, 2011 Author Share Posted March 2, 2011 i think im just going to end up paying some one lol Link to comment Share on other sites More sharing options...
ojef1 Posted March 2, 2011 Share Posted March 2, 2011 click100() Func click100() MouseClick("left", default, default, 100) msgbox(0,"done", "done") EndFunc don't forget to call the function Link to comment Share on other sites More sharing options...
JohnOne Posted March 2, 2011 Share Posted March 2, 2011 _MyFunc() ; This Invokes the below function, and performs the code inside it. Func _MyFunc() MouseClick("Right") EndFunc I'll forward the bill. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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