FredMeister Posted July 10, 2020 Share Posted July 10, 2020 Func StartProgram($x) Send("{F1}") sleep(100) MouseClick("left", 580, 252, 1, 0) MouseClick("left", 580, 291, 1, 0) MouseClick("left", 623, 252, 1, 0) Send("{F2}") MouseClick("left", 681, 445, 1, 0) Send("{F3}") MouseClick("left", 581, 420, 1, 0) Send("{F1}") EndFunc Would it be possible to make the curser end where it previously was before the scipt was executed? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 10, 2020 Developers Share Posted July 10, 2020 5 minutes ago, FredMeister said: Would it be possible to make the curser end where it previously was before the scipt was executed? That is "as clear as mud". Try explaining it a different way and maybe tell us what it is you are trying to automate! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FredMeister Posted July 10, 2020 Author Share Posted July 10, 2020 Haha Alright so ill post the full script here: HotKeySet("{1}", "StartProgram") $x = WinActivate("Runelite - Daesh Karih") AutoItSetOption("MouseCoordMode", 0) While 1 sleep(100) WEnd Func StartProgram($x) Send("{F1}") sleep(100) MouseClick("left", 580, 252, 1, 0) MouseClick("left", 580, 291, 1, 0) MouseClick("left", 623, 252, 1, 0) Send("{F2}") MouseClick("left", 681, 445, 1, 0) Send("{F3}") MouseClick("left", 581, 420, 1, 0) Send("{F1}") EndFunc It works fine but the problem is i want it to end where my mouse left off before i pressed the hotkey. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 10, 2020 Developers Share Posted July 10, 2020 (edited) Well ... that only tells me you are automating a game.... so: Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team Edited July 10, 2020 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts