[Home]AutoType Automata

HomePage | RecentChanges | Preferences | My Website home page

Showing revision 6

Using an Auto Type Automata

A simple Automata could be added to and Application to inject keystrokes, to a two port system.

A simple Play Script could be read by the Automata and inject keystrokes as if typed by the user or received from the remote end.

 < Hello How and I help?

 >  I would like to order a widget holder

 < what size would you like?

Each line would be directed to be injected at the interface.

 < interface is from the far end

 > interface is from the near end.

A method to start it and stop it would be needed.

Each character in the line above would be typed as if typed by a real person.

It can be used to soak test the Application and try out different ideas.

Using an Auto Type Automata

Code in my Webpage could be used.

http://www.dougrice.plus.com/dev/DigiSpark/text2.html

It uses a timer to run a time slice.

Real time is incremented in parallel and when it over flows a character in injected at the correct interface.

http://www.dougrice.plus.com/hp/Theory/cg6.htm shows the Catch Up Call Generator. This can be used for multiple sources all clocked from one timer.

Using cscript or wscript on Windows PC

It has been possible to use cscript to press keys but there is very little control.

once started, you need to wait for the script to end.

http://www.dougrice.plus.com/dev/DigiSpark/How_app.js.txt

 /*
  *
  *
  * How_app.js - Key Pressing script, based on one to automate the EUA
  *
  * Automating typing into the App using Windows shell scripts and javascript.* 
  *
  * https://msdn.microsoft.com/en-us/library/8c6yea83(v=vs.84).aspx
  * https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/8c6yea83(v=vs.84)
  *
  *   wscript How_app.js  
 /*

http://www.dougrice.plus.com/dev/DigiSpark/How_app_Tests.js.txt

Using JAVA robot

Java robot provides a way to drive the keyboard and mouse. It can also sample the screen.

It is not possible to ask where a window is on the screen.

http://www.dougrice.plus.com/dev/javaTries/euan.java.txt


HomePage | RecentChanges | Preferences | My Website home page
This page is read-only | View other revisions | View current revision
Edited February 11, 2022 7:45 am by 193.113.57.167
Search: