Jump to content

help me


Guest adecoy
 Share

Recommended Posts

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:

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...