Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Windows 8 inspired GDIP volume OSD


  • Please log in to reply
25 replies to this topic
Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

Windows 8 inspired volume OSD, requires GDIP_all.ahk saved as GDIP.ahk in function library, or manually #included within the script.

People using older systems (< XP) may need to download gdiplus.dll, and save in same directory as script. Minimum OS is Windows 2000.

 

Download

 

Screenshot

 

gZ7BqqR.jpg

 

Features

Spoiler

 

Configuration guide

Spoiler

Suggestions are welcome.

 

Released into the public domain.

 

Alternative - Simple Volume OSD


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

Updated! Now OSD responds to clicks and drags when it is visible.


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


chaz
  • Members
  • 192 posts
  • Last active: Oct 01 2015 02:42 AM
  • Joined: 26 Mar 2013

Wonder if you could make it so that it won't disappear if the mouse is over it?


Find me at the other forum as timeFlies.


Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

I will try and report back.

EDIT : Done!

Modify the KillVolOSD subroutine as

KillVolOSD:
Gui, 1:+Lastfound
MouseGetPos,,,hwndM
If (hwndM=WinExist())
{
    SetTimer, KillVolOSD, 1000
    return
}
If AnimateWindow
    AnimateWindow(WinExist(),300,0x90000)
Gui, 1:+E0x80000
Gui, 1:Submit
SetTimer, KillVolOSD, Off
VarSetCapacity(hwndM,0)
return

Good idea, I shall incorporate it within my script.


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011
Is it normal than when my mouse is on the taskbar and I use the arrows, the volume is changing?

Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

Yes. You can disable that, by editing the SetHotkeys() function, to the following.

Spoiler

I have removed it from the actual download too, it seems an inconvenience, I have realised.


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011
Thanks.

What do you think about adding a configuration (on the top of your script) for the placement of the bar.
Something like this maybe:
TopLeft=true/false
TopCenter=true/false
TopRight=true/false
BottomLeft=true/false
BottomCenter=true/false
BottomRight=true/false
Easier to change for us than to calculate the right position.

Just a suggestion, not an obligation ;)

chaz
  • Members
  • 192 posts
  • Last active: Oct 01 2015 02:42 AM
  • Joined: 26 Mar 2013

So simple and quite short code, but better than any other AHK volume OSD I've seen. Thanks for making it!


Find me at the other forum as timeFlies.


Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

Thanks.

What do you think about adding a configuration (on the top of your script) for the placement of the bar.
Something like this maybe:

TopLeft=true/false
TopCenter=true/false
TopRight=true/false
BottomLeft=true/false
BottomCenter=true/false
BottomRight=true/false
Easier to change for us than to calculate the right position.

Just a suggestion, not an obligation 

 

I will try to figure it out, but it will take some time.

 

When you mean TopLeft, do you mean exactly in the corner, or some space between the OSD and the corner?

 

 

 

So simple and quite short code, but better than any other AHK volume OSD I've seen. Thanks for making it!

Thank you!


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011

Not exactly but maybe 5-10 px from the corner.

 

And me too I thank you for this (just forget to say it before).

 

Actually I have this for the bottom right:

XPos:=A_ScreenWidth-55
YPos:=A_ScreenHeight-185


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011

I tried this :

VolUpHotkey:="#{UP}"
VolDownHotkey:="#{DOWN}"

But I have an error.

 

Is it possible to make your script compatible with the special keys?



Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

What do you mean by special keys?

 

Do they represent up and down arrow keys?

VolUpHotkey:="#UP"
VolDownHotkey:="#DOWN"

Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011

In the help ; this is a special key : {UP}

 

But you answered my question.

No need to use the {}.

 

Thanks.



Rijul Ahuja
  • Members
  • 763 posts
  • Last active: Nov 25 2013 10:16 AM
  • Joined: 14 Mar 2012

Thanks.

What do you think about adding a configuration (on the top of your script) for the placement of the bar.
Something like this maybe:

TopLeft=true/false
TopCenter=true/false
TopRight=true/false
BottomLeft=true/false
BottomCenter=true/false
BottomRight=true/false
Easier to change for us than to calculate the right position.

Just a suggestion, not an obligation wink.png

 

Done!


Abandon the forum. The community has decided in a democratic vote to leave this website because of inactive and perverse administration.

Very few of the contributing members remain here.


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011

Thanks a lot...