Jump to content
Sign in to follow this  
forumghost

Why doesnt the Hotkey to end the script work?

Recommended Posts

forumghost

Dim $mortalstrike, $battleshout

HotKeySet("{F1}", "Start");

HotKeySet("{x}", "Quit");

Func Quit()

Exit

EndFunc

Func Start()

While 1

ControlSend("", "", "", "{2}")

ControlSend("World of Warcraft", "", "", "{1}")

$mortalstrike = $mortalstrike+1

$battleshout = $battleshout+1

If $mortalstrike >= 8 Then

ControlSend("World of Warcraft", "", "", "{F}")

$mortalstrike = 0

EndIf

If $battleshout >= 170 Then

ControlSend("World of Warcraft", "", "", "{ENTER}")

ControlSend("World of Warcraft", "", "", "/cast Schlachtruf")

Sleep(20)

ControlSend("World of Warcraft", "", "", "{ENTER}")

$battleshout = 0

EndIf

sleep(1000)

WEnd

EndFunc

While 1

sleep(200)

Wend

In theory it should stop when I press X but it doesn't =(

Share this post


Link to post
Share on other sites
Tasmania

X is most likely assigned to something inside of World of Warcraft. Try assigning it to CTRL-X or ALT-CTRL-X. Something obscure in that manner.

Share this post


Link to post
Share on other sites
forumghost

X is most likely assigned to something inside of World of Warcraft. Try assigning it to CTRL-X or ALT-CTRL-X. Something obscure in that manner.

I tried ctrl x but that doesnt work either :)

Share this post


Link to post
Share on other sites
Tasmania

Heh, that was the other thing I was going to mention, however I figured it was working... LOL.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.