Sign in to follow this  
Followers 0
Tyraelswrath

RE:Quick Question!

3 posts in this topic

So thats my cod that i typed up with the skeleton that the other guy gave me,

umm what its used for its sequential spell casting in World of Warcraft!

basically a lazy mage script i'm working on.

So far when ever i hit one of the hot keys it does my spells in game using Send commands...

I was wonder if there was a way to possibly add a GUI with a simple splash screen (ON//OFF)

and maybe if we wanna get complicated a water to set hot keys... but i can always just type em up.

What i could like is a Cancel Button that will Cancel any action im doing and go back to the While 1

Cause i mean sometimes i have rather long spell cast chains in there like 8-12 spells and sometimes the monster dies in like 4...

so like and override button to just drop what its doing and go back to doing nothing in other words cancel the hot key function....

And i have a question....

why cant i make i own functions....

Something allong the lines of...

HotKeySet("{NUMPADDOT}","Scorch1")

HotKeySet("{NUMPAD0}","FballDps")

HotKeySet("{F1}","PoM1Nuke")

HotKeySet("{NUMPAD3}", "ArcMiss")

HotKeySet("{NUMPAD2}", "ScorchSpam")

Instead of

HotKeySet("{NUMPADDOT}","Terminate")

HotKeySet("{NUMPAD0}","DoSomething")

HotKeySet("{F1}","ShowMessage")

HotKeySet("{NUMPAD3}", "TogglePause")

HotKeySet("{NUMPAD2}", "Pause")

Anyways to define my own funcitions that way whne i make this script larger it would be confusing to know which is which....

Anyways tell me what you think and im sorry for the long read!

Share this post


Link to post
Share on other sites



So thats my cod that i typed up with the skeleton that the other guy gave me,

umm what its used for its sequential spell casting in World of Warcraft!

basically a lazy mage script i'm working on.

So far when ever i hit one of the hot keys it does my spells in game using Send commands...

I was wonder if there was a way to possibly add a GUI with a simple splash screen (ON//OFF)

and maybe if we wanna get complicated a water to set hot keys... but i can always just type em up.

What i could like is a Cancel Button that will Cancel any action im doing and go back to the While 1

Cause i mean sometimes i have rather long spell cast chains in there like 8-12 spells and sometimes the monster dies in like 4...

so like and override button to just drop what its doing and go back to doing nothing in other words cancel the hot key function....

And i have a question....

why cant i make i own functions....

Something allong the lines of...

HotKeySet("{NUMPADDOT}","Scorch1")

HotKeySet("{NUMPAD0}","FballDps")

HotKeySet("{F1}","PoM1Nuke")

HotKeySet("{NUMPAD3}", "ArcMiss")

HotKeySet("{NUMPAD2}", "ScorchSpam")

Instead of

HotKeySet("{NUMPADDOT}","Terminate")

HotKeySet("{NUMPAD0}","DoSomething")

HotKeySet("{F1}","ShowMessage")

HotKeySet("{NUMPAD3}", "TogglePause")

HotKeySet("{NUMPAD2}", "Pause")

Anyways to define my own funcitions that way whne i make this script larger it would be confusing to know which is which....

Anyways tell me what you think and im sorry for the long read!

What do you need exactly? If you want a splash screen, you can use FileInstall to install the jpg to temp folder and use SplashOn to call it.

If you want a GUI, make sure you have GUIConstants.au3 included at beginning, just check out the help file and you can learn a lot more.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Because of the way HotKey Functions are executed (pausing the rest of the script), if you are going to use them and want to cancel the function part of the way through, you will need to check whether to leave somewhere in the function.

One way would be like this:

Add the following function:

#include <Misc.au3>
Global $DLL = DllOpen("user32.dll") ;This line must be before your Send functions
Func _CheckSend($Keys)
    If _IsPressed("1B",$DLL) Then ;If Escape is pressed break loop
        Return 1
    Else
        Send($Keys)
    EndIf
EndFuncoÝ÷ Ø Ý
§æ¥ò¢êÒzwjºR¢g{*®¢×îËb¢{-¡«­¢+Ù%}
¡­M¹ ÅÕ½ÐíM½µ-äÅÕ½Ðì¤ôÄQ¡¸IÑÕɸÀ

Not a very efficient way, but it works.

Edited by Gabburd

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