Difference between revisions of "HoldKey"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
(Automated import of articles)
 
imported>Odessa
(Expanded)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''HoldKey'''
{{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 = void
  |returnType = none
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
Line 12: 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)]]

Latest revision as of 05:51, 16 January 2015

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Fakes a key press (specified by int code) indefinitely, or until ReleaseKey is called.

Syntax

[help]
(none) HoldKey scanCode:int 

Or:

(none) hk scanCode:int

Example

HoldKey 31 ; 'S' key
; ...
; later, after a delay 
ReleaseKey 31

See Also