run & winexist 問題 請大家指教 Topic is solved

遇到了问题?请先进行搜索(中文和英文),然后在此提问
adrian_9832

run & winexist 問題 請大家指教  Topic is solved

26 Sep 2018, 20:41

以下是小弟的 CODE 請問如何才可以生效?

Run, Notepad.exe

IfWinExist, 未命名 - 記事本
{
WinActivate
WinMaximize
Send, Some text.{Enter}
return
}

return
garry
Posts: 1509
Joined: 22 Dec 2013, 12:50

Re: run & winexist 問題 請大家指教

27 Sep 2018, 10:38

Code: Select all

#warn
setworkingdir,%a_scriptdir%
Settitlematchmode,2
SetKeyDelay,20,20
sc=ahk_exe notepad.exe
IfWinNotExist,%sc%
 Run,notepad,,,
IfWinNotActive ,%sc%,,WinActivate,%sc%
WinWaitActive,%sc%
Sleep 400
ControlSend ,,Some text`nNext line`n, %sc%
return


Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 3 guests