dirtybob Posted May 17, 2005 Share Posted May 17, 2005 (edited) 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 May 17, 2005 by dirtybob Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 17, 2005 Share Posted May 17, 2005 (edited) send("key_two) < i think this should be send("{yourkey}") edit: and under send("key_two) you have to put a endfunc Edited May 17, 2005 by MarkMarkMark Link to comment Share on other sites More sharing options...
MuffettsMan Posted May 26, 2005 Share Posted May 26, 2005 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 slotswas 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 More sharing options...
Blue_Drache Posted May 26, 2005 Share Posted May 26, 2005 (edited) 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 May 26, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 27, 2005 Administrators Share Posted May 27, 2005 ; keys used in game to shield, and then healfunc self_heal()send("key_one")sleep(30)send("key_two)Shield then heal? PALADIN! Nooooooo!At least it's not shield then hearthstone. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now