Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在python中使用autoit打开记事本_Python_Autoit - Fatal编程技术网

无法在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