is this right for ahk Send, !{1}
- User
is this right for ahk
Send, !{1} - Assistant
Yes, the AutoHotkey (AHK) script snippet
Send, !{1}is correct, and it performs a specific action. In AHK, theSendcommand is used to simulate key presses or send keystrokes to the active window. The symbol!is a special character that AHK uses to represent the "Alt" key.Therefore, the command
Send, !{1}will simulate pressing "Alt" + "1". If you want to send different keys or use other modifier keys, you can replace or add to the characters within theSendcommand as follows:^represents the "Control" key.+represents the "Shift" key.#represents the "Windows" key.
If you need to modify or add more functionality to your script or need a different key combination, feel free to ask!
- User
its a timer to run every 60 minutes it sends a key, then waits 10 minutes, send another, waait 10 min, send another, then basically after 30 min right? its time to send the first again and so on
SetTimer, AutoFood, 6000000
AutoFood: If WinActive("ahk_class Qt5158QWindowOwnDCIcon") { Send, {7}
Sleep 100000 Send, {8} Sleep 100000 Send, {9} Sleep 100000 } returnits right?
- Assistant
The logic of your script seems to aim at creating a repeating sequence of key presses every hour with specific actions at set intervals. However, there seems to be some confusion or typo errors in the numbers you've used, especially around the timing. Let me help clarify and correct it for you:
Setting the Timer
- SetTimer: This should trigger every 60 minutes, not
6000000milliseconds (which is about 100 minutes). - Sleep Times: Each key (
{7},{8}, ) is sent every 10 minutes. In milliseconds, this is .
- SetTimer: This should trigger every 60 minutes, not