Difference between revisions of "IsKeyPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Cid88
imported>Scruggs
(no worky during messagebox)
Line 22: Line 22:
</pre>
</pre>
A longer list can be found [http://www.tronan.com/macromachine/scripthelp/VK.htm here]
A longer list can be found [http://www.tronan.com/macromachine/scripthelp/VK.htm here]
==Notes==
* This function doesn't return a value while a messagebox is being displayed, presumably because input is switched over to the messagebox.


[[Category: Oblivion Script Extender]]
[[Category: Oblivion Script Extender]]

Revision as of 20:51, 25 July 2006

A command for Oblivion Script Extender

Syntax:

IsKeyPressed key

Returns true if key is currently pressed down. Key values are stored in Windows header files.

Sample Key IDs

1   Left Mouse Button
32  spacebar
48  0
...
57  9
65  A
...
90  Z
160 left shift
161 right shift
162 left control
163 right control

A longer list can be found here

Notes

  • This function doesn't return a value while a messagebox is being displayed, presumably because input is switched over to the messagebox.