Drew Posted January 6, 2008 Share Posted January 6, 2008 Is the a way to do this where it takes the current position, moves, and goes back to this position? Kinda like this: HotKeySet('{esc}', '_Exit') HotKeySet('`', '_HotKey') $pos = MouseGetPos() <------------------------( Spot A )----------------------------- I want a way for it to get THIS position BEFORE it moves. Func _HotKey AutoItSetOption("MouseCoordMode", 0) MouseClick( "left", 244, 365, 1, 0); <--------------------------------- ( This is it moving, and clicking somewhere else. ) MouseMove( $mousepos[0], $mousepos[1])<------------------------ And go back to Spot A here. EndFunc Link to comment Share on other sites More sharing options...
xzaz Posted January 6, 2008 Share Posted January 6, 2008 (edited) HotKeySet('{esc}', '_Exit') HotKeySet('`', '_HotKey') While 1 $pos = MouseGetPos() wend Func _Hotkey() MouseMove($pos[0],$pos[1]) MouseClick( "left", 244, 365, 1, 0) EndFunc Like this? Edited January 6, 2008 by xzaz Small Color Picker v0.2 | Travian bot Link to comment Share on other sites More sharing options...
Drew Posted January 6, 2008 Author Share Posted January 6, 2008 Absolutely magnificent. Thanks a ton man. 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