Sign in to follow this  
Followers 0
BlueScreen

TrayTip issues

8 posts in this topic

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



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

#4 ·  Posted (edited)

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                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

10x This is good. :whistle:

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

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  
Followers 0