Guest adecoy Posted November 12, 2006 Posted November 12, 2006 WinWaitActive("World of Warcraft") HotKeySet("{pause}","activate") HotKeySet("!{pause}","inactive") While 1 $a = 0 inactive() $a = 0 start() WEnd func inactive() Do Until $a = 1 EndFunc func activate() $a = 1 EndFunc func start() Do Send("{SPACE}") Sleep(Random(120000,240000)) Until $a = 1 EndFunc func quit() Exit EndFunc can anyone show me how to put a mouse click on a certain point on the screen into this? thanks in advance
AzKay Posted November 12, 2006 Posted November 12, 2006 MouseClick("Left", $x, $y) # MY LOVE FOR YOU... IS LIKE A TRUCK- #
adecoy95 Posted November 12, 2006 Posted November 12, 2006 MouseClick("Left", $x, $y)would this work to repeat it if i just plugged this into the existing code?func start()DoSend(MouseClick("Left", $610, 610$))Sleep(Random(120000,240000))Until $a = 1EndFunc
NELyon Posted November 12, 2006 Posted November 12, 2006 Get rid of the $ on 610's and it will work fine
adecoy95 Posted November 12, 2006 Posted November 12, 2006 (edited) WinWaitActive("World of Warcraft") HotKeySet("{pause}","activate") HotKeySet("!{pause}","inactive") While 1 $a = 0 inactive() $a = 0 start() WEnd func inactive() Do Until $a = 1 EndFunc func activate() $a = 1 EndFunc func start() Do MouseClick("Right") Sleep(Random(120000,240000)) Until $a = 1 EndFunc func quit() Exit EndFunc i think i can get away with this code, it seems to work, but why is is that when i try to run both of the scripts at the same time only one wants to work? expandcollapse popupWinWaitActive("World of Warcraft") HotKeySet("{pause}","activate") HotKeySet("!{pause}","inactive") While 1 $a = 0 inactive() $a = 0 start() WEnd func inactive() Do Until $a = 1 EndFunc func activate() $a = 1 EndFunc func start() Do Send("{SPACE}") Sleep(Random(120,240)) Until $a = 1 EndFunc func quit() Exit EndFunc While 1 $a = 0 inactive() $a = 0 start() WEnd func inactive() Do Until $a = 1 EndFunc func activate() $a = 1 EndFunc func start() Do MouseClick("Right") Sleep(Random(120,240)) Until $a = 1 EndFunc func quit() Exit EndFunc when i try this i get an error, is there any way to get this code to work? to have em both in there? it keeps saying duplicate function name Edited November 12, 2006 by adecoy95
Richard Robertson Posted November 12, 2006 Posted November 12, 2006 Of course it says duplicate function names. You have doubles of all the functions. If you want the functionality of both, you have to learn the language you are writing in. Just like if you want people to understand you, you have to know the language you are speaking in.
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