Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro Notification Message box
#2
You can use function OnScreenDisplay. It displays transparent or tooltip-like text, depending on flags. Example:
Macro Macro1011
Code:
Copy      Help
OnScreenDisplay "Macro X is running" -1 -1 1 "" 0 0 8
rep 5
,wait 1

This macro changes OnScreenDisplay text while running:
Macro Macro1011
Code:
Copy      Help
sub.OSD "Starting..."
1
int i
for i 0 5
,sub.OSD i+1
,1
sub.OSD "DONE"
1


#sub OSD
function str'text
OnScreenDisplay F"---- Macro X ----[]{text}" -1 -1 1 "" 12 0xff0000 8|4 "Macro X"

-------------------

Or just use the Quick Macros tray icon, which changes color when a macro is running.
If it is a type of macro/function that does not change icon when running, or it is an exe-macro that runs not from QM, use function AddTrayIcon. Example:
Macro Macro1011
Code:
Copy      Help
AddTrayIcon "$qm$\macro.ico" "Macro X is running.[]You can Ctrl+click this icon to end it."
rep 5
,wait 1
But problem: Windows by default hides tray icons.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)