Talk:AutoHotkey: Inplace rename facilities: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 22: Line 22:
About your question. Consider this filename: '''Abc{Enter}.txt'''
About your question. Consider this filename: '''Abc{Enter}.txt'''


Convert it to lowercase. Send will send abc, then press enter, thus the filename will be cropped. I can think of even more dangerous scenarios with '''abc{Del}{Enter}.txt''' ;-)
Convert it to lowercase. Send will send abc, then press enter, thus the filename will be cropped. I can think of even more dangerous scenarios with '''abc{Enter}d{Del}.txt''' ;-)


Of course this would happen rarely, but we are perfectionists, arent we :-)
Of course this would happen rarely, but we are perfectionists, arent we :-)


SanskritFritz
SanskritFritz

Revision as of 07:24, 3 May 2006

Nice collection! I would save and restore the clipboard in every script. Do you want me to do it?

And one more important thing: use SendRaw instead of Send (the %variable% will be expanded)!

SanskritFritz


Hey Partner,

I think save and restore of the clipboard is an essential improvement, and you should adopt the scripts.

BTW what is the advantage of sendraw in this particular case?

Sheepdog {2. May 2006 17:05 (GMT)}


Hey, Partner

Ok, I will do it.

About your question. Consider this filename: Abc{Enter}.txt

Convert it to lowercase. Send will send abc, then press enter, thus the filename will be cropped. I can think of even more dangerous scenarios with abc{Enter}d{Del}.txt ;-)

Of course this would happen rarely, but we are perfectionists, arent we :-)

SanskritFritz