Hi guys,
Is it possible for ahk to wait for a window and if it shows up, bring it to the front and then send a key into it?
I know the title starts with "VNC Authentication".
Thanks a lot in advance.
Wait for window to show
-
- Posts: 3
- Joined: 19 Aug 2020, 14:53
Re: Wait for window to show
Code: Select all
WinWait, VNC Authentication
WinActivate, VNC Authentication
Send, a ; or whatever you want to send
-
- Posts: 3
- Joined: 19 Aug 2020, 14:53
Re: Wait for window to show
Didnt work.
I also tried
and
None seemed to work.
I also tried
Code: Select all
SetTitleMatchMode, 2
WinWaitActive, VNC Authentication
Msgbox, Hello! did it work properly this time?
Code: Select all
SetTitleMatchMode, 2
While !WinExist("VNC Authentication")
{
sleep, 100
}
WinActivate, VNC Authentication
WinWaitActive, VNC Authentication
Msgbox, Hello! did it work properly this time?
Re: Wait for window to show
What does the Window Spy tool say the title of the window is? Try copying and pasting directly from there in case there are any hidden characters or something.
Who is online
Users browsing this forum: GroggyOtter and 120 guests