无法在python中使用autoit打开记事本
我想打开记事本执行一些任务,但它没有打开。 我试过这个密码无法在python中使用autoit打开记事本,python,autoit,Python,Autoit,我想打开记事本执行一些任务,但它没有打开。 我试过这个密码 import win32com.client autoit = win32com.client.Dispatch("AutoItX3.Control") autoit.Run("notepad.exe") 记事本无法打开,但这些可以正常工作 autoit.Run("calc.exe") autoit.Run("explorer.exe") autoit.Run("regedit") 试着做一些类似的事情: 那么,试试看: impor
import win32com.client
autoit = win32com.client.Dispatch("AutoItX3.Control")
autoit.Run("notepad.exe")
记事本无法打开,但这些可以正常工作
autoit.Run("calc.exe")
autoit.Run("explorer.exe")
autoit.Run("regedit")
试着做一些类似的事情:
那么,试试看:
import win32com.client
autoit = win32com.client.Dispatch("AutoItX3.Control")
#Run(program, workingdir, show_flag)
autoit.Run("notepad.exe",'',5)
您可以找到的函数运行参数说明。参数show_flag的整数值您可以找到5个对应的SW_show尝试执行以下操作:
那么,试试看:
import win32com.client
autoit = win32com.client.Dispatch("AutoItX3.Control")
#Run(program, workingdir, show_flag)
autoit.Run("notepad.exe",'',5)
您可以找到的函数运行参数说明。参数show_标志的整数值您可以找到5个对应的SW_show谢谢,这个autoit.Runnotepad.exe,5个帮助,我已经注册了AutoItX3.dll和AutoItX3_x64.dllthanks,这个autoit.Runnotepad.exe,5个帮助,我已经注册了AutoItX3.dll和AutoItX3_x64.dll