Hawker Posted November 9, 2007 Share Posted November 9, 2007 could anyone tell me how to make a script that does double right click every 1 second with a key for on/off? Link to comment Share on other sites More sharing options...
Generator Posted November 9, 2007 Share Posted November 9, 2007 By that, Look in HotKeySet() MouseClick() Sleep() While/WEnd Loop Link to comment Share on other sites More sharing options...
CyNDeR Posted November 9, 2007 Share Posted November 9, 2007 (edited) Sure. Download the latest Autoit, open the help file and lookup, HotKeySet(), Sleep(), MouseClick(), and While/WEnd loop. EDIT: oops, beat me to it. Edited November 9, 2007 by CyNDeR My scripts: Random Painter Link to comment Share on other sites More sharing options...
Hawker Posted November 9, 2007 Author Share Posted November 9, 2007 um could uguys write one up fast for me? lol first time using autoit Link to comment Share on other sites More sharing options...
CyNDeR Posted November 9, 2007 Share Posted November 9, 2007 Then this will be a really good script for you to start on. My scripts: Random Painter Link to comment Share on other sites More sharing options...
Generator Posted November 9, 2007 Share Posted November 9, 2007 (edited) um could uguys write one up fast for me? lol first time using autoitEdit: Try it and post here for help. Edited November 9, 2007 by Generator Link to comment Share on other sites More sharing options...
Hawker Posted November 9, 2007 Author Share Posted November 9, 2007 (edited) it's harder than i thought. harder then actools for sure Edited November 9, 2007 by Hawker Link to comment Share on other sites More sharing options...
Hawker Posted November 9, 2007 Author Share Posted November 9, 2007 (edited) um...help plz ; Press Home to terminate script, ] to "pause" Global $Paused HotKeySet("{]}", "TogglePause") HotKeySet("{Home}", "Terminate") HotKeySet("{F12}", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause(]) $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate(home) Exit 0 EndFunc Func ShowMessage(F12) MsgBox(4096,"","This is a message.") EndFunc ; Double click at the current mouse pos MouseClick("right") MouseClick("right") Sleep(1000) ;one second $i = 0 While $i <= 10 MsgBox(0, "Value of $i is:", $i) $i = $i + 1 WEnd Edited November 9, 2007 by Hawker Link to comment Share on other sites More sharing options...
Generator Posted November 9, 2007 Share Posted November 9, 2007 Global $Paused=0 HotKeySet("{]}", "TogglePause") HotKeySet("{Home}", "Terminate") HotKeySet("{F12}", "ShowMessage") ;Shift-Alt-d HotKeySet("{F11}", "_Click") ;;;; Body of program would go here ;;;; While 1 Sleep(1) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc ; Double click at the current mouse pos Func _Click() While Not $Paused MouseClick("right") MouseClick("right") Sleep(1000) ;five seconds WEnd EndFunc Link to comment Share on other sites More sharing options...
Hawker Posted November 9, 2007 Author Share Posted November 9, 2007 thx for the help 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