Simple key press after a window notification?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sawyer
Posts: 4
Joined: 01 Mar 2018, 09:23

Simple key press after a window notification?

01 Mar 2018, 09:50

Hi

I just need a script which monitors for a windows notification like on my picture Sawyer#8061 and presses the key combination Ctrl + F1 each time it shows up.

Thanks for your help.

Image
Johana
Posts: 189
Joined: 02 May 2017, 02:34

Re: Simple key press after a window notification?

01 Mar 2018, 10:18

I am not a coder, I am not good with this, I have no idea if I can help you. So until someone more experienced does help you:

Code: Select all

loop
{
if WinExist("ahk_class Notepad") {
SendInput, ^F1
Sleep, 10000 ; Waits 10 seconds for the next time the loop runs (so that the windows shuts down?
}
}
Sawyer
Posts: 4
Joined: 01 Mar 2018, 09:23

Re: Simple key press after a window notification?

01 Mar 2018, 10:58

this does nothing other then huge cpu usage. :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bobstoner289, Google [Bot], peter_ahk, Spawnova and 359 guests