• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 469
  • Last Modified:

Open a .PNG file from Windows Explorer using only keyboard shortcuts

Hello,

Suppose you have Windows Explorer open and you want to open a certain .png file in the application, Paint — but do it only with keyboard shortcuts (i.e. not using the mouse). Is that possible? If so, what are the steps?

Obviously a file can be opened in a specific application such as Paint by right clicking the file in Windows Explorer, selecting "Open with" and then selecting Paint. However, I'm trying to do it without clicking.

Suppose the file directory (file address), including the filename, is saved to the clipboard. After activating Windows Explorer, I know that the address bar can be selected with the keyboard shortcut: Shift+F10. Then the file directory can be pasted by the keyboard shortcut: Ctrl+v. However, what's the next step after that?

If I press the Enter key, then file is immediately opened in Windows Photo Viewer. However, pressing any other key (e.g. Tab) causes the the address bar to revert back to the directory that was present before pasting the new file directory.

Essentially, I'm looking for a way to select a particular file in Windows Explorer. Once that's done, the process can be completed by using the following shortcuts:
• Alt+h (selects "Open with")
• P (selects Paint)

Thanks a bunch.
0
Steve_Brady
Asked:
Steve_Brady
  • 5
  • 4
  • 3
  • +2
8 Solutions
 
mwochnickCommented:
once you open explorer - you can use the up and down arrows to select the folder in the left pane - i needed to use tab to activate the left pane (multipe tabs)

+ expands folders
tab key lets you select which pane is active  - it may takes several tabs to go from one pane to the other
one you are in the right pane then you can use the arrows to select the file

sorry missed the beginning of your question
after you paste the file name - hit Enter to open the folder
hit tab until the right pane is active
user arrow keys to select files
process as you indicated to open the file with paint
0
 
Darr247Commented:
How about
Windows Key + R
then type in
paint [spacebar]
and do
Ctrl + V
to paste in the path and filename of the .PNG file you want to open in paint, then hit
[Enter]
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
With the file selected, hit Shift-F10 to bring up the Right Click menu.  Then just use the arrow keys to navigate to the "Open with" section and select your desired application:
http://support.microsoft.com/kb/126449

    "SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object"
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Rob MinersCommented:
Navigate to your Folder, use the up/down arrows to highlight your file and then hit the right Menu button, press H, press P
0
 
Darr247Commented:
On my Win7 machines, after I press 'h' from the context menu, I have to use Enter or Right-Arrow to get the Open with menu to open... i.e. pressing h just selects Open with in the context menu, without actually dropping it down.  Same when I press p... it selects Paint in the 'Open with' submenu, but I still need to hit Enter to run that selection.

On laptops, the context menu key is rarely to the right of the spacebar like it is on standard keyboards, by the way... Laptop Context Menu Key
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Huh!  I have one of those little keys on my keyboard.  Never used it before...   =)

*Mine is two keys to the right of the space bar (on a laptop).
0
 
Steve_BradyAuthor Commented:
Thanks for the responses.
------------------------------------------------------------
>>Darr247
How about
Windows Key + R
then type in
paint [spacebar]
and do
Ctrl + V
to paste in the path and filename of the .PNG file you want to open in paint, then hit
[Enter]

------------------------------------------------------------

That's a very interesting solution and I think it will work great if I can figure out how to do it correctly. Following your instructions I did the following:

1) Pressed Win+r (opened the "Run" window)
2) in the Run window "Open:" box, typed the word "paint" followed by a space
3) Pressed Ctrl+v (entered file address from the clipboard)

The resulting entry appeared thus:

        paint C:\Libraries\My Documents\...sub-folders...\FileName.png

However, after entering the above, pressing the {Enter} key resulted in the following error:

Fig. 1Is there something I misinterpreted or did wrong?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
It should be "mspaint" ...
0
 
Rob MinersCommented:
Type in mspaint :)
0
 
Steve_BradyAuthor Commented:
------------------------------------------------------------
>>mwochnick
hit tab until the right pane is active
user arrow keys to select files
------------------------------------------------------------
>>Idle_Mind
With the file selected, hit Shift-F10...
------------------------------------------------------------
>>rrjmin0
...use the up/down arrows to highlight your file...

------------------------------------------------------------
I apologize but I can see that my initial question is not complete. My purpose for doing this is to create a macro using AHK (AutoHotkey) scripting language. Therefore, in addition to avoiding mouse clicks, I also need to avoid actions (even with the keyboard) which require that I press keys "until" something is selected. For example, I realize that a particular file can be selected by use of the arrow keys. However, that requires input from me (i.e. watching the screen until the correct file is selected). I guess one way to describe it is to say:

"Once I have a file address (directory), which includes the filename (and the .png extension) copied to the clipboard, how can I open that in the application Paint without looking at my screen?"
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Ah..gotcha.  I think Darr247's answer is a good one then.

*I don't use AutoHotkey, but according to this page:
http://www.autohotkey.com/docs/Tutorial.htm#Launch

...couldn't you just use the "Run" command with the "%clipboard%" variable?

    Run %clipboard%
0
 
Steve_BradyAuthor Commented:
------------------------------------------------------------
>>>Idle_Mind
...couldn't you just use the "Run" command with the "%clipboard%" variable?

------------------------------------------------------------
You are absolutely correct and yes, that is doable. But the problem I'm having now (which  I suspect is due to my lack of experience using the "Run"  command) is understanding how to correctly launch Paint via the "Run" command. Maybe if you could help me do the following then I will have my solution:

1) launch Paint  using the "Run" command
2) open a specific .png file in Paint using the "Run" command

 Thanks again to each of you for helping me work through this.  :))
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
See "Run / RunWait":
http://www.autohotkey.com/docs/commands/Run.htm

So try:

    Run, mspaint.exe, %clipboard%
0
 
Steve_BradyAuthor Commented:
Great responses. Thanks.
0
 
Rob MinersCommented:
Your welcome :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now