Close
Showing results 1 to 10 of 10

Thread: Reverse Toggle

Hybrid View

  1. #1

    Default Reverse Toggle

    Just started adding the scripts to switch windows and woweewowwow///makes things much easier. Not sure I need to implement a FTL type situation. And templates are good, but sometimes it is just as easy to copy and paste.

    I have the logitec MX Revolution mouse and I have started to bind things to the buttons with the new set up. I love being able to click one button and it does different stuff depending on the active window. So, I hit F2, my Alt2 comes to my main screen, I hit my follow button and everyone follows him. Yay!

    Ok, to my point. The revolution has a thumb rocker that you can rock forward, backwards or push in. I want it to be able to toggle through my characters so I don't have to move my fat fingers over to the keyboard. So, I keybind pulling back to CTRL F1 and have that toggle my windows. I put in all 5 possibilities and voila, I can toggle forward. I can also rock forward, and toggle the otherway, but it starts at my first toggle for that hotkey and not where the other hotkey left off.\\So, Freddie, any change you can add something like this?

    <Hotkeys CTRL F5 CTRL F6>

    <Toggle>
    <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>

    <Toggle>
    <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>

    <Toggle>
    <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>

    <Toggle>
    <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>

    <Toggle>
    <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>

    Where the first hotkey is a toggle forward and the second hotkey is a toggle backwards?

  2. #2

    Default

    hi, you could achive what you described, by defining two seperate toggles (forward one for ctrl f5, backward one for ctrl f6), and synchronising the one you didn't activate with
    with <SetToggle>.
    OLIPCS - ordinary life is pretty complex stuff
    ----------------------------------------------------------------
    Pala, Priest, Druid, Hunter, Mage
    Focusless Targetless Leaderless - Wiki
    HotKeyNet - Guide

  3. #3

    Default

    Yep, like Olipcs said, that's what SetToggle is for.
    �Author of HotkeyNet and Mojo

  4. #4

    Default

    Quote Originally Posted by olipcs',index.php?page=Thread&postID=193959#post19 3959]hi, you could achive what you described, by defining two seperate toggles (forward one for ctrl f5, backward one for ctrl f6), and synchronising the one you didn't activate with
    with [url='http://hotkeynet.com/ref/settoggle.html
    <SetToggle>[/url].
    Not sure how I do that without actually hardcoding the toggle position. That will be dynamic as I maye have "scrolled" up to toon 3 but then want to go back to toon 2.

  5. #5

    Default

    I think what you want can be done like this:

    Code:
    <Hotkeys CTRL F5>
    <Toggle>
      <SetToggle 5 Hotkey CTRL F6>
      <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>   
    <Toggle>
      <SetToggle 4 Hotkey CTRL F6>
      <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>
    <Toggle>
      <SetToggle 3 Hotkey CTRL F6>
      <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>  
    <Toggle>
      <SetToggle 2 Hotkey CTRL F6>
      <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>  
    <Toggle>
      <SetToggle 1 Hotkey CTRL F6>
      <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>
      
      
    <Hotkeys CTRL F6>
    <Toggle>
      <SetToggle 5 Hotkey CTRL F5>
      <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>  
    <Toggle>
      <SetToggle 4 Hotkey CTRL F5>
      <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>  
    <Toggle>
      <SetToggle 3 Hotkey CTRL F5>
      <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>  
    <Toggle>
      <SetToggle 2 Hotkey CTRL F5>
      <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>	
    <Toggle>
      <SetToggle 1 Hotkey CTRL F5>
      <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
      <SendLabel w1, w2, w3, w4, w5>
      <Key %Trigger%>
    this way CTRL F5 would toggle in this order WoW5 -> WoW4 -> WoW3 -> WoW2 -> WoW1 (backwards) and
    CTRL F6 in the oposite order WoW2 -> WoW3 -> WoW4 -> WoW5 -> WoW1 (forwards).

    (if you would need something like this, for many other hotkeys, you could also define a general Temaplate for it...)
    OLIPCS - ordinary life is pretty complex stuff
    ----------------------------------------------------------------
    Pala, Priest, Druid, Hunter, Mage
    Focusless Targetless Leaderless - Wiki
    HotKeyNet - Guide

  6. #6

    Default

    Ok, I see how it works. I'll check it out tonight. Thanks man.

  7. #7

    Default

    Maybe I'm misunderstanding but I thought this would work. Ctrl F5 goes forward, Ctrl F6 goes backward, and they always stay in synch.

    Code:
    <Hotkey Ctrl F5> 
        <Toggle>
            ... do stuff for WoW1 in foreground
            <SetToggle 1 Hotkey Ctrl F6>
        <Toggle>
            ... do stuff for WoW2 in foreground
            <SetToggle 5 Hotkey Ctrl F6>
        <Toggle>
            ... do stuff for WoW3 in foreground
            <SetToggle 4 Hotkey Ctrl F6>
        <Toggle>
            ... do stuff for WoW4 in foreground
            <SetToggle 3 Hotkey Ctrl F6>
        <Toggle>
            ... do stuff for WoW5 in foreground
            <SetToggle 2 Hotkey Ctrl F6>
    
    
    <Hotkey Ctrl F6> 
        <Toggle>
            ... do stuff for WoW5 in foreground
            <SetToggle 1 Hotkey Ctrl F5>
        <Toggle>
            ... do stuff for WoW4 in foreground
            <SetToggle 5 Hotkey Ctrl F5>
        <Toggle>
            ... do stuff for WoW3 in foreground
            <SetToggle 4 Hotkey Ctrl F5>
        <Toggle>
            ... do stuff for WoW2 in foreground
            <SetToggle 3 Hotkey Ctrl F5>
        <Toggle>
            ... do stuff for WoW1 in foreground
            <SetToggle 2 Hotkey Ctrl F5>
    �Author of HotkeyNet and Mojo

  8. #8

    Default

    no problem, hope it works.

    ..btw. more as an exercise for myself (and to see, if HKN is realy able to call a Template which is specified by a parameter). I transfomed the above into templates...
    (which are more comlex to grasp, but could be reused for other such keys...)
    Code:
    // %1% : Key to broadcast
    // %2% : Positionorder of the windows 
    <Template Inside>
      	<ResizeAndPosition %2%>
      	<SendLabel w1, w2, w3, w4, w5>
      	<Key %1%>
    <EndTemplate>
    
    // %1% : Key 1
    // %2% : Key 2
    // %3% : Templatename of the Inside-Code
    <Template ForAndBackToggle>
    <Hotkey %1%>
    <Toggle>
      <SetToggle 5 Hotkey %2%>
      <ApplyTemplate %3% "%1%" "WoW5 WoW2 WoW3 WoW4 WoW1"> 	
    <Toggle>  
      <SetToggle 4 Hotkey %2%>
      <ApplyTemplate %3% "%1%" "WoW4 WoW2 WoW3 WoW1 WoW5">
    <Toggle>
      <SetToggle 3 Hotkey CTRL F6>
      <ApplyTemplate %3% "%1%" "WoW3 WoW2 WoW1 WoW4 WoW5">  
    <Toggle>
      <SetToggle 2 Hotkey %2%>
      <ApplyTemplate %3% "%1%" "WoW2 WoW1 WoW3 WoW4 WoW5">	
    <Toggle>
      <SetToggle 1 Hotkey %2%>
      <ApplyTemplate %3% "%1%" "WoW1 WoW2 WoW3 WoW4 WoW5">
    
    <Hotkey %2%>
    <Toggle>
      <SetToggle 5 Hotkey %1%>
      <ApplyTemplate %3% "%2%" "WoW2 WoW1 WoW3 WoW4 WoW5">	
    <Toggle>
      <SetToggle 4 Hotkey %1%>
      <ApplyTemplate %3% "%2%" "WoW3 WoW2 WoW1 WoW4 WoW5">	
    <Toggle>
      <SetToggle 3 Hotkey %1%>
      <ApplyTemplate %3% "%2%" "WoW4 WoW2 WoW3 WoW1 WoW5">	
    <Toggle>
      <SetToggle 2 Hotkey %1%>
      <ApplyTemplate %3% "%2%" "WoW5 WoW2 WoW3 WoW4 WoW1">  	
    <Toggle>
      <SetToggle 1 Hotkey %1%>
      <ApplyTemplate %3% "%2%" "WoW1 WoW2 WoW3 WoW4 WoW5">
    <EndTemplate>
    
    <ApplyTemplate ForAndBackToggle "Ctrl F5" "Ctrl F6" "Inside">
    OLIPCS - ordinary life is pretty complex stuff
    ----------------------------------------------------------------
    Pala, Priest, Druid, Hunter, Mage
    Focusless Targetless Leaderless - Wiki
    HotKeyNet - Guide

  9. #9

    Default

    Olipcs, our posts crossed. I wouldn't have bothered if I had seen yours first.
    �Author of HotkeyNet and Mojo

  10. #10

    Default

    Cookie goes to Freddy who pretty much got it right on the first shot with the ordering of the toggles.

    Of course, I needed to set the toggle variables in my initial F1, F2...so that it would continue to toggle in order. Looks nice.

Similar Threads

  1. Toggle Hotstrings?
    By Bettysue in forum Software Tools
    Replies: 1
    Last Post: 12-28-2008, 06:11 PM
  2. [keyclone] Reverse DNP
    By Redbeard in forum New Multi-Boxers & Support
    Replies: 3
    Last Post: 10-27-2008, 02:52 PM
  3. Toggle key.
    By Fillifjonkan in forum Software Tools
    Replies: 2
    Last Post: 09-19-2008, 12:14 PM
  4. How do you toggle the UI from a script?
    By Maz in forum Macros and Addons
    Replies: 3
    Last Post: 05-16-2008, 01:58 PM
  5. Follow on/off toggle?
    By nowisnothing in forum General WoW Discussion
    Replies: 2
    Last Post: 08-05-2007, 10:51 PM

Posting Rules

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