Went ahead and took a break from hacking thru other programming stuff to tackle this real quick, to add to my other Terraria scripts. Its a shame to just give it to one person, so here it is for everyone (and adding to my page one post).
pause:suspend
/*
press control+c to start and stop script key access
keys as follows
Center Mouseposition q, g, numpad5
Mouse-to-lastposition Ctrl+q, h, Ctrl+numpad5
Mouse Left-Up: r, numpad7
Mouse Up: t, y, up, numpad8
Mouse Right-Up: u, numpad9
Mouse Left: f, left, numpad4
Mouse Right: j, right, numpad6
Mouse Left-Down: v, numpad1
Mouse Down: b, n, down, numpad2
Mouse Right-Down: m, numpad3
Hold-to-leftclick spacebar
hold-to-rightclick e
clickbuttons: these move the mouse to an area and click once automatically for you: use them by
pressing CTRL+ above mouse movement keys: due to limitations, down and up only click in one spot,
use ctrl+t/y or ctrl+b/n to click above left/right or below left/right
*/
stopfunc = 0
mouselastx = 0
mouselasty = 0
spacequit = 0
^c::
if (stopfunc==0)
{
stopfunc = 1
return
}
stopfunc = 0
return
^r::
^NumpadHome::
^Numpad7::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2-20
posy := height/2-15
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^t::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2-7
posy := height/2-32
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^y::
^up::
^NumpadUp::
^Numpad8::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2+7
posy := height/2-32
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^u::
^NumpadPgUp::
^Numpad9::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2+20
posy := height/2-15
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^f::
^left::
^NumpadLeft::
^Numpad4::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2-20
posy := height/2
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^j::
^right::
^NumpadRight::
^Numpad6::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2+20
posy := height/2
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^v::
^NumpadEnd::
^Numpad1::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2-20
posy := height/2+15
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^b::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2-7
posy := height/2+32
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^n::
^Down::
^NumpadDown::
^Numpad2::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2+7
posy := height/2+32
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
^m::
^NumpadPgDn::
^Numpad3::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
posx := width/2+20
posy := height/2+15
MouseClick, left, posx, posy
Click down
sleep, 100
Click up
return
g::
q::
NumpadClear::
Numpad5::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
WinGetActiveStats, Terraria, width, height, X, Y
MouseGetPos, setx, sety
mouselastx := setx
mouselasty := sety
MouseMove, width/2, height/2
return
h::
^q::
^NumpadClear::
^Numpad5::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseMove, mouselastx, mouselasty
return
r::
NumpadHome::
Numpad7::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx-15, curry-15
return
t::
y::
up::
NumpadUp::
Numpad8::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx, curry-15
return
u::
NumpadPgUp::
Numpad9::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx+15, curry-15
return
f::
left::
NumpadLeft::
Numpad4::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx-15, curry
return
j::
right::
NumpadRight::
Numpad6::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx+15, curry
return
v::
NumpadEnd::
Numpad1::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx-15, curry+15
return
b::
n::
down::
NumpadDown::
Numpad2::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx, curry+15
return
m::
NumpadPgDn::
Numpad3::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
MouseGetPos, currx, curry
MouseMove, currx+15, curry+15
return
space::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
while GetKeyState("space")
{
Click down
sleep 100
Click up
sleep 100
}
return
e::
WinWaitActive, Terraria, , 2
if ErrorLevel
{
return
}
if (stopfunc==0)
{
return
}
while GetKeyState("e")
{
Click down right
sleep 100
Click up right
sleep 100
}
return
edit: looked at Sirians and thought "doh! I should add a suspend key" and did so, using pause