Close
Page 1 of 3 1 2 3 LastLast
Showing results 1 to 10 of 30

Hybrid View

  1. #1

    Default Problem with maxfps and maxfpsbk

    For some reason maxfpsbk is not working for hkn. The background window's still think they are focused. I can go and click them individually on the task bar and when I've clicked them all they will work till i switch pip again. For some reason window's, wow, or something isnt reading them going to the back ground. Anyone have any idea? I'm using win7 if that helps. It worked fine in keyclone but decided to work my way thru a hkn script since keyclone still cant do left and right mod's.

  2. #2

    Default

    Could you post your script please. I need to see the labels and the PIP section.
    �Author of HotkeyNet and Mojo

  3. #3

    Default

    Sure

    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>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW1>
    <Key F8>
    
    <Hotkey F9>
    	<ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW2>
    <Key F9>
    
    <Hotkey F10>
    	<ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW3>
    <Key F10>
    
    <Hotkey F11>
    	<ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW4>
    <Key F11>
    
    <Hotkey F12>
    	<ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW5>
    <Key F12>
    
    
    //-----------------------------------------------------------
    // 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%>
    
    //-----------------------------------------------------------
    // BROADCAST MOUSE CLICKS.
    //-----------------------------------------------------------
    
    <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>

  4. #4

    Default

    That's a very neat script! Makes it easy for me to read, thanks.

    The reason your PIP hotkeys don't change the focus is because there isn't any command in the script that changes focus.

    There's nothing in the script to alter which windows are background and foreground.

    Maybe you thought <TargetWin> changes focus but it can't because <TargetWin> specifies the window that receives keystrokes from HotkeyNet, and HotkeyNet sends keystrokes to background windows.

    To change the focus you can add <SetForegroundWin> right after <TargetWin> at the end of each PIP hotkey.
    �Author of HotkeyNet and Mojo

  5. #5

    Default

    Thank you very much for helping =)

    Try to keep it nice and neat makes it so much easier for me to edit hehe. Especially since I'm pretty much winging it lol.
    Thanks again =)

  6. #6

    Default

    Well you've got good wings. I would have guessed you're a professional programmer.
    �Author of HotkeyNet and Mojo

  7. #7

    Default

    hmm that didnt work, could it be <setfocus>? Now that I know what I'm looking for that seems it might work.

    Nm that seems to be for keyboard. Maybe I didn't put it in the right spot.

    Code:
    //----------------------------------------------------------------
    //Window Switching
    //----------------------------------------------------------------
    
    <Hotkey F8>
    	<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW1>
    			<SetForegroundWin>
    <Key F8>
    
    <Hotkey F9>
    	<ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW2>
    			<SetForegroundWin>
    <Key F9>
    
    <Hotkey F10>
    	<ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW3>
    			<SetForegroundWin>
    <Key F10>
    
    <Hotkey F11>
    	<ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW4>
    			<SetForegroundWin>
    <Key F11>
    
    <Hotkey F12>
    	<ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
    		<SendLabel w1, w2, w3, w4, w5>
    			<TargetWin WoW5>
    			<SetForegroundWin>
    <Key F12>
    Does that look right?

  8. #8

    Default

    SetForegroundWin requires an argument, the name of the window.

    Isn't that generating a red error message? It should.

    You would think (judging from the name) that SetFocus is the right command, but I took the names "SetFocus" and "SetForegroundWin" from the operating system API, and those names have peculiar meanings in the API. Their meanings got sort of screwed up when Microsoft added multithreading to Windows. It's a long complicated story but the bottom line is, SetForegroundWin is the right command.

    If it still doesn't work make sure "Clear modifiers before executing hotkeys" is checked on Settings. (This is for diagnostic purposes). If that works and you want that setting unchecked I'll tell you a way to do that.
    �Author of HotkeyNet and Mojo

  9. #9

    Default

    Nope no errors. Just trying argument. Err trying arguments now =)

    Just to be clear I need to put <SetForegroundWin wow1> correct? or does the name go outside of the brackets?

  10. #10

    Default

    P.S. Windows tries to prevent programs like HotkeyNet from changing which window is in the foreground. HotkeyNet has to take some complicated measures to outwit the operating system's policy and be able to bring windows to the foreground. Vista was more clever at this than XP, and it wouldn't surprise me if Win 7 is more clever than Vista. I haven't seen Win 7 yet. It's possible that Microsoft added something to Win 7 that outwits HotkeyNet's foreground-setting code and prevents it from working. But nobody has told me this up till now and lots of people are using HotkeyNet on Win 7.
    �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
  •