thank youu
thank youu
Thanks for the macro suggestions both of you, almost toally rewritten the bot to include them since I must agree that is a much easier method. Once testing is done I'll alter the first post
The code from the OP just works fine when you find yourself a lone Innkeeper somewhere in Kalimdor or Outland.
Another minor tweak, instead of using Send() which requires the Window to be activated. You can use ControlSend() as a drop-in replacement meaning you can effectively run this in the background, and it shouldn't interfere with your open Windows or Control Focus.
You can launch WOW in the background using the flags:Code:; ControlSend ( "title", "text", controlID, "string" [, flag] ) ControlSend($WindowTitle, "", 0, "{ENTER}") Sleep(15000)
or, if you want it to start minimisedCode:Run(GUICtrlRead($Location_Input) & "WoW.exe", GUICtrlRead($Location_Input), @SW_SHOWNOACTIVATE)
Code:Run(GUICtrlRead($Location_Input) & "WoW.exe", GUICtrlRead($Location_Input), @SW_SHOWMINNOACTIVE)
more of these?... im just messing man this looks great
Thanks for this!
Updated the first post with the new version and a few new details.
Still a few problems to overcome, but hopefully I'll get them sorted out so wow can be run as a background process instead of stealing focus.
I had it running in the background, but when I changed autoit to controlsend rather than send I produced:
/run setbinding92#2,2interacttarget20
rather than
/run SetBinding("#","INTERACTTARGET")
So I had to switch back until I (or someone) can figure it out
it wont target the innkeeper, i think you missed a t out :P
it says /arget innkeeper
the bot doesnt type my password on the login... dunno why...
Nice bot, thanks to the work putting it together
@ askali
try this ... i don't know if the $text assignment is rigth .. but the controlsend line is correct ...
$Text = "/target inkeeper"
ControlSend("World of Warcraft", "", "", $Text)
I encountered this when I tested it on Vista late last night, if you look at what happened, its all lowercase and your symbols have been replaced by their numerical equivalent if you don't have the SHIFT button down.
**everyone looks at their keyboard**
wb, you can fix this by bumping up the key delay, the default of 5ms is a bit too brutal for Vista, but XP handles it fine, add this to the top of the code:
Code:AutoItSetOption("SendKeyDelay",35) AutoItSetOption("SendKeyDownDelay",35)
I was trying that, I found an autoit function someone made called controlsendplus that seems to fix the issue in most cases and that's what it's running from now; however it doesn't fix the problem that if you use @ws_hide (I think that's correct) that wow just doesn't accept any input that I can tell anyways
will try it today. thank and +rep
Works great, the bot has successfully looted for me 11 times +rep