解決Named Pipe TCP Proxy無法保存Session
阿新 • • 發佈:2018-05-25
Named Pipe TCP Prox AutoIt 使用Named Pipe TCP Proxy時,我經常遇到重啟後session丟失的情況,當session很多時,重建session太費時。於是我使用AutoIt寫了個腳本,完美解決此問題。腳本如下:
#include <Constants.au3> ;Start Named Pipe TCP Proxy Run("D:\program files (x86)\Named Pipe TCP Proxy\piped.exe") WinWaitActive("[CLASS:Afx:400000:0]") ;New Session For $iCount = 1 To 8 Send("!EN") WinWaitActive("[CLASS:#32770]") Send("\\.\pipe\vmx-r" & $iCount & "{TAB}960" & $iCount & "{ENTER}") Sleep(100) Next For $iCount = 1 To 8 Send("!EN") WinWaitActive("[CLASS:#32770]") Send("\\.\pipe\olive-r" & $iCount & "{TAB}800" & $iCount & "{ENTER}") Sleep(100) Next
運行如上AutoIt腳本後,首先啟動Named Pipe TCP Proxy,然後自動創建session,速度很快。如下是截圖:
解決Named Pipe TCP Proxy無法保存Session