Abdiel
11-10-2007, 04:36 PM
Hello!
I play Lineage II for quite a long time (more than a year) and recently I "inherited" an account from a friend who quit. This got me thinking about dual-boxing it, and I am succesfully playing a Prophet (support class) following my main. Now I tried to somehow control the Prophet without alt-tabbing between the two instances, and I found this forum. I must say I'm very impressed with what you do. :wink:
What I need is to be able to send certain keystrokes (the F1-F12 keys to be exact) to the second instance, while letting all the other keys act on the first. What I have now, is an AutoHotkey script:
[code:1]#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;; Tray icon
Menu, TRAY, Icon, l2_dualbox.ico
Menu, TRAY, Tip, L2 Dualbox AHK Script
;; Annoying keys remapped
MButton::F13
CapsLock::F14
LWin::F15
AppsKey::Ctrl
Ins::Del
;; Lineage 2
;;#IfWinActive, Lineage II
;; Set main/dual window: RIGHT Alt+Ctrl+F1/F2
>!>^F1::
WinGet, main, ID, A
main_group=
GroupAdd, main_group, ahk_id %main%
SoundBeep
return
>!>^F2::
WinGet, box, ID, A
SoundBeep
SoundBeep
return
;; Passing F-keys to dual
#IfWinActive, ahk_group main_group
*F1::
*F2::
*F3::
*F4::
*F5::
*F6::
*F7::
*F8::
*F9::
*F10::
*F11::
*F12::
*a:: ; for debug purposes
chr := SubStr(A_ThisHotkey,2)
ControlSend,, {Blind}{%chr%}, ahk_id %box%
return
;; ` = esc on dual
`::
ControlSend,, {Esc}, ahk_id %box%
return
#IfWinActive[/code:1]
This should work in theory, and it also works perfectly when I use two Notepad windows for example, but when I want to send commands to Lineage II, it simply doesn't respond, as if it didn't receive them at all. Now, am I missing something? Or is AutoHotkey not working with the game? Is anyone here succesfully dual (or more-) boxing Lineage II?
Also, I'm not exactly crawling in money, so buying another computer is NOT an option for me, and I do not want to pay for KeyClone until I'm sure it will work.
Thanks for any help.
I play Lineage II for quite a long time (more than a year) and recently I "inherited" an account from a friend who quit. This got me thinking about dual-boxing it, and I am succesfully playing a Prophet (support class) following my main. Now I tried to somehow control the Prophet without alt-tabbing between the two instances, and I found this forum. I must say I'm very impressed with what you do. :wink:
What I need is to be able to send certain keystrokes (the F1-F12 keys to be exact) to the second instance, while letting all the other keys act on the first. What I have now, is an AutoHotkey script:
[code:1]#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;; Tray icon
Menu, TRAY, Icon, l2_dualbox.ico
Menu, TRAY, Tip, L2 Dualbox AHK Script
;; Annoying keys remapped
MButton::F13
CapsLock::F14
LWin::F15
AppsKey::Ctrl
Ins::Del
;; Lineage 2
;;#IfWinActive, Lineage II
;; Set main/dual window: RIGHT Alt+Ctrl+F1/F2
>!>^F1::
WinGet, main, ID, A
main_group=
GroupAdd, main_group, ahk_id %main%
SoundBeep
return
>!>^F2::
WinGet, box, ID, A
SoundBeep
SoundBeep
return
;; Passing F-keys to dual
#IfWinActive, ahk_group main_group
*F1::
*F2::
*F3::
*F4::
*F5::
*F6::
*F7::
*F8::
*F9::
*F10::
*F11::
*F12::
*a:: ; for debug purposes
chr := SubStr(A_ThisHotkey,2)
ControlSend,, {Blind}{%chr%}, ahk_id %box%
return
;; ` = esc on dual
`::
ControlSend,, {Esc}, ahk_id %box%
return
#IfWinActive[/code:1]
This should work in theory, and it also works perfectly when I use two Notepad windows for example, but when I want to send commands to Lineage II, it simply doesn't respond, as if it didn't receive them at all. Now, am I missing something? Or is AutoHotkey not working with the game? Is anyone here succesfully dual (or more-) boxing Lineage II?
Also, I'm not exactly crawling in money, so buying another computer is NOT an option for me, and I do not want to pay for KeyClone until I'm sure it will work.
Thanks for any help.