I have managed to send keystrokes to both a non-active and an active FFXi account using the following code:
PHP Code:
WinGet, polid1, ID, Zuvio
WinGet, polid2, ID, Carsomyr
#IfWinActive, Zuvio
F1::
ControlSend,,/p hi{enter}, ahk_id %polid1%
ControlSend,,/p hi{enter}, ahk_id %polid2%
return
This results in both chars 'typing' /p hi in there chat input screen whenever I press F1 when they main window 'Zuvio' is active. However: the {enter} key is not processed, thus /p hi remains on the chat input bar. The message never actually gets send to the chat window. This is consistent with the following piece of code:
PHP Code:
WinGet, polid1, ID, Zuvio
WinGet, polid2, ID, Carsomyr
#IfWinActive, Zuvio
F1::
ControlSend,,{u down}{u up}, ahk_id %polid1%
ControlSend,,{u down}{u up}, ahk_id %polid2%
return
When I press F1 now, nothing happens. The u key, which is supposed to be a single key input to bring up my menu screen in FFXI, does not have any effect in game.
I will keep on trying and experimenting with other scripts to produce more results when necessary. Particularly I will attempt to send a 'Ctrl+ key' to both accounts to start a macro.
EDIT: so far, only {space} works in FFXI. Space brings up an empty chat input bar. {enter} etc do not work.
EDIT 2: Ok I think I have gotten something better. I have made a small script which will activate my first macro in-game which is normally activated by Ctrl+1. It's very simple:
PHP Code:
#IfWinActive Zuvio
1::
Send {ctrl down}{1 down}{1 up}{ctrl up}
This macro works whereas
PHP Code:
WinGet, polid1, ID, Zuvio
#IfWinActive Zuvio
1::
ControlSend,,{ctrl down}{1 down}{1 up}{ctrl up}, ahk_id %polid1%
return
does not work. For multiboxing purposes however, this blows
Connect With Us