AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is Run, abc.exe the same as outputvar := abx(some_parameter)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ProsperousOne



Joined: 19 Sep 2005
Posts: 115

PostPosted: Mon Mar 16, 2009 4:35 pm    Post subject: Is Run, abc.exe the same as outputvar := abx(some_parameter) Reply with quote

I'm trying to decod the following 2 lines from another ahk post ( http://www.autohotkey.com/forum/viewtopic.php?t=40254&highlight=postgresql )

Code:
sql := "SELECT game_id FROM game ORDER BY game_id DESC LIMIT 1;"
start_handcounter := psql(sql)


psql.exe is an executable, located in the same directory as the script (or added into the path variable).

Is this a new way to run an .exe file, similiar to the Run command, but as a function?

I've scoured the documentation, but can't find out why this would work.

Confuzed....

P1
Back to top
View user's profile Send private message
BoBoł
Guest





PostPosted: Mon Mar 16, 2009 5:09 pm    Post subject: Reply with quote

The first line is the SQL statement. The second line calls a function (using that statement as a parameter), and sets a variable which will keep the returned value.

The function seems to be part of the script which has been #Include(d). Looks like you have to ask the author of that script for that additional file (TBH, I doubt that he will handover it to a potential counterpart) Wink

Feel free to check the AHK-Help about functions!
Back to top
ProsperousOne



Joined: 19 Sep 2005
Posts: 115

PostPosted: Tue Mar 17, 2009 4:21 pm    Post subject: Reply with quote

DOOH! Missed the include Embarassed

thx Bobo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group