Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

autoType and autoMount URL Parameters

Compare
Choose a tag to compare
@jeffpar jeffpar released this 26 Sep 01:20
· 1667 commits to master since this release

Any PCx86 machine on the PCjs website can now have keys injected into it, via the URL.

For example, this machine:

https://www.pcjs.org/devices/pcx86/machine/5150/cga/64kb/

can be launched with a custom autoType parameter, like so:

https://www.pcjs.org/devices/pcx86/machine/5150/cga/64kb/?autoType=$date\r$time\rbasic%20b:music\r

There is an automatic delay of 150ms between every injected key. If you need a longer delay between certain keys, insert one or more of \xF1 through \xFF into the key sequence to establish a new delay of 100 to 1500ms, respectively. Insert \xF0 to revert back to the default delay.

In addition to control characters like \r for Return and \t for Tab, autoType also supports two special tokens:

  • $date (replaced with the current DOS-compatible date)
  • $time (replaced with the current DOS-compatible time)

A machine can also be launched with different startup diskette(s), using a custom autoMount parameter:

https://www.pcjs.org/devices/pcx86/machine/5150/cga/64kb/?autoMount={A:{name:"PC-DOS%201.00"}}&autoType=$date\rbasic%20music\r

Diskettes can be specified by either their name or path attribute, as long as the specified value matches one of the entries in the PCjs IBM PC Disk Library.

UPDATE: The March 2018 Release changed the way autoType delays are specified. Use $1 through $9 instead of \xF1 through \xF9, and $0 to revert to the default delay.