本帖最后由 pdp320921 于 2011-4-2 16:43 编辑 Local $foo = Run(@ComSpec & " /c " & 'for /f "tokens=2" %i in (''arp -a^|findstr :'') do @echo %i', @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
Local $line
Local $foo2 = Run(@ComSpec & " /c " & 'for /f "tokens=2" %i in (''arp -a^|findstr /n .^|findstr 4:'') do @echo %i', @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
Local $line2
ProcessWaitClose($foo)
$line = StdoutRead($foo)
ProcessWaitClose($foo2)
$line2 = StdoutRead($foo2)
$Title=WinGetTitle("[ACTIVE]")
ControlSend($Title, "", "[CLASSNN:"&ControlGetFocus($Title)&"]",$line,1 )
$Title=WinGetTitle("[ACTIVE]")
ControlSend($Title, "", "[CLASSNN:"&ControlGetFocus($Title)&"]",$line2 )
ControlSend($Title, "", "[CLASSNN:"&ControlGetFocus($Title)&"]",$line,1 )这句执行后可以输入IP地址,但同时会跳出2个错误对话框。
感觉像是ControlSend()中执行IP的输入后又输入了2次Enter键(或是点了2次OK按钮)~~ |