AutoHotkey Community

It is currently May 27th, 2012, 1:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: May 16th, 2010, 11:18 am 
Stdlib scripts (like lua.ahk) are intended to be placed in a function library folder. That way #include is not necessary.


Report this post
Top
  
Reply with quote  
PostPosted: May 28th, 2010, 12:49 am 
In lua_ahkfunctions.ahk I see:

Code:
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
Code:
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2011, 12:37 am 
Offline

Joined: January 9th, 2011, 3:16 pm
Posts: 1
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 ?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group