AutoHotkey Community

It is currently May 26th, 2012, 3:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 16th, 2009, 5:35 pm 
Offline

Joined: September 19th, 2005, 1:31 am
Posts: 115
I'm trying to decod the following 2 lines from another ahk post ( http://www.autohotkey.com/forum/viewtop ... 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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 16th, 2009, 6:09 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2009, 5:21 pm 
Offline

Joined: September 19th, 2005, 1:31 am
Posts: 115
DOOH! Missed the include :oops:

thx Bobo!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Yahoo [Bot] and 16 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