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.

how can i emulate keystroke keyboard.volumeup??

If you have a question or need help, this is the place to be.
Post Reply
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

how can i emulate keystroke keyboard.volumeup??

Post by yakovyarmo »

is it doable??
xyz
Posts: 7
Joined: Wed Jun 03, 2009 5:06 pm

Re: how can i emulate keystroke keyboard.volumeup??

Post by xyz »

hi,
looking at the plugin's help it looks like it is not possible:

Code: Select all

{Ctrl} or {Control} 
{Shift} 
{Alt} 
{Return} or {Enter} 
{Back} or {Backspace} 
{Tab} or {Tabulator} 
{Esc} or {Escape} 
{Spc} or {Space} 
{Up} 
{Down} 
{Left} 
{Right} 
{PgUp} or {PageUp} 
{PgDown} or {PageDown} 
{Home} 
{End} 
{Ins} or {Insert} 
{Del} or {Delete} 
{Pause} 
{Capslock} 
{Numlock} 
{Scrolllock} 
{F1}, {F2}, ... , {F24} 
{Apps} (This is the context-menu-key) 
These will emulate keys from the numpad: 
{Divide} 
{Multiply} 
{Subtract} 
{Add} 
{Decimal} 
{Numpad0}, {Numpad1}, ... , {Numpad9} 
You could always use the "Set master volume" action.
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

Re: how can i emulate keystroke keyboard.volumeup??

Post by yakovyarmo »

but when i use the keyboard.volumeup there is an osd display. anybody as an idea how can i see it without the keyboard.volumeup?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: how can i emulate keystroke keyboard.volumeup??

Post by jinxdone »

Try this one.. (copy&paste into EG)

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="918">
    <Macro Name="Python Script" Expanded="True">
        <Action Name="VolumeMute">
            EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(173,0,0,0)\nwin32api.keybd_event(173,0,2,0)')
        </Action>
        <Action Name="VolumeDown">
            EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(174,0,0,0)\nwin32api.keybd_event(174,0,2,0)')
        </Action>
        <Action Name="VolumeUp">
            EventGhost.PythonScript(u'import win32api\nwin32api.keybd_event(175,0,0,0)\nwin32api.keybd_event(175,0,2,0)')
        </Action>
    </Macro>
</EventGhost>
-jinxdone
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

Re: how can i emulate keystroke keyboard.volumeup??

Post by yakovyarmo »

it works but for some strange reason i cant see the osd. i have an hp laptop. maybe these help??
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: how can i emulate keystroke keyboard.volumeup??

Post by jinxdone »

I was hoping that it would trigger the OSD as well, but apparently it did not. The OSD you are talking about comes from some of the HP programs, it's not a native windows feature. I really don't know what you should do to trigger it since the earlier thing I suggested did not work.

Most people just use the EG's built-in sound/volume actions. I think it's very likely that we will have an graphical OSD plugin at some point in the future with which you can have a volume bar and other graphics generated by EG. But until then, sorry..

-jinxdone
Post Reply