AutoHotkey Community

It is currently May 27th, 2012, 8:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 19th, 2012, 9:52 pm 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
I have a function set up & I would like to dynamically pass it a variable. In this case it is the location of a file. If I use the quotation marks as seen below, I get a file that is named %A_DDDD%.jpg. If I don't use the quotations, I see a build error & cannot run the AHK. Does anyone know how I might effectively pass this combination of variables?

Code:
packAwayFunction("C:\%A_DDDD%.jpg")

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2012, 9:59 pm 
Code:
packAwayFunction("C:\" A_DDDD ".jpg")


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2012, 10:08 pm 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
L1 wrote:
Code:
packAwayFunction("C:" A_DDDD ".jpg")

D'oh! I should have known better! Thank you!

_________________
Image


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, immunity, migz99, sjc1000, Yahoo [Bot] and 63 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