Stdlib scripts (like lua.ahk) are intended to be placed in a function library folder. That way #include is not necessary.

AHK + LUA Interop (stdlib), proof of concept
Started by
Thrawn
, May 12 2009 06:33 PM
17 replies to this topic
#16
-
Posted 16 May 2010 - 10:18 AM

In lua_ahkfunctions.ahk I see:
I am confused why there are 5 arguments for the former and 4 for the latter in lua_ahkfunctions.ahk. Any help with this?
EnvSet(L) { arg1 := lua_tostring(L, 1) arg2 := lua_tostring(L, 2) arg3 := lua_tostring(L, 3) arg4 := lua_tostring(L, 4) arg5 := lua_tostring(L, 5) EnvSet, %arg1%, %arg2%, %arg3%, %arg4%, %arg5% return 0 }and
Pause(L) { arg1 := lua_tostring(L, 1) arg2 := lua_tostring(L, 2) arg3 := lua_tostring(L, 3) arg4 := lua_tostring(L, 4) Pause, %arg1%, %arg2%, %arg3%, %arg4% return 0 }In the AHK docs, I see 2 arguments for EnvSet and 2 arguments for Pause.
I am confused why there are 5 arguments for the former and 4 for the latter in lua_ahkfunctions.ahk. Any help with this?
#17
-
Posted 27 May 2010 - 11:49 PM

sorry for my bad english,
I just want to play mouse clicks with ahk script and calling this script from lua.
could you show me lua code ?
I just want to play mouse clicks with ahk script and calling this script from lua.
could you show me lua code ?
#18
-
Posted 28 January 2011 - 11:37 PM
