MKANET Posted June 15, 2012 Share Posted June 15, 2012 (edited) Thank you Melba23, The below works, however, I'm not too sure if this is the most straight-forward to display the message for 2 seconds and fade in and out... _Notify_Set(2, 0xFF9C18, 0x000073, "Arial Rounded MT Bold", False, Default) $hNot_2 = _Notify_Show(48, "Title of Message", "This is the message.", 0, 0, -1000, -1000) Sleep (2000) _Notify_Hide($hNot_2) PS: How do I get rid of the white border around the notify window? MKANET, The beta version in this post already has a fade in/out option. You cannot get better service than that! M23 Edited June 16, 2012 by MKANET Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 15, 2012 Author Moderators Share Posted June 15, 2012 BrewManNH,Interesting - I can see no reason why this should happen as the UDF creates a GUI which should become the default for the font/colour/style settings. Could you replace your GUISwitch patch with this change to the label code and see if it makes any difference? All it does is define the UDF label ControlID for the settings rather than using the -1 shortcut - perhaps this will prevent your script from picking up the UDF settings: ; Create labels Local $cLabel If $sTitle Then ; Title $cLabel = GUICtrlCreateLabel($sTitle, 4 + $iIcon_Reduction, 0, $iLabel_Width, $iLabel_Height) GUICtrlSetFont($cLabel, 9, 800, 0, $aNotify_Settings[1][3]) GUICtrlSetBkColor($cLabel, $aNotify_Settings[1][2]) GUICtrlSetColor($cLabel, $aNotify_Settings[1][1]) GUICtrlSetStyle($cLabel, $aNotify_Settings[1][0]) ; Message $cLabel = GUICtrlCreateLabel($sMessage, 4 + $iIcon_Reduction, 20, $iLabel_Width, $iLabel_Height) GUICtrlSetFont($cLabel, 9, 400, 0, $aNotify_Settings[1][3]) GUICtrlSetBkColor($cLabel, $aNotify_Settings[1][2]) GUICtrlSetColor($cLabel, $aNotify_Settings[1][1]) GUICtrlSetStyle($cLabel, $aNotify_Settings[1][0]) Else ; Message $cLabel = GUICtrlCreateLabel($sMessage, 4 + $iIcon_Reduction, $iLabel_Y, $iLabel_Width, 40 - $iLabel_Y) GUICtrlSetFont($cLabel, 9, 400, 0, $aNotify_Settings[1][3]) GUICtrlSetBkColor($cLabel, $aNotify_Settings[1][2]) GUICtrlSetColor($cLabel, $aNotify_Settings[1][1]) GUICtrlSetStyle($cLabel, $aNotify_Settings[1][0]) EndIfM23 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 16, 2012 Author Moderators Share Posted June 16, 2012 MKANET,Apologies - as we posted at about the same time yesterday I missed your post above. The code looks fine - why would you expect me to offer a better way than that? If you want to remove the border, you will have play with the GUICreate line in the UDF to get a borderless GUI. I would suggest removing the $WS_EX_STATICEDGE extended style as starting point. 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 Link to comment Share on other sites More sharing options...
MKANET Posted June 17, 2012 Share Posted June 17, 2012 Hi M23, thanks so much for replying. I'm still gaining confidence in my own coding; as, I'm still very new to autoit. I'm glad that I'm on the right track. It looks like removing the white border is still a bit above my skill level and experience to do at this time. I was able to manipulate the border; but not quite enough to remove completely. BTW, I have one suggestion for you to consider for next version.. rounded corners... Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 17, 2012 Author Moderators Share Posted June 17, 2012 (edited) MKANET,I have one suggestion for you to consider for next version.. rounded cornersNot a chance. But there are plenty of threads on the forum about how you can do it yourself. M23 Edited June 17, 2012 by Melba23 Fixed emoticons 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 Link to comment Share on other sites More sharing options...
MKANET Posted June 18, 2012 Share Posted June 18, 2012 (edited) Edit: Please disregard my last post. It was user error. Edited June 19, 2012 by MKANET Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 19, 2012 Author Moderators Share Posted June 19, 2012 MKANET, Just as well I went to play golf today (a level round as well ) and decided to look at your problem tonight! 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 30, 2013 Author Moderators Share Posted January 30, 2013 [New Version] - 30 Jan 13Ooops! I just realised I never released the beta that was posted last spring! So here it is:New: Notifications can now:- Stay almost hidden in the border until you click them on them to display.- Fade in/out as well as slide - either mode can be set as default or on an individual basis.- Appear/disappear at user-defined speeds - again these can can be set as default or on an individual basis.Thanks to z0iid for the suggestions. Fixed: A couple of bugs - thanks BrewManNH. New files and zip in first post. 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 Link to comment Share on other sites More sharing options...
careca Posted May 12, 2013 Share Posted May 12, 2013 Hi, Notify does what i need, but i would like to do some changes, the thing is that i want to use it with an image, and i can do that, but it has 32px and i want to increase it to 48 or 64, but if i do that, the messa overlaps the image, and it gets a bit weird, how can i increase the image size proportionaly without messing up the message? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2013 Author Moderators Share Posted May 16, 2013 careca, The notifications are only 2 lines deep as they are designed to be used for small announcements - having a larger image would defeat the whole object of the UDF. So I am not prepared to increase the image size displayed within them - sorry. 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 Link to comment Share on other sites More sharing options...
careca Posted May 16, 2013 Share Posted May 16, 2013 Ok, i guess i can live with it, until something bigger comes up, now i had to find a way to make them appear everytime, because it seems that sometimes it skips some notifications, i was thinking maybe delete a present notify, before displaying another. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2013 Author Moderators Share Posted May 16, 2013 careca, You can only display as many notifications as there is space to display them - could you be running up against that limit? And try adding some errorchecking code to see if you can indentify why the missing notifications did not appear. All you need is explained in the function header: ;Failure: Returns -1 and sets @error as follows: ; 1 = Maximum number of notification that can be displayed ; 2 = Icon parameter invalid ; 3 = Other parameter invalid (@extended 1=$iDelay, 2=$iClick, 3=$iShow, 4=$iHide) ; 4 = StringSize error ; 5 = Title/text will not fit in widest message (@extended = 0/1 = Title/Text) ; 6 = Notification GUI creation failed 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 Link to comment Share on other sites More sharing options...
Ivo Posted May 25, 2013 Share Posted May 25, 2013 Hi, very cool, I really like it and can use it for one of my future projects Keep up the good work. BR. Ivo Ivo Link to comment Share on other sites More sharing options...
ManoBro Posted September 19, 2013 Share Posted September 19, 2013 Thank you very much Melba23 it's great Link to comment Share on other sites More sharing options...
TheSaint Posted September 21, 2013 Share Posted September 21, 2013 @Melba23 - If I haven't thanked you already or even if I have, Thanks! Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
ViRnik Posted September 28, 2013 Share Posted September 28, 2013 Thanks man, I love it. Link to comment Share on other sites More sharing options...
AntiFros Posted March 16, 2014 Share Posted March 16, 2014 I found this script very useful but I need one more improvement. I want to be notified while Im playing games. I tested it and it wont pop up in the game. Other programs such as skype pop ups their info boxes and I can see them while Im playing Battlefield 3 and it wont crash that game or something. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 16, 2014 Author Moderators Share Posted March 16, 2014 AntiFros, I need one more improvement. I want to be notified while Im playing gamesI am not interested in adding that functionality - especially when asked in such a manner. 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 Link to comment Share on other sites More sharing options...
AntiFros Posted March 16, 2014 Share Posted March 16, 2014 English for me is third language so sorry if I say something wrong. All my freetime I spend developing and creating game mods such as mods for battlefield 2 or Counter Strike. For long time I searched for method which would show me what happens in my script (script gather information from website and notifies me the news) without crashing the game interface (msgbox do that). Notify is perfect but it wont work like I want. Anyway thanks for this great script. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 16, 2014 Author Moderators Share Posted March 16, 2014 AntiFros,And as I understand from your last post that you want this new UDF functionality to announce how your game-bot is progressing, then the answer is most definitely "NO". And if you have not done so already, I suggest you read the Forum rules in pretty short order. 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 Link to comment Share on other sites More sharing options...
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