Extract selected filename and path
-
WyleySam
- Posts: 20
- Joined: Wed Dec 28, 2011 2:06 pm
Extract selected filename and path
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.
-
therube
- Posts: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: Extract selected filename and path
I don't know about a variable?
But if IrfanView can read the clipboard ...?
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.
But if IrfanView can read the clipboard ...?
Code: Select all
Options | Keyboard
-> ResultList.CopyPath
-> ResultList.CopyFullPathAndName
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.
-
therube
- Posts: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: Extract selected filename and path
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.
If the particular file types are registered to IrfanView, all you need do is double-click the file.
-
WyleySam
- Posts: 20
- Joined: Wed Dec 28, 2011 2:06 pm
Re: Extract selected filename and path
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
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