running MATLAB on a Linux machine, can use the function like " WScript.Shell" COM interface to send keystrokes to your application

i would like do many things to coupling between Matlab and antoher simulation
i am facing that i need to save as data first throught Paraview and got the output as input data to MATLAB
if there any function that can send keystrokes to my application?

 Respuesta aceptada

i tried running using java.awt.robot.event.keyevent.VK_enter
but in another simulation did not happen anything.
i am too struggle how to write CTRL+O to open file

2 comentarios

You need to VK_CONTROL VK_O just like you would type
Remember to send the corresponding release events for each key.
hi
do you know how to convert value
<FieldData>
<DataArray type="Int8" Name="EGS_VERSION" NumberOfTuples="21" format="binary" RangeMin="45" RangeMax="103"> AQAAAACAAAAVAAAAHQAAAA==eJwz0zPUM9A1NLE00E03T0s1MU9NTEoDADPZBX4=
that value have range between 45-103 but when i run read in matlab looks like encoding data. so i can extract that data.

Iniciar sesión para comentar.

Más respuestas (1)

Java Robot class.
In a more batch environment, there are approaches using pseudo terminal (pty) including possibilities such as using ksh coprocess facilities such as
print -p stuff to send

2 comentarios

hi i open paraview using this scripts
system('paraview');
robot = java.awt.Robot;
robot.keyPress(java.awt.event.KeyEvent.VK_CONTROL);
robot.keyPress(java.awt.event.KeyEvent.VK_O);
but i am wonder that CTRL+O it command work to openfile in matlab not in PAraview.
do you know how to give command to open new file work on PARAVIEW?
You have to send mouse moves to position over the para vision window, presuming you know where it is.
Remember to send the key release events like I mentioned before.

Iniciar sesión para comentar.

Categorías

Más información sobre View and Analyze Simulation Results en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Jul. de 2019

Comentada:

el 10 de Jul. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by