MaeX Posted December 16, 2007 Share Posted December 16, 2007 (edited) Hi im a noob :-) but i have tested a code. Need the code to Send Mouse2 to the actuall program. For example Send("Pause") to Send Pause ... but what i have to do to send Mouse2 ? Thx for help :-) Edited December 16, 2007 by MaeX Link to comment Share on other sites More sharing options...
Jex Posted December 16, 2007 Share Posted December 16, 2007 MouseClick("Right") My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
MaeX Posted December 16, 2007 Author Share Posted December 16, 2007 Thx, but how i have to integrate in this script ? Thx for Help!! HotKeySet("{PAUSE}", "Start") HotKeySet("!{PAUSE}","Quit") TogglePause() func Start() HotKeySet("{PAUSE}") HotKeySet("{PAUSE}", "TogglePause") ToolTip('Test started.',0,0) While 1 Send("MouseClick("Right")) Sleep(Random(120000,240000)) WEnd EndFunc Func TogglePause() ToolTip('Test Stopped.',0,0) HotKeySet("{PAUSE}") HotKeySet("{PAUSE}", "Start") While 1 sleep(100) WEnd EndFunc func Quit() Exit EndFunc Link to comment Share on other sites More sharing options...
Jex Posted December 16, 2007 Share Posted December 16, 2007 Don't use Send. MouseClick -------------------------------------------------------------------------------- Perform a mouse click operation. MouseClick ( "button" [, x, y [, clicks [, speed ]]] ) Parameters button The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". x, y [optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used (default). clicks [optional] The number of times to click the mouse. Default is 1. speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
olivarra1 Posted December 16, 2007 Share Posted December 16, 2007 Like this ^^HotKeySet("{PAUSE}", "Start")HotKeySet("!{PAUSE}","Quit")TogglePause() func Start()HotKeySet("{PAUSE}")HotKeySet("{PAUSE}", "TogglePause")ToolTip('Test started.',0,0)While 1MouseClick("Right")Sleep(Random(120000,240000))WEndEndFuncFunc TogglePause()ToolTip('Test Stopped.',0,0)HotKeySet("{PAUSE}")HotKeySet("{PAUSE}", "Start")While 1sleep(100)WEndEndFuncfunc Quit()ExitEndFunc 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