add edge addon publish scripts
This commit is contained in:
1 parent
5c3f15c70e
commit
5dba81e4a4
27 files changed
+889
-792
No files matched your search
+19
-19
@@ -1,19 +1,19 @@
|
||||
import win32pipe
|
||||
import win32file
|
||||
|
||||
# 连接到命名管道
|
||||
pipe_name = r'\\.\pipe\botext'
|
||||
pipe = win32file.CreateFile(
|
||||
pipe_name,
|
||||
win32file.GENERIC_READ | win32file.GENERIC_WRITE,
|
||||
0,
|
||||
None,
|
||||
win32file.OPEN_EXISTING,
|
||||
0,
|
||||
None
|
||||
)
|
||||
|
||||
win32file.WriteFile(pipe, b'close1')
|
||||
|
||||
# 关闭管道
|
||||
win32file.CloseHandle(pipe)
|
||||
import win32pipe
|
||||
import win32file
|
||||
|
||||
# 连接到命名管道
|
||||
pipe_name = r'\\.\pipe\botext'
|
||||
pipe = win32file.CreateFile(
|
||||
pipe_name,
|
||||
win32file.GENERIC_READ | win32file.GENERIC_WRITE,
|
||||
0,
|
||||
None,
|
||||
win32file.OPEN_EXISTING,
|
||||
0,
|
||||
None
|
||||
)
|
||||
|
||||
win32file.WriteFile(pipe, b'close1')
|
||||
|
||||
# 关闭管道
|
||||
win32file.CloseHandle(pipe)
|
||||
Reference in new issue
Block a user