How can I output the "TESTING" in Notepad of the VNC window ?
Code: Select all
Gui +AlwaysOnTop
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x131 y91 h155 w300,Program
Gui, Font, S10 c000000 , Verdana
Gui, Add, Button, x10 y22 w100 h50,Button1
#Persistent
WinGet, a_ID, ID, A
SetTimer, aa, 500
return
aa:
WinGet, a1_ID, ID, A
If ( a_ID != a1_ID )
k_ID = %a1_ID%
Return
ButtonButton1:
if WinExist ("New Text Document - Notepad")
{
WinActivate, ahk_id %k_ID%
SendInput TESTING{ENTER}
}
Return
GuiClose:
ExitApp