This is (once again) a very simple macro, requiring 10 seconds to set up.
Position Your crafting and broker window in the top left of the everquest window. When you first run the macro it will show you where the two buttons should be located.
It will hit buttons 0 , - and = (the last 3 hotkeys) and mouseclick every 3 Sec WHEN you place the mouse over the begin/repeat button in the crafting window.
It will hit the mousebutton 20 times a second whenever you hover the mouse over the buy button on the broker.
It will take no action, unless the mouse stays in the same location for 2/5th of a second. Moving the mouse out of one of those 2 hot locations will turn off any automation.
This is intended as a simple tool, it checks for no buttons or colours, just mouse position. If you want to have your windows somewhere else just edit the $y1 = $y9 and $x1 > 60 and $x1 < 158 and $y1 > 514 and $y1 < 539 lines to show the location of your buttons. I choose the top left corner so that it will work in any resolution.
(!empty($user->lang['QUOTE'])) ? $user->lang['QUOTE'] : ucwords(strtolower(str_replace('_', ' ', 'QUOTE'))):
Constants
//Change showme to 0 when you have button locations set up (if you like)
showme = 1
x1 = 0
x2 = 0
x3 = 0
x4 = 0
x5 = 0
x6 = 0
x7 = 0
x8 = 0
x9 = 0
y1 = 0
y2 = 0
y3 = 0
y4 = 0
y5 = 0
y6 = 0
y7 = 0
y8 = 0
y9 = 0
a = 0
b = 0
end
//I use alt tab as I normally have several eq2 sessions running.
keys @{tab}
delay 500
if $showme = 1
keys /note Buy here {return}
loop 4
MousePos 660, 491
delay 300
MousePos 660, 526
delay 300
MousePos 771, 526
delay 300
MousePos 771, 491
delay 300
end
keys /note begin/repeat here {return}
loop 4
MousePos 60, 514
delay 300
MousePos 158, 514
delay 300
MousePos 158, 539
delay 300
MousePos 60, 539
delay 300
end
end
Delay 300
MousePos 110, 526
while 1 =1
SetConst $x1 = {MouseX}
SetConst $y1 = {Mousey}
SetConst $x9 = $x8
SetConst $x8 = $x7
SetConst $x7 = $x6
SetConst $x6 = $x5
SetConst $x5 = $x4
SetConst $x4 = $x3
SetConst $x3 = $x2
SetConst $x2 = $x1
SetConst $y9 = $y8
SetConst $y8 = $y7
SetConst $y7 = $y6
SetConst $y6 = $y5
SetConst $y5 = $y4
SetConst $y4 = $y3
SetConst $y3 = $y2
SetConst $y2 = $y1
//Crafting loop
if $a = 1 and $x1 = $x9 and $y1 = $y9 and $x1 > 60 and $x1 < 158 and $y1 > 514 and $y1 < 539
Keys 0
end
if $a = 11 and $x1 = $x9 and $y1 = $y9 and $x1 > 60 and $x1 < 158 and $y1 > 514 and $y1 < 539
keys -
end
if $a = 21 and $x1 = $x9 and $y1 = $y9 and $x1 > 60 and $x1 < 158 and $y1 > 514 and $y1 < 539
keys =
end
if $b = 31 and $x1 = $x9 and $y1 = $y9 and $x1 > 60 and $x1 < 158 and $y1 > 514 and $y1 < 539
LeftClick
end
//Mouse click loop to buy a heap of stuff.
if $x1 = $x9 and $y1 = $y9 and $x1 > 660 and $x1 < 771 and $y1 > 491 and $y1 < 526
LeftClick
end
delay 50
inc a
inc b
if $a = 60
Setconst $a = 1
end
if $b = 60
Setconst $b = 1
end
end