Article View: adobe.scripting.indesign
Article #16066Re: Send "Crtl+M" to indesing via VBscript.
From: Chris_Haas
Date: Tue, 14 Oct 2003 14:53
Date: Tue, 14 Oct 2003 14:53
12 lines
1364 bytes
1364 bytes
It's been a while since I've had to do this but this should work:
Dim myShell
Set myShell = WScript.CreateObject("WScript.Shell")
myShell.SendKeys "^m"
Set myShell = Nothing
Depending on where/how you run this you might have problems with the
WScript. Also, as everyone noted before, sending keystrokes to an
application might often fail. If a page takes a long time to open your
keystrokes might get "lost". You might want to pad some "pause" time into
your script, as a just in case. Just a warning. Good luck!
Technical Details
Message-ID:
<FF141EE7FE48974EBE65384F2B0BB399@in.webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccddb4a.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,25af0eb84313248a X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-14 08:08:02 PST From: Chris_Haas@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Send "Crtl+M" to indesing via VBscript. Message-ID: <FF141EE7FE48974EBE65384F2B0BB399@in.webx.la2eafNXanI> Date: Tue, 14 Oct 2003 07:53:54 -0700 References: <2ccddb4a.-1@webx.la2eafNXanI> Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit