{"id":239,"date":"2009-05-05T23:40:30","date_gmt":"2009-05-06T04:40:30","guid":{"rendered":"https:\/\/blog.cedeq.com\/?p=239"},"modified":"2024-03-11T00:55:36","modified_gmt":"2024-03-11T00:55:36","slug":"autohotkey-display-an-on-screen-message","status":"publish","type":"post","link":"https:\/\/blog.cedeq.com\/autohotkey-display-an-on-screen-message\/","title":{"rendered":"AutoHotkey – Display an on-screen message"},"content":{"rendered":"\n

When I use AutoHotkey to run background tasks, download files and prepare backups, I want to know what happens without wondering if it is really working or not. Also, I like to be prompted and to confirm actions before running them.<\/p>\n\n\n\n

There is a command in AutoHotkey, MsgBox<\/code>, that displays a message box on screen.<\/p>\n\n\n\n

For instance, to show a message that confirms that I open my Calculator, I would write the following AutoHotkey script:<\/p>\n\n\n\n

Run Calculator
\nMsgBox, Calculator is open and running.
\nReturn<\/code><\/p>\n\n\n\n

This dialog box would show \u00ab Calculator is open and running. \u00bb with a OK button that I must click to close it.<\/p>\n\n\n\n

There are many ways to display an on-screen message with MsgBox by adding parameters, such as (in order):<\/p>\n\n\n\n