Sign in to follow this  
Followers 0
Nimpt

Strange Request

8 posts in this topic

Hello to all:

I've been searching in the forums for some time but i cant find a way to solve this,basicly what I need is:

A script to use in Worlds of Warcraft that when I press the "K" key for example it presses the key's "1,2,3,4,5" but with intervals of half a second between them,something like this:

I hit "K"

Script clicks "1"

0.5sec

Script clicks "2"

0.5sec

....

Script clicks "5"

and then all the process is repeated when i press the "K" again

Thnx for all the help

Since I cant do a macro in game to cast a buff in diferent players of the party im gonna make 5 macros each macro for each player of the party and then keybinding them to 1,2,3,4,5 so when I hit "K" the all 5 macros will work separated for 0.5sec each.

Share this post


Link to post
Share on other sites



Hi,

it s all in the helpfile:

HotKeySet("k", "start")
HotKeySet("q", "_end")

Opt("SendKeyDelay", 500)
While 1
    Sleep(1000)
WEnd
Func start()
    Send("1" & "2" & "3" & "4" & "5")
EndFunc   ;==>start

Func _end()
    Exit(0)
EndFunc   ;==>start

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Thnx ppl the script still finishes when the cicle 1,2,3,4,5 finishes right?And bisedes taht it finishes if I press "Q" at any time right?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Hi,

yeah, but nearly the same script.

P.S. you are right!

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Sorry to bother again,if i want to press the F1-F5 keys instead I need to change something in the code?

Got it just need to {F1} till{F5} thnx ;)

Edited by Nimpt

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