代码不会引发错误,但不会在python或ahk中启动。错误在哪里?

时间:2019-03-21 02:38:47

标签: python autohotkey

我是python中使用autohotkey命令进行编码的新手。我已经成功编写了不会引发错误的代码,但是该代码不会通过python终端或自动热键启动。代码如下:

ctypes = import ctypes

ctypes1 = from ctypes import *

ahk = AHk(executable_path='C:\Users\\bryan\\Downloads\\ahkdll-v2-release-master\\x64w_MT\\AutoHotkey.dll')
dllpath =('C:\Users\\bryan\\Downloads\\ahkdll-v2-release-master\\x64w_MT\\AutoHotkey.dll')
DllCall("LoadLibrary","Str","C:\Users\\bryan\\Downloads\\ahkdll-v2-release-master\\x64w_MT\\AutoHotkey.dll")
DllCall("C:\Users\\bryan\\Downloads\\ahkdll-v2-release-master\\x64w_MT\\AutoHotkey.dll","Str",A_ScriptDir "\MyDllScript.ahk","Str","","CDecl")
While DllCall("C:\Users\\bryan\\Downloads\\ahkdll-v2-release-master\\x64w_MT\\AutoHotkey.dll" "\ahkReady")

-------> dll:= AhkThread(“ C:\ Users \ bryan \ Downloads \ scratch_9.ahk”“ \ MyDllScript.ahk”,“”,true)       睡眠100;等待线程退出

parser = ahk

ahk.key_press(ahk.key_press("^+c", print, ahk.key_press("f + enter")))

ahk.key_press(ahk.key_press("^+z", print, ahk.key_press("u + enter")))

ahk.key_press(ahk.key_press("^+x", print, ahk.key_press("m + enter")))

我知道这通常是一个小错误,但是我是这种代码的新手,所以我看不到它。我究竟做错了什么?谢谢你的帮助。

0 个答案:

没有答案