I figured out the answer to my previous post with some regedit fun but I now what a system and a Winamp Volume bar (Like the one you get with some of the keyboard/Soundcard/laptop/etc drivers
Does Event Ghost have an option for that? I already know I can get a simple OSD but is a Volume Bar OSD Possible?
Thanks
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.
Is a volume bar OSD possible?
Re: Is a volume bar OSD possible?
Yes some here helped me to create a volume bar for MPC that also has percentage after it. This shows how it works in MPC.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
<Macro Name="Volume Up" Expanded="True">
<Event Name="X10.Up" />
<Action>
MediaPlayerClassic.VolumeUp()
</Action>
<Action>
EventGhost.PythonScript(u'from eg.WinApi.Dynamic import SendMessage\nTBM_GETPOS = 1024\nFind_MPC_Volume_Ctrl=eg.WindowMatcher(u\'mpc-hc.exe\', u\'{*}Media Player Classic{*}\', u\'MediaPlayerClassicW\', u\'\', u\'msctls_trackbar32\', 1, True, 0.0, 0)\nhwnd = Find_MPC_Volume_Ctrl()\n\nM = 2\n\nif len(hwnd) > 0:\n volume = int(SendMessage(hwnd[0], TBM_GETPOS, 0, 0)/5)\n eg.result = volume*M*u\'\\u2588\'\n volume2 = SendMessage(hwnd[0], TBM_GETPOS, 0, 0)\n eg.result2 = volume2\nelse:\n print "Window not found"\n eg.result = \'\'')
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {eg.result} {eg.result2}%', u'0;-48;0;0;0;400;0;0;0;238;3;2;1;49;Lucida Console', (255, 0, 0), (0, 0, 0), 0, (60, 150), 0, 2.0, False)
</Action>
<Action>
EventGhost.AutoRepeat(0.59999999999999998, 0.59999999999999998, 0.01, 2.0)
</Action>
</Macro>
</EventGhost>