OSDTIP()

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

OSDTIP_Pop() - Code updated

14 Jun 2020, 15:59

OSDTIP_Pop() v0.55 :
Couple of glitches fixed.
WS_EX_STATICEDGE is removed from progress
The border you see around Progress will no more be present.
 
  • Code: Select all

    OSDTIP_Pop("Notification", "Message", 0, "C11 zh7 w160 CW101010 CTD3D3D3 U1 U2",,,0x00FFFF, 0x808080, 30) ; #Persistent required
    Previously w/ WS_EX_STATICEDGE
    Image

    Hereafter w.o WS_EX_STATICEDGE
    Image
My Scripts and Functions: V1  V2
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: OSDTIP()

16 Jun 2020, 02:07

Thanks for these interesting functions. Those look useful. :thumbup:

It's good to see you more active again. ;)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

16 Jun 2020, 06:53

@jNizM Thanks for the feedback :thumbup: :)
My Scripts and Functions: V1  V2
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

OSDTIP_KBLeds() - Code updated

27 Jun 2020, 17:58

OSDTIP_KBLeds() v0.51 :
Some unknown glitch fixed. GetKeyState() was returning incorrect key state maybe due to being called from timed pseudo thread.
I didn't 'see' the error as I wrote the function with a wireless keyboard which had no LEDs.
Fixed the code now with help of a wired keyboard (which has LEDS).
My Scripts and Functions: V1  V2
blue83
Posts: 157
Joined: 11 Apr 2018, 06:38

Re: OSDTIP()

06 Jul 2020, 14:44

Hi @SKAN ,

All of this look really helpfull and beautiful work.

Thank you for your all new functions.
Blue
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

06 Jul 2020, 16:56

@blue83 Thanks for the feedback :) :thumbup:
My Scripts and Functions: V1  V2
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: OSDTIP()

24 Jul 2020, 04:18

Hi SKAN,

A question about OSDTIP_Pop().
How to make the OSD centered? Because the standard for progress is centered. so I can't overide this option (without some calcul).....
Maybe a new option to add ;)
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

OSDTIP()

24 Jul 2020, 07:59

Hi ozzii :)
ozzii wrote:How to make the OSD centered?
OSDTIP_Pop() was written specifically for EjectEx() : Call Eject() from File Explorer.
 
If we show it centered, it wouldn't look good without a drop shadow, but then AnimateWindow() shouldn't be used
Microsoft says: Avoid animating a window that has a drop shadow because it produces visually distracting, jerky animations.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-animatewindow

ozzii wrote:Maybe a new option to add ;)
Maybe a new OSDTIP instead, that appears center screen!
What do you favor:
Drop shadow or animation?
Plain progress BG that acts as a line or a marquee?
My Scripts and Functions: V1  V2
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: OSDTIP()

24 Jul 2020, 08:02

Nice. Another idea. Some kind of running banner (scrolling ticker). At the top, bottom (above the taskbar) or in the middle of the screen.


With different types of information. Like this:
Image
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: OSDTIP()

25 Jul 2020, 04:12

@SKAN
Don't have any preferences. What's is easier to you ;)

@jNizM
Yes, a simple like bootstrap notification in the center of the screen.
With type (success, error...), message and timeout like parameters ;)
This can be very handy.
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

25 Jul 2020, 17:13

ozzii wrote: @SKAN
Don't have any preferences. What's is easier to you ;)
Okay! Wanted to try something new.. experimented with TaskDialogIndirect
20200726032835.png
20200726032835.png (4.5 KiB) Viewed 5938 times
1) Cannot stop it from getting activated
2) Cannot resize it with WinMove

I will try some other thing before falling back to Progress UI. Please allow me some time.

@jNizM

Nice! Thanks for the suggestion. I will have to use HTM to get such result I suppose.
My Scripts and Functions: V1  V2
hasantr
Posts: 933
Joined: 05 Apr 2016, 14:18
Location: İstanbul

Re: OSDTIP()

26 Jul 2020, 02:28

It is beautiful as usual, and very easy to use. :)
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: OSDTIP()

26 Jul 2020, 03:55

Nice SKAN.
And of course you have time to do it.... Let's say 2-3 hours max ;)

(kidding of course) ;) ;)
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

26 Jul 2020, 20:03

hasantr wrote:
26 Jul 2020, 02:28
It is beautiful as usual, and very easy to use. :)
Thanks :thumbup: :)
My Scripts and Functions: V1  V2
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

26 Jul 2020, 20:05

@ozzii

Do these look okay? Any suggestions?
alert.png
alert.png (13.26 KiB) Viewed 5185 times
My Scripts and Functions: V1  V2
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

OSDTIP_Alert() - Suggestions please!

27 Jul 2020, 05:59

Okay! Using text color for vertical bar looks so bland.
Is this better?
Alert2.png
Alert2.png (15.57 KiB) Viewed 4424 times
My Scripts and Functions: V1  V2
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: OSDTIP()

27 Jul 2020, 07:35

Looks great so far 👍
But I think the original color codes fit better. Or am I just blind.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: OSDTIP()

27 Jul 2020, 09:20

For me the 2 looks fine ;)
What you think it's better, this is what I will use....
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

27 Jul 2020, 10:50

jNizM wrote:
27 Jul 2020, 07:35
Looks great so far 👍
But I think the original color codes fit better. Or am I just blind.
Maybe it looks too punchy because of large fonts. I have toned down the default text size.
 
Where can I find original color codes?
I screen picked the following colors from : https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=common-alert-messages
which is slightly different from color specified in bootstrap CSS : https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css
Alert3.png
Alert3.png (7.81 KiB) Viewed 3673 times
 
Without an Icon, Info and Success look too close!
These colors can be over-ridden with parameters.. I'm only struggling to fix the default ones..

@ozzii :thumbup: :)
I think I will finalize the above color scheme as default. Hope you are ok with it.
My Scripts and Functions: V1  V2
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

27 Jul 2020, 17:26

@ozzii

Hi, refer next post for documentation and main post for the function.
Please let me know any glitches.

:)
My Scripts and Functions: V1  V2

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: gongnl and 63 guests