Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Task Switching

If you have a question or need help, this is the place to be.
Post Reply
Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Task Switching

Post by Jostein »

Hi.

Is there a smart way to "alt+tab" with a remote? When i use "emulate keystroke" it only swithes between the curent window and the one i used last.

Is there a way to go to the next one.

Say if you have 4 folders open, the first pres would take you to the first and the second press to the 2end window and so on.

Thanks
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Task Switching

Post by stottle »

That's an interesting one. The problem is that when you use alt-tab, you keep down the alt button and hit tab successively to switch the target. EG sends Alt+Tab as a single shot, so it always switches between the first two targets. That's exactly what happens on the keyboard.

I'm not sure there's any intuitive way to have a remote act like holding down one key and let you hit other keys, unless maybe there's something that could be down with long button presses and autorepeat?

Brett
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: Task Switching

Post by jsonnabend »

I haven't tried it, but the approach I would explore is:

1. have a button turn on "alt tab mode" by programmatically pressing the alt key.

2. in that mode, use right arrows to trigger tab, left arrows to trigger shift-tab.

3. use enter to turn off "alt tab mode" by programmatically releasing the alt key.

(Although I don't recall now whether EG allows "key down" events as opposed to "key press" (i.e., key down followed by key up) events).

- Jeff

[edit]If EG doesn't allow key down events, you might look into using win32api.keybd_event in a script. That should allow you to press and hold the alt key.[/edit]
Post Reply