Jump to content
Sign in to follow this  
BlueScreen

TrayTip issues

Recommended Posts

BlueScreen

Hi,

I was wondering if there is a way to run TrayTip command "in the background"

e.g.

TrayTip ("Status","NotePad is being opened",15,1)

Run("Notepad.exe", "", @SW_MAXIMIZE)

Although the timeout of the TrayTip is 15 seconds, the user will not see the TrayTip.

However, I don't want to delay the opening of notepad.

Is there a solution? :whistle:

Share this post


Link to post
Share on other sites
BlueScreen

Unfortunately, No.

I would not like the code to stop running while the traytip message appear.

Is there another solution? :whistle:

Share this post


Link to post
Share on other sites
Jos

Would this work ?

AutoItSetOption("WinTitleMatchMode", 2)

Run("Notepad.exe", "", @SW_MAXIMIZE)

TrayTip ("Status","NotePad is being opened",15,1)

while WinExists ( "Notepad",)

Sleep(1000)

wend

Exit

Jos

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest Christian_Blackburn

Hi BlueScreen,

I would recommend making it:

While WinExists(" - Notepad")
If someone happened to have a program running called "SuperNotepad" running or was editing a word document called "New line of 3M Notepads.doc" you would wind up with false positives without implimenting my suggestion.

Cheers,

Christian Blackburn

Edited by Christian_Blackburn

Share this post


Link to post
Share on other sites
BlueScreen

Right. Thanks alot. You all have been very helpfull. As always. :whistle:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.