If WinExists("[CLASS:Notepad2]") Then
Local $hWnd = WinWait("[CLASS:Notepad]", "",)
; Convert the handle to a string.
Local $sHWnd = String($hWnd)
WinActivate("[CLASS:Notepad]")
;WinWaitActive("[class:Notepad]")
Send("Hello")
EndIf
If WinExists("[CLASS:Notepad2]") Then
Local $hWnd = WinWait("[CLASS:Notepad]", "",)
; Convert the handle to a string.
Local $sHWnd = String($hWnd)
WinActivate("[CLASS:Notepad]")
;WinWaitActive("[class:Notepad]")
Send("Hello")
EndIf
该资源仅限VIP专享下载