Page 1 of 1

Opening pdf with another program other than default

Posted: Apr 29th, ’21, 18:35
by Ramakrishna
Hello,

I would like to open my pdf files with a different program other than my default pdf reader adobe. Currently, I am running a macro to do this but it is taking a little time to open the file. This is the code I am using currently now.

Code: Select all

Send, {LShift down}{F10}{LShift up}h{Down 3}{Enter}
Is there any shortcut to run, after selecting the file and say "alt + O" to open a pdf with a desired program like foxit (C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe)

Re: Opening pdf with another program other than default

Posted: Apr 30th, ’21, 15:05
by Marko
Try this (Type: Command)

Code: Select all

Send, ^c
Sleep 50
run, "C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" "%clipboard%"

Re: Opening pdf with another program other than default

Posted: May 2nd, ’21, 06:02
by Ramakrishna
Thanks a lot. Works like a charm!!