{{htmlmetatags>metatag-robots=()
metatag-title=(PUT KEY | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for PUT KEY)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(PUT KEY | ugBASIC User Manual)
metatag-og:description=(Manual page for PUT KEY)
}}
====== ugBASIC User Manual ======
===== PUT KEY =====
===== SYNTAX =====
PUT KEY string
==== PURPOSE ====
The ''PUT KEY'' command allows you to simulate pressing a key on your computer
keyboard. Basically, you enter a string of characters and ugBASIC will use
it as if they were typed one after the other. This can be very useful for
automating certain actions, such as automatically entering your password
or emulating keystrokes.
This can be used to automatically enters a password into a game or application,
or to simulate an user interaction with the program itself, such as pressing a
button or selecting a menu. It can help to create sequences of commands that
are executed automatically, such as a macro.
The maximum length of the string you can enter depends on the keyboard buffer,
but normally is up to 10 characters.
==== EXAMPLE ====
PUT KEY "yes"
==== ABBREVIATION ====
PuKy
==== AVAILABLE ON ====
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON PUT KEY|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]