Sign in to follow this  
Followers 0
Terenz

[WIN10] TrayTip timeout

1 post in this topic

#1 ·  Posted (edited)

TrayTip("Test", "Hello", 60)
Sleep(1000*60)

On Windows 10, last version, the 60 seconds of the tray tip parametert doesn't mean the time you will "see the tray tip" but the time the "tray tip exist" on "Notification" panel. It will show on the display for just 5 seconds, too low for the user to see it and read it...

I have see online that i can:

1) Edit the registry, this key:

HKEY_CURRENT_USER\Control Panel\Accessibility

DWORD32 ---> MessageDuration

But the problem is require a logoff and a logon. I don't want to do that and i don't now if is possible to avoid it. Solutions?

2) API

Quote

Applications typically use pop-up windows to briefly display important notification messages to the user. An application creates the window, displays it for an application-defined duration, and then destroys the window.

Because users with visual impairments or cognitive conditions might need more time to read notification pop-ups, applications should not hard code the duration. Instead, an application should set the duration based on the value of the SPI_GETMESSAGEDURATION system parameter. To retrieve this parameter, use the SystemParametersInfo function.

Assistive technology applications can set the message duration, based on user input, by setting the SPI_SETMESSAGEDURATION system parameter.

Aboiut the "Assistive technology applications" well i think doesn't mean. How to set the SPI_SETMESSAGEDURATION system parameter? If it will require ADMIN RIGHTS well is another thing i can't use

Thanks for the help

Edited by Terenz

Nothing is so strong as gentleness. Nothing is so gentle as real strength

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0