Moderators Melba23 Posted March 30, 2021 Author Moderators Posted March 30, 2021 Andrei_V, Delighted you find it useful. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
zone97 Posted July 15, 2021 Posted July 15, 2021 I searched through this topic, but couldn't find what I needed. I have a 3 monitor setup, and would like these to appear on the right side, of the middle monitor? anyway to make that happen? Thanks Spoiler WinSizer 2.1 (01/04/2017) - Download - [ Windows Layout Manager ]Folder+Program (12/23/2016) - Download - [ USB Shortcut Creator ]
Moderators Melba23 Posted July 15, 2021 Author Moderators Posted July 15, 2021 zone97, Quote I searched through this topic, but couldn't find what I needed You did not look hard enough! Use the $iForceMonitor parameter in the _Notify_Locate function to set the monitor on which the Notifications appear. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
zone97 Posted July 15, 2021 Posted July 15, 2021 Thanks, I was searching for multi, guess I should have searched for monitor. Thanks. Spoiler WinSizer 2.1 (01/04/2017) - Download - [ Windows Layout Manager ]Folder+Program (12/23/2016) - Download - [ USB Shortcut Creator ]
Moderators Melba23 Posted July 15, 2021 Author Moderators Posted July 15, 2021 zone97, And did it work? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
zone97 Posted July 15, 2021 Posted July 15, 2021 Yes sir, thank you kindly for the help. Spoiler WinSizer 2.1 (01/04/2017) - Download - [ Windows Layout Manager ]Folder+Program (12/23/2016) - Download - [ USB Shortcut Creator ]
Moderators Melba23 Posted July 15, 2021 Author Moderators Posted July 15, 2021 zone97, Great! I do not have a multi-monitor setup so I am delighted to hear that the parameter actually works! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Wizardry Posted September 7, 2021 Posted September 7, 2021 Melba, Notify is an absolute excellent UDF. I use it all the time. There are times when it crashes for some reason. I have taken a screen shot of the error message. When it crashes it causes my main program to stop functioning. Is there a way to have exit peacefully and not effect the my main script? Thanks in advance, Jim
Moderators Melba23 Posted September 7, 2021 Author Moderators Posted September 7, 2021 Wizardry, I am delighted you like the UDF and that is useful to you. The error is caused by there being a discrepancy between the number of notifications actually displayed and those listed in the internal array of notifications. This usually occurs when 2 or more notifications are retracted in close succession and the internal array does not have time to update between events. I have tried many times in the past to improve the UDF logic to prevent this occurring but, as you have discovered, I have never been able to completely prevent this race condition. I will take another look at the code, but I fear that there is little more I can do. I might be able to prevent a critical error breaking the whole script, but off the top of my head this would probably be at the cost of a notification remaining permanently displayed. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Wizardry Posted September 7, 2021 Posted September 7, 2021 Thank you Melba, even if a notification is permanently displayed it is better than the script stopping. Anything you can do will be greatly appreciated. Again, a great UDF!!! Jim
Moderators Melba23 Posted September 18, 2021 Author Moderators Posted September 18, 2021 (edited) Wizardry, Sorry it has taken so long to get around to looking at this. Please try this new version and see if it cures the problem for you: M23 Edit: Slightly modified the code to give a more reliable check. Edited October 28, 2021 by Melba23 Beta code removed Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Wizardry Posted September 22, 2021 Posted September 22, 2021 On 9/18/2021 at 3:49 AM, Melba23 said: Wizardry, Sorry it has taken so long to get around to looking at this. Please try this new version and see if it cures the problem for you: Notify_Mod.au3 M23 Edit: Slightly modified the code to give a more reliable check. Melba, Thank you so much for taking the time out of your busy schedule to modify the code. I will test it out and get back to you. Again, a great UDF which is extremely useful.
Wizardry Posted October 20, 2021 Posted October 20, 2021 Melba, I have thoroughly test the modified code you so kindly provided to me. It has been a dream, not one error or crash in over a month. Again I appreciate you taking the time to help me. Great code and and even greater author of the code. Many thanks, Jim
Moderators Melba23 Posted October 21, 2021 Author Moderators Posted October 21, 2021 Wizardry, Delighted to hear it. Thanks for testing - and the compliments. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted October 28, 2021 Author Moderators Posted October 28, 2021 [NEW VERSION] - 26 Oct 21 Changed: Retracting multiple notifications in close succession could lead to a fatal "array subscript out of bounds" error - added a check to prevent this. New UDF in the first post. M23 mLipok 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mike2003 Posted January 28, 2022 Posted January 28, 2022 (edited) If the height is changed - "you can change it" On 1/1/2012 at 8:07 PM, Melba23 said: Local $iNotify_Height = 40 When calculating the shift $iNotify_Y, the height $iNotify_Height is not taken into account and everything overlaps. Edited January 28, 2022 by mike2003
Moderators Melba23 Posted January 28, 2022 Author Moderators Posted January 28, 2022 mike2003, Quote Can the text size be adjusted here? No, at the moment it is fixed at 9pt. Quote When calculating the shift $iNotify_Y, the height $iNotify_Height is not taken into account and everything overlaps. I think you are probably the first person to try and change the notification size - so it does not surprise me that it is not as easy as just changing the one variable. I will be looking into both of those reports over the weekend - unless my better half comes up with something more urgent for me to do! M23 mike2003 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted January 29, 2022 Author Moderators Posted January 29, 2022 (edited) mike2003, Please try this Beta version of the UDF - there is a new function _Notify_Size which allows you to alter the height and min/max widths of the notifications: Notify_Test.au3 The font and icon/image size is automatically adjusted within the UDF to match the chosen notification height. This automatic adjustment is deliberate - notifications are meant for short messages and so, as in previous requests for more text space, I am not prepared to allow more than the current 1/2 lines. Note that you need to run _Notify_Size BEFORE _Notify_Locate, if you are going to call the latter function. Let me know what you think - and comments from others welcome too, as always. M23 Edited January 29, 2022 by Melba23 Slightly tweaked code Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mike2003 Posted February 13, 2022 Posted February 13, 2022 (edited) It does not work for me. "_Notify_Size BEFORE _Notify_Locate" Everything remains the same. And the first element disappeared! #include "Notify_Test.au3" HotKeySet("{ESC}", "_Exit") _Notify_Size(200, 360, 400) ;~ _Notify_Size($iHeight = 40, $iMinWidth = 160, $iMaxWidth = 320) ; Set notification location _Notify_Locate(0, 2) ; Set Show time to 250 ms - note fast entry _Notify_Set(1, 0xAA0000, Default, "", True, 350) Global $aNotCID[5] $aNotCID[0] = _Notify_Show(0, "Title 1 asdf", "Message 1 asdf asd fasd dfg hdg dfghd gdgfdh dfgh dfg hdf") $aNotCID[1] = _Notify_Show(0, "", "Message 2" & @CRLF & "more Message 2") $aNotCID[2] = _Notify_Show(0, "Title 3", "Message 3") $aNotCID[3] = _Notify_Show(0, "", "Message 4" & @CRLF & "more Message 4") $aNotCID[4] = _Notify_Show(0, "Test", "Auto-retract", 1) While 1 Sleep(100) WEnd Func _Exit() Exit EndFunc Edited February 13, 2022 by mike2003
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now