Sending keys is being repeated
Posted: 18 Jun 2017, 17:00
Im trying to get the script to type /joinme Pandaface64 and press enter but it does it twice. also, it presses enter at the end even when i dont have that in the script.
Script Below:
Numpad0::
ExitApp
Numpad1::
AcceptX = 378
AcceptY = 363
CoordMode, Mouse, Window
WinGet, l, list, ahk_exe Trove.exe
send {Enter}/joinme Pandaface64
Loop %l%
{
if (a_index > 1)
{
d := l%a_index%
WinGet, p, PID, ahk_id %d%
WinActivate, ahk_pid %p%
MouseClick, left, %AcceptX%, %AcceptY%, ,4
}
}
WinGet, p, PID, ahk_id %l1%
WinActivate, ahk_pid %p%
Script Below:
Numpad0::
ExitApp
Numpad1::
AcceptX = 378
AcceptY = 363
CoordMode, Mouse, Window
WinGet, l, list, ahk_exe Trove.exe
send {Enter}/joinme Pandaface64
Loop %l%
{
if (a_index > 1)
{
d := l%a_index%
WinGet, p, PID, ahk_id %d%
WinActivate, ahk_pid %p%
MouseClick, left, %AcceptX%, %AcceptY%, ,4
}
}
WinGet, p, PID, ahk_id %l1%
WinActivate, ahk_pid %p%