Sign in to follow this  
Followers 0
forumghost

Why doesnt the Hotkey to end the script work?

5 posts in this topic

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



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

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

Don't use brackets "{" with normal keys

HotKeySet("x", "Quit")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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  
Followers 0