god, awesome, +5 rep haha nice!!!!
here short script in autoit for multiple instances of wow:
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$windowTitle = "World of Warcraft"
$windowList = winList($windowTitle) ;$windowList[this array is the window Title][and this array is the window handle as hex number]
$windowFound = $windowList[0][0]
$windowHandle = 0
if $windowFound == 0 then
MsgBox(0, $windowTitle&"-01", "Could not find any Window")
exit
elseif $windowFound > 1 then
MsgBox(0, $windowTitle&"-02", "There are more than 1 "&$windowTitle&" windows running.")
local $windowHandleShow = ""
for $i = 1 to $windowFound step 1
$windowHandleShow = $windowHandleShow & @CRLF & $windowTitle&": --"& $i &"-- "&$windowList[$i][1]
next
; user selects handle
do
$userInput = InputBox($windowTitle&" Window Selection", "Please select a window (1 = first Window, 2 = second...)"&@CRLF&$windowHandleShow)
until $userInput <> isNumber($userInput)
$winhandle = $windowList[$userInput][1]
else
$winhandle = $windowList[1][1]
endif
;$windowHandle = $windowList[1][1]
;$windowHandle2 = $windowList[2][1]
global $botRun = false
HotKeySet("{F12}", "botStart")
HotKeySet("{F11}", "botStop")
HotKeySet("{F10}", "botEnd")
botStart()
func botStart()
$botRun = true
while $botRun == true
Sleep(150)
ControlSend($winhandle, "", "", "{1}") ; BUY ITEM
Sleep(300)
ControlSend($winhandle, "", "", "{2}") ; DISENCHANT ITEM
Sleep(2300)
wend
endfunc
func botStop()
$botRun = false
endfunc
func botEnd()
exit
endfunc
while 1
sleep(250)
wend
bind key 1 to buy item in wow as macro
bind key 2 to disenchant item in wow as macro
results of doing this about ~~ 1h:
Attachment 11835