Jump to content

hucom

Members
  • Posts

    4
  • Joined

  • Last visited

hucom's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ​The last (minor) issue I'm having, is that the .png goes missing when I compile the script (x86 or x64). "Examples\GUI\Torus.png" But if you don't have time to reply, I understand :-)
  2. ​You are absolutely right, of course. I had pasted a modification from the forums (don't remember which one) of the "Notify" file itself. Now that I reverted that, it works like a charm. You are AWESOME. Thank's again!!!
  3. Wow! You are so fast! I understand your intent and appreciate you input for the way I would like to use the code. I just tried your modification, now it just disappears right away (doesn't wait for any clicks). ; Check to see if notification still exists If Not WinExists($hNotification) Then ; And exit if not On_Exit() EndIfI'm sorry, I feel like an idiot, but I'm a beginner with autoit... Thanks again!
  4. I have reduced this fantastic script to just showing one clickable notification, but now it doesn't exit anymore... just pauses. After several hours, my head is swimming. I just need the script to fully exit, when the user clicks on the notification. What am I doing wrong?? Any help is MOST appreciated. Here's the code: #include "Notify.au3" Opt("TrayAutoPause", 0) ; Press ESC to exit script HotKeySet("{ESC}", "On_Exit") Global $fNot_1_Vis = True, $iBegin = 0 Global $sAutoIt_Path = StringRegExpReplace(@AutoItExe, "(^.*\\)(.*)", "\1") ; Register message for click event _Notify_RegMsg(0) ; Set notification location _Notify_Locate(0) ; Show notifications ; Set all values to default ; _Notify_Set(Default) ; _Notify_Show(@AutoItExe, "Not Clickable with EXE icon", "Retracts after 20 secs", 20, 0) ; Set Show time to 250 ms - note fast entry ; _Notify_Set(0, 0xFF0000, 0xFFFF00, "Courier New", False, 250) ; _Notify_Show(0, "Clickable", "Coloured - stays 40 secs if not clicked", 40) ; Change colours and font ; _Notify_Set(4, 0x0000FF, 0xCCFFCC, "Arial") ; _Notify_Show(0, "Clickable", "Only in margin until clicked - click again to retract", 50) ; Reset all values to default _Notify_Set(Default) _Notify_Show($sAutoIt_Path & "Examples\GUI\Torus.png", "Clickable with PNG", "Reset to default colours") ; Change justification, colours, font, Reset mode to Slide and Show mode to "fade in" 1000ms ; _Notify_Set(6, 0x0000FF, 0xCCCCFF, "Comic MS", True, -1000) ; _Notify_Show(48, "Not Clickable", "With an icon - stays 30 secs", 30, 0) ; Change them all again ; _Notify_Set(0, Default, 0xCCFF00, "Arial", True, Default) ; This one is clickable, but will only remain in the margin until clicked ;$hNot_1 = _Notify_Show(0, "", "No title so the message can span both lines without problem if it is long enough to need it") ; And again ; _Notify_Set(0, Default, 0xFF80FF, "MS Comic Sans", True) ; This one can only be retracted programatically 2 secs after the one above and will fade out, overriding the default setting ;$hNot_2 = _Notify_Show(0, "Programmed Fade", "This will disappear 2 seconds after the 'No Title' one", 0, 0, Default, -1000) While 1 Sleep(10) ;If Not WinExists($hNot_1) And $fNot_1_Vis = True Then ;$iBegin = TimerInit() ;$fNot_1_Vis = False ;EndIf If $iBegin And TimerDiff($iBegin) > 2000 And WinExists($hNot_2) Then _Notify_Hide($hNot_2) $iBegin = 0 EndIf WEnd Func On_Exit() Exit (0) EndFuncThank you so much!!
×
×
  • Create New...