This video tutorial shows, how to use the InputBox in AutoHotkey, which lets you get user input. All the properties of the InputBox will be explained as will exception handling be.
You could also watch:
🔵 The Beginner's Guide to AutoHotkey - [ Ссылка ]
🔵 Install and Run your First AHK Script - [ Ссылка ]
0:07 Creating our ahk script in action
A Hotkey driven script.
0:26 InputBox
We use the user interface InputBox to retrieve input from the user. The input from the user is stored in a variable, which we print out.
1:32 Title
2:09 Text (prompt)
We can prompt the user for an action with some text to the InputBox.
2:50 Height and Width
Expand or shrink the InputBox window.
3:36 Position
The position of the InputBox on the desktop with coordinates.
4:38 Locale
If we want to have the 'Ok' and 'Cancel' in the language of the user, we can specify the locale.
5:17 Timeout
If the user havn't added some input to the InputBox in x seconds, then the ahk will jump to the next step in the script.
6:01 Exception Handling
Introducing ErrorLevel, which will tell us if the user either clicked cancel or timed out. We are also looking at the advanced 'If', that is a 'Switch'.
8:54 Hide
Mask the user input, e.g. password use.
9:25 Default
Define a default value of our InputBox.
Connect with me:
🔔 Subscribe - [ Ссылка ]
💼 LinkedIn - [ Ссылка ]
👥 Facebook - [ Ссылка ]
💌 Email Newsletter - [ Ссылка ]
#autohotkey #ahk #scripting
Ещё видео!