Page 1 of 1

Extract selected filename and path

Posted: Fri Feb 17, 2012 3:49 pm
by WyleySam
Is there a way to set a variable to the currently selected file name or path??? I would like to use a macro pass the program IrfanView the file name.

Re: Extract selected filename and path

Posted: Fri Feb 17, 2012 5:39 pm
by therube
I don't know about a variable?

But if IrfanView can read the clipboard ...?

Code: Select all

Options | Keyboard
-> ResultList.CopyPath
-> ResultList.CopyFullPathAndName
I have the former set to F5 & the latter to F6.
The path or filename gets copied to the Windows Clipboard.
Then I a shortcutkey key in my file manager (Altap Salamander), Shift+INS to jump to that specific path or file.

Re: Extract selected filename and path

Posted: Fri Feb 17, 2012 5:42 pm
by therube
You could always right+click, Send To -> IrfanView (assuming you've set IrfanView up as a "send to").

If the particular file types are registered to IrfanView, all you need do is double-click the file.

Re: Extract selected filename and path

Posted: Sat Feb 18, 2012 5:02 pm
by WyleySam
Thank you for your fast response.

I was able to use the macro program (AutoHotKeys: http://www.autohotkey.com/ ) to send the required keys, access the clipboard text, and run IrfanView