Jump to content

Newbie, but i have ideas:)


Recommended Posts

hey guys, i play world of warcraft, and i think i can use Autoit to help my game play.

The game has a macro system, built in. but i cant seem to get it to do what i want.

Basicly i would like to use Autoit to wait for me to press a key, then perform a pair of sends.

this is the best i can come up with.

; globals

$title = "WoW Helper"

$win_title = "World of Warcraft"

; check to see if WOW is running

if not WinExists($win_title, "") then

msg($win_title & " window must be open.")

Exit

endif

; hot keys to use

HotKeySet("KEY", "self_heal")

HotKeySet("{PAUSE}", "request_end")

; keys used in game to shield, and then heal

func self_heal()

send("key_one")

sleep(30)

send("key_two)

;stopping the sript

func request_end()

$MB_YESNO = 4

$MB_YES = 6

if MsgBox($MB_YESNO, $title, "End script?") == $MB_YES then

Exit

endif

endfunc

so in my mind it works, but in testing it doesnt. basicly the self heal part is where i dont know enough to figure out whats wrong.

a kick in the right diurection would be great.

thanks

DB

Edited by dirtybob
Link to comment
Share on other sites

  • 2 weeks later...

send("key_two) < i think this should be send("{yourkey}")

edit:

and under

send("key_two)
you have to put a endfunc

<{POST_SNAPBACK}>

also might be more logical to have the script 'type out' the casts rather than hitting a hot key - pretty sure the features of the built in macro system work the same from the 'command line' :( ie type

send("/cast Spell Name(Rank #)"

justa thought... would save your hotkey bar and would be able to work for much more than what could fit in those few slots

was thinking of writing something like this for whenever i start falling asleep while my wife wants to keep playing... she seems to get somewhat flustered if i zone out and forget to shield / heal :(

Don't let that status fool you, I am no advanced memeber!

Link to comment
Share on other sites

hey guys, i play world of warcraft ....

Well, that's your first problem.......... :( ( :( )

Seriously:

I do a similar idea for City of Heroes, we only get 2 rows of 10 powers to choose from, so I generally code up a few bind files and switch them out on the fly as needed for the different characters I play. Hotkeys (binds) can be saved, mouseclick buttons (macros) can't. No biggie, since I have a large list of keys open to me. (Infinate in fact...but only in the range of <[ctrl+ [alt+]]B,R,Y,U,I,O,P,G,H,J,K,L>)

I'm still working on a pixelsearch to shut off the auto powers when my endurance (or magic if you will) is drained past a certain point.

Of course, my helper won't me of much good to anyone else if they don't play at my resolution, and scaled window size.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...