Hi,
Reading those forums have re-ignited my passion for Wow,
I am now trying to set up a dual-box woth 2 shamans, if successful, I will upgrade most probably to 5 box mixed team.
Current hardware is E2180@2.8, 8Gig Ram, 200M Raid0 partition with wow1 and wow2 symlinked to wow directory, 4870 1G0, 1920*1080, win 7
Most probably, I'll switch in a q6600@3.0 if 5-box.
I have selected HKN for its programmability
I have identified 4 addons I am likely to run : JambaDev, Carbonite, OmniCC, Tourguide
I have currently decided to NOT use an additional macro tool (Macaroon would have been nice, but seems unsupported, Domino would havce been the next choice)
Here is the HotKeyNet script I have written from the sample provided on http://hotkeynet.com/ref/sendwinm.html
plus numerous tidbits from this website, in particular from http://www.dual-boxing.com/showthread.php?t=16177 written by olipc.
Please consider my poor contribution as a tribute to all the macro-coders who have provided the seeds of this work
I have most probably made HKN do much more than its author would have though reasonable
Points of Interest:
1. the PIP code is not the fastest, but is the safest I could get,
2. most keys of an international keyboard are identified (please note that even a normal key such a Z on an international keyboard may have a code sitting between Oem keys, better be long and explicit and list the exact keys)
3. I have used one key BrowseBack present on multmedia keyboard to act as another modifer which is not transmitted to the event chain
4. I am creating panels and buttons to display the internal state of HKN (in particular wether HKN is active or Not)
5. I have found a work around for being able to use If-else-end if from within a command
6. For playing multiple toons with same spells and yet saving mana, I have created a modifier key which toggle a one-by-one casting, should be useful to finish off with one spell instead of wasting 5 , this toggle proved a stateful approach to macro casting
7. I am using the panel option use news SendWinS SendWinM
Bugs:
The HKN button is not always refreshed properly from within WOW, It works from within Windows
there is already a work-around the issue<if hotKeyNetIsOn giving delayed results> issue,
Probable Improvments:
- would liketo speed up the refresh of the panels
- would like to work on getting fancy position like diamond shape (but difficult with 2 toons ;-)
- considering how to speed up targetting 2 mobs (one toon each)
Without further ado, here is the code
Part I
Code:
//================================================================
// Adjusted SCRIPT FOR 2 WOW'S ON ONE PC
//
// Load it into HotkeyNet.
//
// Toggle the PAUSE key to turn hotkeys off and on.
//
// Requires HotkeyNet build 181 or higher ???
//
// For more info, go to www.hotkeynet.com
//================================================================
//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<RenameTargetWin %3%>
<RemoveWinFrame>
<SetAffinity %4%>
//-----------------------------------------------------------
// SUBROUTINE TO Position Windows for 2 boxing. side by side
//-----------------------------------------------------------
<Command ResizeAndPosition>
<SendPC Local>
<SendWinM %1%>
<SetWinRect 0 0 960 1280>
<RemoveWinFrame>
<SendWinM %2%>
<SetWinRect 960 0 960 1280>
<RemoveWinFrame>
//-----------------------------------------
// PRESS <Alt Ctrl M> TO Position Windows for 2 boxing. side by side
//-----------------------------------------
// <Hotkey Alt Ctrl M>
// <ResizeAndPosition WoW1 WoW2>
//----------------------------------------------------------------
// SET PIP CONFIGURATION
// Usage: <SetPip BigWindowName LittleWindowName>
//----------------------------------------------------------------
<Command SetPip>
<TargetWin %1%>
<SetWinPos 0 0>
<SetWinSize 1920 1080>
<SetWinRegion none>
<SetWinRegion 1475 600 320 180>
<TargetWin %2%>
<HideWin>
<SetWinSize 320 180>
<SetWinPos 1475 600>
// <SetForegroundWin>
<ShowWin>
<UpdateWin>
<TargetWin %1%>
<SetForegroundWin>
//-----------------------------------------
// Press < Printscreen> to TOGGLE PIP
//-----------------------------------------
<Hotkey PrintScreen>
<Toggle>
<SetPip WoW1 WoW2>
<Toggle>
<SetPip WoW2 WoW1>
//-----------------------------------------------------------
// PRESS <Alt Ctrl L> TO LAUNCH AND RENAME YOUR WOW WINDOWS while 2 boxing
// Please configure the Path and processor afinitys correctly
//-----------------------------------------------------------
<Hotkey Alt Ctrl L>
<LaunchAndRename Local "I:\wow1\wow.exe" WoW1 1>
<LaunchAndRename Local "I:\wow2\wow.exe" WoW2 2>
//-----------------------------------------------------------
// PRESS <Alt Ctrl R> TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY
//-----------------------------------------------------------
<Hotkey Alt Ctrl R>
<SendPC local>
<RenameWin "World of Warcraft" WoW1>
<RenameWin "World of Warcraft" WoW2>
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------
<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
Connect With Us