Jump to content
Sign in to follow this  
Dailin

Multi-Function Key Script...need some help!

Recommended Posts

Dailin

Been working with this script a bit and trying to get it to work in a game.

This is what i'd like to happen:

I hit "R" and it will bring up the first spell (Inferno). When i hit "R" again, it will bring up the second spell (Virtuous Wrath). I'd actually like to be able to cycle through about 7 different spells but im just trying to get two of them working to begin with.

Any help would be appreciated!! thx!

HotKeySet("r", "Key_R")

Func Key_R()

Send("{NUMPADSUB}");Rage

if $Key_R = 0 Then

Send("'");Inferno

$Key_R = 1

Elseif $Key_R = 1 Then

Send(".");Virtuous Wrath

$Key_R = 0

EndIf

EndFunc

Share this post


Link to post
Share on other sites
somdcomputerguy

Use HotKeySet to call the first function, at the end of that function, use HotKeySet again (with the same caller key) to call the second function, and so on..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Makaule

It may be useful to you:

http://www.autoitscript.com/forum/index.php?showannouncement=11&f=2

:blink:

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.