Jump to content

Recommended Posts

Posted

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 :whistle:

Posted

MouseClick("Left", $x, $y)

would this work to repeat it if i just plugged this into the existing code?

func start()

Do

Send(MouseClick("Left", $610, 610$))

Sleep(Random(120000,240000))

Until $a = 1

EndFunc

Posted (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?

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(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 by adecoy95
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...