lua 通过alien调用 AutoHotkey.dll
作者:互联网
lua 调用 AutoHotkey.dll
require( "alien")
local ahkh = alien.load "H:/B_SoftWare/Python_Java/AutoHotkey+anaconda/ahk/ahk,ahkdll/ahkdll-v1-release-master (1)/ahkdll-v1-release-master/Win32a/AutoHotkey.dll"
ahkh.ahkReady:types{ret='int',abi="stdcall"}
ahkh.ahktextdll:types{ret='long','string' ,'string','string',abi="stdcall"}
ahkh.addScript:types{ret="long","string","uint",abi="stdcall"}
ahkh.ahkExec:types{ret='int','string' ,abi="stdcall"}
a=ahkh.ahktextdll("tmp:=123456 \n b::msgbox %tmp% \n a::msgbox 55" ,"","")
rst=ahkh.addScript("c::msgbox 6666 ",0)
ahkh.ahkassign:types{ret='int',abi="stdcall",'string','string'}
--~ ahkh.ahkassign( "aa","666")
ahkh.ahkgetvar:types{ret='string',abi="stdcall",'string','uint'}
require 'iuplua'
text = iup.multiline{expand = "YES",VALUE ='5656'}
dlg = iup.dialog{text; title="Simple Dialog",size="QUARTERxQUARTER"}
dlg:show()
iup.MainLoop()
--~ print( a)
--~ print(rst)
--~ ahkh.MessageBox:types {ret="long", 'long', 'string', 'string', 'long',abi="stdcall"}
--~ MessageBox(0 ," "," ",4)
--~ for i,v in pairs(alien) do
--~ print(v)
--~ end
标签:AutoHotkey,--,abi,ret,dll,alien,ahkh,stdcall,string 来源: https://www.cnblogs.com/chenyalin/p/15913304.html