Here is my code:
Code: Select all
#IfWinActive, ahk_class Credential Dialog Xaml Host
Send, {TAB 2}
Send, {Enter}
With Window Spy, I got this info for Windows Tilte, Class and Process of the pop up :
Code: Select all
Windows Security
ahk_class Credential Dialog Xaml Host
ahk_exe explorer.exe
I have also tried to replace "#IfWinActive" by "IfWinActive" and to use the normal If:
Code: Select all
#If WinActive("ahk_class Credential Dialog Xaml Host")
Send, {TAB 2}
Send, {Enter}
#If
[img]https://images.scdn8.secure.raxcdn.com/ ... 50e889.jpg
[/img]