Difference between revisions of "HoldKey"
Jump to navigation
Jump to search
Expanded
imported>Geckbot m (Robot: Automated text replacement (-'''.*'''\r\n +)) |
imported>Odessa (Expanded) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = Fakes a key press indefinitely | |summary = Fakes a key press (specified by [[IsKeyPressed|int code]]) indefinitely, or until [[ReleaseKey]] is called. | ||
|name = HoldKey | |name = HoldKey | ||
|alias = hk | |alias = hk | ||
|returnType = | |returnType = none | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
Line 11: | Line 11: | ||
}} | }} | ||
}} | }} | ||
==Example== | |||
<pre> | |||
HoldKey 31 ; 'S' key | |||
; ... | |||
; later, after a delay | |||
ReleaseKey 31 | |||
</pre> | |||
==See Also== | |||
*[[ReleaseKey]] | |||
*[[TapKey]] | |||
*[[IsKeyPressed]] | |||
*[[GetControl]] | |||
*[[TapControl]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] |