SKIP the window "press click to continue" using the VIRTUAL MACHINE [message #67743] |
Mon, 24 August 2009 07:09  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi people,
I think this is an old question but I didn't find anything to solve my
problem.
I'm trying to write a routine in IDL that I want to use like a script.
So, in scheduled tasks I want to execute this routine 1 time per day
USING the virtual machine of IDL.
The problem is that the virtual machine opens a window with the cover
of IDL with the message PRESS CLICK TO CONTINUE.
My question is if there is a way to skip this window. Anyone had this
problem before ?
Thanks in advance,
Bernat
|
|
|
|
Re: SKIP the window "press click to continue" using the VIRTUAL MACHINE [message #67910 is a reply to message #67743] |
Sun, 06 September 2009 16:26   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Aug 24, 11:09 am, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi people,
>
> I think this is an old question but I didn't find anything to solve my
> problem.
> I'm trying to write a routine in IDL that I want to use like a script.
> So, in scheduled tasks I want to execute this routine 1 time per day
> USING the virtual machine of IDL.
>
> The problem is that the virtual machine opens a window with the cover
> of IDL with the message PRESSCLICKTO CONTINUE.
>
> My question is if there is a way to skip this window. Anyone had this
> problem before ?
>
> Thanks in advance,
> Bernat
In Linux, I have done it using xautomation. More specifically, for
console applications I use Xvfb to create a virtual X server of the
size of the splash screen, then xte (from xautomation) to make a click
on the proper coordinates. The Xvfb server is made the size of the
splash screen so that the button always is at the same coordinates,
and it is not necessary to search for it with visgrep.
I put everything in a script to launch Xvfb, set the display variable,
launch the runtime application, call xte to click, then kill the Xvfb
server at the end. I copy the Xvfb and xte binaries into the
distribution directory, so that it does not depend on those being
installed where the program is used.
|
|
|
|
Re: SKIP the window "press click to continue" using the VIRTUAL MACHINE [message #93928 is a reply to message #93927] |
Wed, 30 November 2016 03:17  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
Hi,
I not sure that what you're trying to do is legal. The pop-up message disappears if you buy an IDL license. But this is none of my business :-)
That said, I think that what you're looking for is the spawn command in idl.
In your case, it would look something like this (not tested!):
spawn, myPath+'sendKeys.bat "Runtime APP" "{ENTER}"', res, errRes
You will find the result of the action in res and if an error occurred, it will pop up in errRes.
Enjoy.
Helder
On Monday, November 28, 2016 at 9:35:01 PM UTC+1, jenesai...@googlemail.com wrote:
> Hey,
>
> I had a similar problem by integrating an IDL-based stand-alone program in an automatic procedure in R.
>
> To confirm this disturbing window, I used the sendKeys.bat-file by npocmaka.
> This IDL window was named "Runtime App" in my case, so I could address this window by the following system command: (PATH\)sendKeys.bat "Runtime APP" "{ENTER}".
> Therefore, I created a new (.bat) file that, at first, opens the IDL-based program and then, confirmed the IDL window by sendKeys.bat.
>
> Unfortunately, I do not know if it is possible to call system commands in IDL. In R it is easly done by system(...).
>
> Hope that helps.
>
>
>
> Here the link to the above mentioned file and forum talk (11-28-2016):
> FILE:
> https://github.com/npocmaka/batch.scripts/blob/master/hybrid s/jscript/sendKeys.bat
>
> FORUM:
> http://stackoverflow.com/questions/30406120/command-prompt-a uto-confirm-message-pop-up-window
|
|
|