leuce Posted July 21, 2019 Share Posted July 21, 2019 Hello everyone I've just upgraded from Windows 7 to Windows 10, and discovered that tray tips can no longer be used to track progress (since (a) setting a new tray tip does not instantly cancel the previous one and (b) the tray tip does not display instantly but instead sort of flows in from the side, not to mention (c) making notification beeping noises). $j = 100 For $i = 1 to $j TrayTip ("Progress...", $i & " processed so far", 10) Sleep ("100") Next What other simple forms of showing progress on screen are available? I know of ProgressOn, but that only shows a bar based on percentages. Is there a way to include numerical information on the ProgressOn progress bar, e.g. "currently processing $i out of $j"? Sometimes my script don't know what "100%" is going to be, but I would like the progress to be displayed on screen anyway. I could use a ToolTip: $j = 100 For $i = 1 to $j ToolTip ($i & " processed so far", @DesktopWidth - 200, 100, "Progress...") Sleep ("100") Next Do you know of any ready-made GUI elements that I can use to output similar progress messages? Thanks Samuel Link to comment Share on other sites More sharing options...
Nine Posted July 21, 2019 Share Posted July 21, 2019 Look at those functions : ProgressSet () GUICtrlCreateProgress () “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 21, 2019 Moderators Share Posted July 21, 2019 leuce, Perhaps my Notify or Toast UDFs might be of use - links are in my sig. 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...
Exit Posted July 21, 2019 Share Posted July 21, 2019 ;~ #include "_TraySetToolTip_Ex.au3" ; http://www.autoitscript.com/forum/index.php?showtopic=146910 If HotKeySet("[ESC}", "_Hotkey") = 0 Then exit MsgBox(16 + 262144, Default, "Hotkey ESC invalid or set by another application.") Local $iLoopcount = 0 While Sleep(1000) ; never ending loop $iLoopcount += 1 _TraySetToolTip_Ex("Loopcount: " & $iLoopcount) WEnd Exit Func _Hotkey() MsgBox(64 + 262144, Default, "Exit", 3) EndFunc ;==>_Hotkey Func _TraySetToolTip_Ex($sText = "") ; #include "_TraySetToolTip_Ex.au3" ; http://www.autoitscript.com/forum/index.php?showtopic=146910 If Not $sText Then $sText = Chr(0) ; Chr(0) = no tooltip displayed TraySetToolTip($sText) Local $_SysTray_hToolTip = DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", ControlGetHandle(ControlGetHandle(ControlGetHandle(WinGetHandle("[CLASS:Shell_TrayWnd]"), "", "[CLASS:TrayNotifyWnd]"), "", "[CLASS:SysPager]"), "", "[CLASS:ToolbarWindow32; INSTANCE:1]"), "uint", 0x423, "wparam", 0, "lparam", 0) ; $TB_GETTOOLTIPS = 0x423 $_SysTray_hToolTip = HWnd($_SysTray_hToolTip[0]) If Not IsHWnd($_SysTray_hToolTip) Or WinGetTitle($_SysTray_hToolTip) <> $sText Then Return DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $_SysTray_hToolTip, "uint", 0x41D, "wparam", 0, "lparam", 0) ; $TTM_UPDATE = 0x41D EndFunc ;==>_TraySetToolTip_Ex Run this script and point the mouse pointer at the Autoit symbol in the system tray. A tooltip appears, which changes every second. With ESC you can leave the script. Have fun App: Au3toCmd UDF: _SingleScript() 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