AutoHotkey Community

It is currently May 26th, 2012, 8:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 4th, 2005, 2:05 am 
Offline

Joined: November 1st, 2004, 1:57 am
Posts: 20
I'm not sure if it should work, but I am unable to get an expression to work as a paremeter in the GUI command. I get an error referring to a variable missing the second %.

Example:
GUI, Show, x%SystemDialogX% y%SystemDialogBottom% w% SystemDialogW - 5 h84 NA, Choose Drive

Thanks,

Jason


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2005, 4:22 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Due to the need to preserve backward compatibility, only those parameters explicitly marked in the help file with "this can be an expression" can be an expression natively. However, by preceding any parameter with a "% " (percent sign and space), it becomes an expression.

I think you tried to do this, but it didn't work because the "% " must be the first thing in the parameter (it can't be in the middle of a parameter). Here is a revised line that might do what you want. Note that the leading spaces in things like " y" and " w" are required to build the string into something that can be parsed properly:

GUI, Show, % "x" . SystemDialogX . " y" . SystemDialogBottom " w" . SystemDialogW - 5 . " h84 NA", Choose Drive


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 10 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