AutoHotkey Community

It is currently May 24th, 2012, 8:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 18th, 2007, 10:06 am 
Offline

Joined: March 18th, 2007, 10:00 am
Posts: 11
Hi,
I receive a folder path in a hotkey script from a filemanager.
I check the value at the first line:
MsgBox, %1%

The value is D:\util\xint as expected. For some reason Hotkey doesn't like that string, in the script's second line:
MyVar := %1%

Error ! "The following variable contains illegar characters: D:\util\sink". WTF ???
Same result if I try to use the value in functions such as SubStr or StringLeft.

Any suggestions please ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2007, 10:17 am 
Offline

Joined: March 18th, 2007, 10:00 am
Posts: 11
Sorry, solved !

Changing MyVar:= %1% to MyVar = %1% does the trick. Seems like I'm very confused with hotkey sintax for vars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2007, 10:25 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Introduction to Variables might help there.

_________________
GitHubScriptsIronAHK Contact by email not private message.


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: dra, engunneer, Exabot [Bot], Google Feedfetcher, Ohnitiel, patgenn123 and 58 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