Hey guys, needing some help on finishing off this script for 3 clients, with automated drop in of bnet email & pw, so hitting the launch hotkey starts 3 clients and drops in everything, when the dust settles you just pick the team you want and hit enter to log them in. That's problem 1. Problem 2 I'm having is getting the windows to line up properly. It should be, WoW1 in maximized mode on monitor1 and WoW2 & WoW3 in 640x508 window size on the left side of monitor2.
Code:
//================================================================
// SAMPLE SCRIPT FOR TWO WOW'S ON ONE PC
//
// Instructions: Copy this entire script (all the blue writing
// on gray background including comments). Save it in a file.
// Load it into HotkeyNet.
//
// Toggle the scroll lock key to turn hotkeys off and on. (You
// can change this if you want, just like you can change
// everything else with HotkeyNet.)
//
// Requires HotkeyNet build 147 or higher.
//
// For more info, go to www.hotkeynet.com
//================================================================
//-----------------------------------------------------------
// PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl R>
<SendPC local>
<RenameWin "World of Warcraft" WoW1>
<RenameWin "World of Warcraft" WoW2>
<RenameWin "World of Warcraft" WoW3>
//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run "c:\WoW1\Wow.exe">
<RenameTargetWin %2%>
//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local WoW1>
<LaunchAndRename Local WoW2>
<LaunchAndRename Local WoW3>
//-----------------------------------------------------------
// Initial window positions
//-----------------------------------------------------------
<Hotkey F1>
<TargetWin WoW1>
<SetWinPos 0 0>
<SetWinSize 1280 666>
<RemoveWinFrame>
<TargetWin WoW2>
<SetWinPos 1280 0>
<SetWinSize 640 508>
<RemoveWinFrame>
<TargetWin WoW3>
<SetWinPos 1280 508>
<SetWinSize 640 508>
<RemoveWinFrame>
//-----------------------------------------------------------
// Shift-alt-L launches both instances and logs in
//-----------------------------------------------------------
<Hotkey Alt Ctrl L>
<LaunchAndRename Local WoW1 0 0 1280 1024 email1 password1>
<LaunchAndRename Local WoW2 1280 0 640 508 email2 password2>
<LaunchAndRename Local WoW3 1280 508 640 508 email3 password3>
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------
<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
<Label w3 Local SendWinM WoW3>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, Tab, Esc, F1-F12 except W, A, S, D, Q, E>
<SendLabel w1, w2, w3>
<Key %Trigger%>
//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey ScrollLockOn up, down, left, right>
<SendLabel w1, w2, w3>
<Key %Trigger%>
//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
// THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU
// WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier Oem3>
<Hotkey ScrollLockOn Oem3 LButton, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3>
<ClickMouse %TriggerMainKey%>
There's my full code. Right now, the three clients launch, all in 640x508 window size smack in the middle of monitor1. When I had in the actual emails and passwords, they didn't drop in either... all 3 clients had my primary email and no passwords in them. Note: I run with three seperate emails, passwords, and battle.net accounts I'm not sure how much of a difference this would make to anyone trying to help, but there you have it. Hence why it's email1 email2 and email3 (same for passwords). Oh yes, I dual monitor 19' both at desktop resolution of 1280x1024. If you need any more info, please let me know. Thanks!
P.S. I'm in no way a coder btw... peanut-butter n jelly terms work best for me. =)
Tovya
Connect With Us