Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

SendKeys "+" for opening PDF

$
0
0
Hi guys, I have an issue with opening pdf documents. I have an tool, with an button when the button is pressed an vbs script run. In the script i have the following for opening pdf docs:

Case "PDF"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "AcroRd32.exe " & cFileName, 1

But when you click on the button adobe will open and stay in the background. When I press shift and the press the button the pdf document will be openend with adobe.Is there a way to open the pdf document without pressing the Shift key first? I have tried to add the following line but it did not help:
WshShell.SendKeys "+"


Does anyone have a good tip for me?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>