AutoHotkey Community

It is currently May 26th, 2012, 3:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: file rename help
PostPosted: April 19th, 2008, 5:01 pm 
why this isbn=%clipboard%.jpg
gives when inside msgbox two rows. first one the contents of clipboard and
second one .jpg

it messes up my file rename function
also it works when file move uses something that is not variable.. ?

help appreciated, thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2008, 6:19 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
It doesn't make two rows for me.
Code:
clipboard = Hello
isbn = %clipboard%.jpg
MsgBox, %isbn%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2008, 11:47 pm 
maybe because i am coping something from excel and it has extra info?
how to solve thiis?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2008, 11:49 pm 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
Post the contents of your clipboard before running this script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 20th, 2008, 4:42 am 
Offline

Joined: February 8th, 2008, 9:17 pm
Posts: 31
Location: VA
try this
Code:
isbn=%clipboard%.jpg
StringReplace, isbn, isbn, `r`n, , All


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 20th, 2008, 10:10 am 
ok this

Code:
isbn=%clipboard%.jpg
StringReplace, isbn, isbn, `r`n, , All


did it

thanks!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Exabot [Bot], LazyMan, Yahoo [Bot] and 21 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