Close
Page 3 of 3 FirstFirst 1 2 3
Showing results 21 to 30 of 30
  1. #21

    Default

    Would you mind doing a little testing to help me figure out what's wrong? Let's make a pair of extremely simple hotkeys in a new script all by themselves.

    Please drag WoW1 and/or WoW2 so they partly overlap so you can see if the foreground window changes.

    Code:
    <Hotkey F1>
       <TargetWin WoW1>
       <SetForegroundWin>
    
    <Hotkey F2>
       <TargetWin WoW2>
       <SetForegroundWin>
    Do those work?
    �Author of HotkeyNet and Mojo

  2. #22

    Default

    That works

  3. #23

    Default

    Think it has something to do with <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>?

  4. #24

    Default

    The commmand looks fine to me. Maybe it's because you're sending SetForegroundWin five times in each hotkey, although I'm not sure why Windows would care. That happens because it's included in SendLabel, and SendLabel happens five times since there are five labels. The Sendlabel statement doesn't accomplish anything here so you can remove it.

    Why did you include the <Key> statement in the hotkeys?

    How about rewriting the hotkeys like this:

    Code:
    <Hotkey F8>
       <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
       <TargetWin WoW1>
       <SetForegroundWin>
    �Author of HotkeyNet and Mojo

  5. #25

    Default

    Wrote it like that and it's still doing it. As far as key goes I wrote it out bare with just keys at first and just forgot to get rid of those.

  6. #26

    Default

    There must be something in the script I'm not noticing. Could you post the complete script in its exact current form? I'll load it into HotkeyNet and watch it execute in the debugger.
    �Author of HotkeyNet and Mojo

  7. #27

    Default

    Code:
    //-----------------------------------------------------------
    // SUBROUTINE TO Position Windows.
    //-----------------------------------------------------------
    
    <Command ResizeAndPosition>
    <SendPC Local>
    	<SendWin %1%>
    		<SetWinRect 384 0 1536 1200>
    	<SendWinM %2%>
    		<SetWinRect 0 0 384 300>
    	<SendWinM %3%>
    		<SetWinRect 0 300 384 300>
    	<SendWinM %4%>
    		<SetWinRect 0 600 384 300>
    	<SendWinM %5%>
    		<SetWinRect 0 900 384 300>
    
      
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //-----------------------------------------------------------
    
    <Command LaunchAndRename>
    	<SendPC %1%>
    	<Run %2%>
    	<RenameTargetWin %3%>
    	<RemoveWinFrame>
    	<SetAffinity all>  //%2%
    
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME YOUR WOW WINDOWS.  all = affinity  
    //-----------------------------------------------------------
    
    <Hotkey Alt Ctrl L>
    <LaunchAndRename Local "C:\Users\Public\Games\World of Warcraft 1\wow.exe" WoW1 all>
    <LaunchAndRename Local "C:\Users\Public\Games\World of Warcraft 2\wow.exe" WoW2 all>
    <LaunchAndRename Local "C:\Users\Public\Games\World of Warcraft 3\wow.exe" WoW3 all>
    <LaunchAndRename Local "C:\Users\Public\Games\World of Warcraft 4\wow.exe" WoW4 all>
    <LaunchAndRename Local "C:\Users\Public\Games\World of Warcraft 5\wow.exe" WoW5 all>
    <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    
    
    //-----------------------------------------------------------
    // HOTKEY TOGGLE
    //-----------------------------------------------------------
    
    <hotkey pause>
    	<sendpc local>
    		<ToggleHotkeys>
    
    
    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES.
    //-----------------------------------------------------------
    
    <Label w1 Local SendWinM WoW1>
    <Label w2 Local SendWinM WoW2>
    <Label w3 Local SendWinM WoW3>
    <Label w4 Local SendWinM WoW4>
    <Label w5 Local SendWinM WoW5>
    
    
    //----------------------------------------------------------------
    //Window Switching
    //----------------------------------------------------------------
    
    <Hotkey F8>
    	<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    	<TargetWin WoW1>
    	<SetForegroundWin>
    
    <Hotkey F9>
    	<ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
    	<TargetWin WoW2>
    	<SetForegroundWin>
    
    <Hotkey F10>
    	<ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
    	<TargetWin WoW3>
    	<SetForegroundWin>
    
    <Hotkey F11>
    	<ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
    	<TargetWin WoW4>
    	<SetForegroundWin>
    
    <Hotkey F12>
    	<ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
    	<TargetWin WoW5>
    	<SetForegroundWin>
    
    
    //-----------------------------------------------------------
    // DEFINE KEYLIST FOR ALL KEY COMBINATIONS THAT WILL GET
    // SENT TO ALL WINDOWS.
    //-----------------------------------------------------------
    
    <KeyList MyList AllMainKeys except Oem3, PgDn, PgUp, Up, Down, Left, Right, 1-9, F, G, Pause, a, s, d, w, tab, m, F8-F12>
    
    
    //-----------------------------------------------------------
    // DEFINE HOTKEY
    //-----------------------------------------------------------
    
    <Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
    	<SendLabel w1, w2, w3, w4, w5>
    		<Key %Trigger%>
    
    
    //-----------------------------------------------------------
    // MOVEMENT KEYS
    //-----------------------------------------------------------
    
    <MovementHotkey Up, Down, Left, Right>
    	<SendLabel w1, w2, w3, w4, w5>
    		<Key %Trigger%>
    
    
    //-----------------------------------------------------------
    // FORMATION SETUP.  MOVING EACHSLAVE TOON UP, DOWN, LEFT,
    // AND RIGHT EXCEPT FOR THE MAIN TOON.
    //          	S2
    //       	S4 M1  S5   	M=MAIN
    //          	S3      	S#=SLAVES
    //
    // KEYBOUND IN WOW=
    // SLAVE4 PGUP=STRAFE LEFT	PGDN=STRAFE RIGHT
    // SLAVE5 PGUP=STRAFE RIGHT   PGDN=STRAFE LEFT
    //-----------------------------------------------------------
    
    <MovementHotkey PgUp>
    	<SendLabel w2>
    		<Key Up>
    	<SendLabel w3>
    		<Key Down>
    	<SendLabel w4>
    		<Key PgUp>
    	<SendLabel w5>
    		<Key PgUp>
    
    <MovementHotkey PgDn>
    	<SendLabel w2>
    		<Key Down>
    	<SendLabel w3>
    		<Key Up>
    	<SendLabel w4>
    		<Key PgDn>
    	<SendLabel w5>
    		<Key PgDn>   
    
    
    //-----------------------------------------------------------
    // 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  Oem3 LButton, MButton, RButton, Button4, Button5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<ClickMouse %TriggerMainKey%>
    
    
    //-----------------------------------------------------------
    // FTL Templates
    // %1% : Master Key
    // %2% : Slave Key
    // %3% : Modifier
    // %4% : SlavesToSend
    //-----------------------------------------------------------
    
    <Template SendMasterAndSlave>
    	<SendFocusWin>
    		<Key %1%>
    	<Sendlabel %4%>
    		<Key %3% %2%>
    <EndTemplate>
    
    
    //-----------------------------------------------------------
    // %1% : master key
    // %2% : slave key
    // %3% : modifier
    // %4% : Active window
    // %5% : Slave Windows
    //-----------------------------------------------------------
    
    <Template SendLeaderless>
    	<If ActiveWinIs %4%>
    		<ApplyTemplate SendMasterAndSlave "%1%" "%2%" "%3%" "%5%">
    <EndTemplate>
    
    
    //------------------------------------------------------------
    // %1% : master-key
    // %2% : slave-key
    //------------------------------------------------------------
    
    <Template FTL>
    	<Hotkey %1%> 	
    		<ApplyTemplate SendLeaderless "%1%" "%2%" "ralt" WoW1 "w2,w3,w4,w5">
    		<ApplyTemplate SendLeaderless "%1%" "%2%" "rctrl" WoW2 "w1,w3,w4,w5">
    		<ApplyTemplate SendLeaderless "%1%" "%2%" "rshift" WoW3 "w1,w2,w4,w5">
    		<ApplyTemplate SendLeaderless "%1%" "%2%" "ralt rshift" WoW4 "w1,w2,w3,w5">
    		<ApplyTemplate SendLeaderless "%1%" "%2%" "rctrl ralt" WoW5 "w1,w2,w3,w4">  		
    <EndTemplate>
    
    
    //------------------------------------------------------------
    //Definition of FTL keys 
    //------------------------------------------------------------
    
    <ApplyTemplate FTL 9 9>
    <ApplyTemplate FTL 1 1>
    <ApplyTemplate FTL 2 2>
    <ApplyTemplate FTL 3 3>
    <ApplyTemplate FTL 4 4>
    <ApplyTemplate FTL 5 5>
    <ApplyTemplate FTL 6 6>
    <ApplyTemplate FTL 7 7>
    <ApplyTemplate FTL 8 8>
    <ApplyTemplate FTL F F>
    <ApplyTemplate FTL G G>
    There ya go.

  8. #28

    Default

    Thanks. I think maybe I see the problem. The command uses SendWin for one of the windows. SendWin changes the foreground window. Could you try rewriting the command with TargetWin like this:

    Code:
    //-----------------------------------------------------------
    // SUBROUTINE TO Position Windows.
    //-----------------------------------------------------------
    <Command ResizeAndPosition>
    <SendPC Local>
    	<TargetWin %1%>
    		<SetWinRect 384 0 1536 1200>
    	<TargetWin  %2%>
    		<SetWinRect 0 0 384 300>
    	<TargetWin  %3%>
    		<SetWinRect 0 300 384 300>
    	<TargetWin  %4%>
    		<SetWinRect 0 600 384 300>
    	<TargetWin  %5%>
    		<SetWinRect 0 900 384 300>
    �Author of HotkeyNet and Mojo

  9. #29

    Default

    And we have a winner! That fixed it right up. Thank you =) It was pegging my cpu at 100% just standing around idle. No way I could of done anything.

    Was close to giving up and just using SetActiveWindowTracking or something like that to have focus follow the mouse and just wave my mouse around when I switched. Wouldn't of been very elegant but would of worked in a pinch =p

  10. #30

    Default

    You're welcome. Sorry this took so long. I should have seen it right away. I think I've forgotten so much about the program that it's getting hard for me to give user support.
    �Author of HotkeyNet and Mojo

Similar Threads

  1. Maxfps commands
    By Odusx in forum New Multi-Boxers & Support
    Replies: 6
    Last Post: 10-25-2008, 12:23 PM
  2. Can i set the maxfpsbk without keyclone launching wow.exe?
    By DarkslayrX in forum Software Tools
    Replies: 7
    Last Post: 09-17-2008, 12:16 PM
  3. PiP switching forgets maxfpsbk
    By heyaz in forum Software Tools
    Replies: 1
    Last Post: 08-16-2008, 06:30 PM
  4. PiP, Maximizer, FPS, Maxfpsbk and Maxfps
    By Naylix in forum Software Tools
    Replies: 6
    Last Post: 07-09-2008, 12:33 PM
  5. MAXFPSBK 5 and max graphics question.
    By LancerX in forum Software Tools
    Replies: 3
    Last Post: 03-04-2008, 05:58 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •