Simple key press after a window notification?

Get help with using AutoHotkey 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”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], hugin, mikeyww, Previz, TAC109 and 54 guests