Task switch (ALT+TAB)

If you have a question or need help, this is the place to be.

Task switch (ALT+TAB)

Postby jollyb » Tue Apr 07, 2009 6:57 pm

How can i do the option "Task switch (ALT+TAB)" with EventGhost and my haupauge remote?
I have an hauppauge remote that i set to work with EventGhost, Kmplayer, Screamer Radio, Dvbviewer and Winamp. And it works very good, and i'm very happy with it.
I would love to have an option to pres some key on my remote that would switch between the current running programs/windows (in the taskbar) and bring them to front. Not only the before mentioned, but also for example Firefox etc. I would switch the programs (windows) until i switched to the program i want

Sorry if this is in already explained, i searched but i didn't found anything (or didn't look hard enough)
I tried some options, the action find window bu it didnt work
Thanks for help
jollyb
 
Posts: 6
Joined: Tue Mar 10, 2009 1:41 am

Re: Task switch (ALT+TAB)

Postby Pako » Tue Apr 07, 2009 7:49 pm

User avatar
Pako
Plugin Developer
 
Posts: 1282
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Task switch (ALT+TAB)

Postby jollyb » Tue Apr 07, 2009 9:58 pm


thanks for the link
i try to make something, but doesn't work. here is the screenshot of what i'm having in my code:
Image

if u could explain me step by step what i need to add to the configuration, that would be great. HauppaugeIR.NAVLEFT and HauppaugeIR.NAVRIGHT are my buttons on my remote that a wish to assing the alt+tab commands
jollyb
 
Posts: 6
Joined: Tue Mar 10, 2009 1:41 am

Re: Task switch (ALT+TAB)

Postby Pako » Wed Apr 08, 2009 6:19 am

Oh, you are still not found one big magic EG.
When some code starts with <? Xml version = "1.0" encoding = "UTF-8"?>, It's code in XML format. This code should be pasted directly into the configuration tree EG, and not into the dialog "Python script"! This snippet you get so, that you do copy a folder or a macro in the configuration tree and paste for example in a text editor.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1282
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Task switch (ALT+TAB)

Postby jollyb » Wed Apr 08, 2009 8:42 am

Pako wrote:Oh, you are still not found one big magic EG.
When some code starts with <? Xml version = "1.0" encoding = "UTF-8"?>, It's code in XML format. This code should be pasted directly into the configuration tree EG, and not into the dialog "Python script"! This snippet you get so, that you do copy a folder or a macro in the configuration tree and paste for example in a text editor.
Pako

aaaah :)
i deleted the folder alt_tab that i created, pasted the code belove into notepad, copied it back to configuration tree EG and it works.
thankU thankU

Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1262">
    <Folder Name="alt_tab" Expanded="True">
        <Macro Name="Push and hold ALT, send TAB" Expanded="True">
            <Event Name="HauppaugeIR.GO">
            </Event>
            <Action>
                EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(18,0,0,0)\nwin32api.keybd_event(9,0,0,0)\nwin32api.keybd_event(9,0,2,0)')
            </Action>
        </Macro>
        <Macro Name="Release ALT" Expanded="True">
            <Event Name="HauppaugeIR.GUIDE">
            </Event>
            <Action>
                EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(18,0,2,0)')
            </Action>
        </Macro>
    </Folder>
</EventGhost>

Image

Image
jollyb
 
Posts: 6
Joined: Tue Mar 10, 2009 1:41 am


Return to General Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests