OSDTIP()

Post your working scripts, libraries and tools
User avatar
SKAN
Posts: 812
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
User avatar
jNizM
Posts: 2663
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.32.00 x64 Unicode | [WIN] 10 Pro (Version 2004) x64 | [GitHub] Profile
Donations are appreciated if I could help you
User avatar
SKAN
Posts: 812
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

16 Jun 2020, 06:53

@jNizM Thanks for the feedback :thumbup: :)
User avatar
SKAN
Posts: 812
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).
blue83
Posts: 125
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: 812
Joined: 29 Sep 2013, 16:58

Re: OSDTIP()

06 Jul 2020, 16:56

@blue83 Thanks for the feedback :) :thumbup:
ozzii
Posts: 369
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: 812
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?
User avatar
jNizM
Posts: 2663
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.32.00 x64 Unicode | [WIN] 10 Pro (Version 2004) x64 | [GitHub] Profile
Donations are appreciated if I could help you
ozzii
Posts: 369
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: 812
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 3207 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.
User avatar
hasantr
Posts: 596
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: 369
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: 812
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: :)
User avatar
SKAN
Posts: 812
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 2454 times
User avatar
SKAN
Posts: 812
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 1693 times
User avatar
jNizM
Posts: 2663
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.32.00 x64 Unicode | [WIN] 10 Pro (Version 2004) x64 | [GitHub] Profile
Donations are appreciated if I could help you
ozzii
Posts: 369
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: 812
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 942 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.
User avatar
SKAN
Posts: 812
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.

:)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 16 guests