actually, you only need two buttons: hold [alt] + send [tab] and release [alt]... you can press hold [alt] + send [tab] several times, no need for [tab] alone
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.
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.
OSD Volume display w/ current level? + ALT+TAB!?
Re: OSD Volume display w/ current level? + ALT+TAB!?
alt+tab works great, thanks 
actually, you only need two buttons: hold [alt] + send [tab] and release [alt]... you can press hold [alt] + send [tab] several times, no need for [tab] alone
actually, you only need two buttons: hold [alt] + send [tab] and release [alt]... you can press hold [alt] + send [tab] several times, no need for [tab] alone
Re: OSD Volume display w/ current level? + advanced Question!
Sorry for digging out this thread. Pardon me as I just started playing with eventghost recently. I don't reallyPako wrote:Try this:
Python CommandPakoCode: Select all
eg.WinAPI.SoundMixer.GetMasterVolume()
get what these commands. Possible to post the big picture? Thanks a million.
Regards,
Gavin
Easier Task Switching in Windows 7/Vista
I just started working with Windows 7. Windows 7 (and apparently Vista) has a task switch function activated by CTRL+ALT+TAB that brings up the task switcher without requiring the ALT key to be held down. The arrow keys can be used to select the task, with the enter key activating the selected task. This allows for a simpler task switching approach in EventGhost, requiring only sending CTRL+ALT+TAB once (using a single remote button), and then using the arrow keys and enter (which on my remote were already programmed in as global controls).
Note that this is apparently not available under XP (although a plugin may allow for similar controls).
Hope that helps someone!
Note that this is apparently not available under XP (although a plugin may allow for similar controls).
Hope that helps someone!
Re: OSD Volume display w/ current level? + ALT+TAB!?
Just following up on my last post, for XP users, check out a program called "Alt-Tab Thingy", which adds similar task switching functionality to XP.
Re: OSD Volume display w/ current level? + ALT+TAB!?
Howdy,
I have read and forgot and read again this article maybe 20 times. Trying to work out both these issues on my setup...sort of...but different.
The volume OSD (bar graph type of thing?) is what I would like to end up with eventually. Haven't played with those commands much...yet.
But...
What I really really want is a task switch command for my remote that is pretty much one button.
I would LOVE to be able to press one button over and over to select the task and then after the one is highlighted that I want to choose I stop pressing. Then after a short wait (AFTER) last button push it will be selected.
Sound doable?
An action AFTER a button release. I could do a long button press but I don't like long button presses much (my time is too valuable...lol NOT!!) but also for some reason long button presses on my x-10-FireFly SUCK!!! and hardly ever work. (it's also on the ToDo/research/fix list).
I have been working with the codes some of you have been pasting/sharing and trying to make them work. Think I'm getting real close...maybe.
Thanks to all you folks who share your coding skills with us neophytes...especially to Pako Big Time!!
I have read and forgot and read again this article maybe 20 times. Trying to work out both these issues on my setup...sort of...but different.
The volume OSD (bar graph type of thing?) is what I would like to end up with eventually. Haven't played with those commands much...yet.
But...
What I really really want is a task switch command for my remote that is pretty much one button.
I would LOVE to be able to press one button over and over to select the task and then after the one is highlighted that I want to choose I stop pressing. Then after a short wait (AFTER) last button push it will be selected.
Sound doable?
An action AFTER a button release. I could do a long button press but I don't like long button presses much (my time is too valuable...lol NOT!!) but also for some reason long button presses on my x-10-FireFly SUCK!!! and hardly ever work. (it's also on the ToDo/research/fix list).
I have been working with the codes some of you have been pasting/sharing and trying to make them work. Think I'm getting real close...maybe.
Thanks to all you folks who share your coding skills with us neophytes...especially to Pako Big Time!!
eventghost.net
Be there or be square.
Be there or be square.
Re: OSD Volume display w/ current level? + ALT+TAB!?
Hi guys,
I know this is an old thread, but I've managed to write a script to handle the ALT + TAB with one button since and thought it would be a good idea to share it.
The way it works is if you press the button once it sends the alt + tab but does not release the alt so the list stays on the screen.
You can then press the same button again to advance in the list then wait to switch to that program after a delay or press enter to go to it right away.
The HID.Button.26 is the button that handles the event, replace it with whatever button you want to use.
Make sure that if you change the id for the macro you update the id here:
Also the 1.5 in the above line determines the time the list will stay on the screen (and the amount of the time you will wait for the task to be switched).
1.5s is on the long side for me, but sometimes i just can't find the right icon fast enough
One more thing:
If you are not running EventGhost as administrator then if you switch to a program that you are running as administrator this macro will not work to get switch out of that program.
Hope somebody finds it useful.
Robert
I know this is an old thread, but I've managed to write a script to handle the ALT + TAB with one button since and thought it would be a good idea to share it.
The way it works is if you press the button once it sends the alt + tab but does not release the alt so the list stays on the screen.
You can then press the same button again to advance in the list then wait to switch to that program after a delay or press enter to go to it right away.
Code: Select all
<Macro Name="Push and hold ALT, send TAB" id="321" Expanded="True">
<Event Name="HID.Button.26" />
<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>
<Action>
EventGhost.JumpIfDoubleEvent(1.5, XmlIdLink(321))
</Action>
<Action>
EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(18,0,2,0)')
</Action>
</Macro>
Make sure that if you change the id for the macro you update the id here:
Code: Select all
EventGhost.JumpIfDoubleEvent(1.5, XmlIdLink(321))1.5s is on the long side for me, but sometimes i just can't find the right icon fast enough
One more thing:
If you are not running EventGhost as administrator then if you switch to a program that you are running as administrator this macro will not work to get switch out of that program.
Hope somebody finds it useful.
Robert
Re: OSD Volume display w/ current level? + ALT+TAB!?
Thanks for sharing Robert. It worked great.
Re: OSD Volume display w/ current level? + ALT+TAB!?
sorry for digging out this "old" thread, but i think its still relevant, at least because i've got a question 
Im an absolute beginner and can't imagine what the problem could be.. i tried to use that code snippets, but all i got from eventghost is an error in line1. i just created a folder, a macro and then a python script with an button event.
isnt the code up to date anymore or have i understand something completely wron?
i just want to use the alt+tab function to switch between programms with an MCE.
Error compiling script.
Traceback (most recent call last):
IndentationError: unexpected indent (121, line 1)
Im an absolute beginner and can't imagine what the problem could be.. i tried to use that code snippets, but all i got from eventghost is an error in line1. i just created a folder, a macro and then a python script with an button event.
isnt the code up to date anymore or have i understand something completely wron?
Error compiling script.
Traceback (most recent call last):
IndentationError: unexpected indent (121, line 1)
Re: OSD Volume display w/ current level? + ALT+TAB!?
python scripts must be well formated. If you don't know it, paste the script here in a code block and we will see.Sagehorn wrote: Error compiling script.
Traceback (most recent call last):
IndentationError: unexpected indent (121, line 1)
Re: OSD Volume display w/ current level? + ALT+TAB!?
I am the original person who requested it and can mirror the aforementioned problem.
I believe it started after I upgraded to Windows 7. The sound control still works, but Eventghost fires a similar error while using it.
I believe it started after I upgraded to Windows 7. The sound control still works, but Eventghost fires a similar error while using it.
Re: OSD Volume display w/ current level? + ALT+TAB!?
Hello. As newbie I managed to configure EG to my needs, the only problem that is left is Alt+Tab. I tried both codes written above. I copied the code, insert it with Strg+V into the EG configuration window and replaced the button(s) from the original remote with my remote button(s). But then when I push the button of my remote (it┬┤s an X10), it is shown in the log but nothing happens. Also no error message appears. Any idea what am I doing wrong? Or doesn┬┤t this work with Windows 8? I hope someone can help...
Re: OSD Volume display w/ current level? + ALT+TAB!?
I solved it! In case anyone else is interested, I installed the freeware "Switcher" which simulates Flip-3D under Win 8 (shows all active Windows in small at once). Then I changed the shortcut to activate Switcher to Ctrl+F1. And EG works fine with this keyboard combination. You also need Tab and Enter to select the window you want to bring on top and thats it.