Jump to content

TrayTip issues


Recommended Posts

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:

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...