Update cookies preferences
Promotic

Object PmaKey (Key)

Description:
The object triggers the onKeyDown and onKeyUp events of this object after pressing the key or their combinations.
This object is obsolete (but functional) and it is better to use the PmaRoot.onKeyPress event.

No other Pma objects can be created in this object.
This object can be created in objects: PmaRoot, PmaFolder, PmaPrototype. Multiple objects of this type can be created in such objects.

It is recommended to enter only the more system key combinations like for example Ctrl+Alt+K or F2 key, etc. But some of the keys can already be disabled by the Windows OS and they will not be functional here.
If other keystrokes have to be caught in general as, for example, Esc, etc., then it can be done in the PmaRoot.onKeyPress event.
This object inherits properties, methods and events of the PmaObject object.
Properties and methods of this object:
Emulate()Emulation of the keystroke
EnabledEnable/disable the keystroke function
Properties and methods inherited from the PmaObject object:
AddEvent()Registers a function into the specified event
GetOwnedByIndex()Returns the subobject defined by its index
GetOwnedByName()Returns reference to the subobject defined by its name
GetOwnedByType()Returns an array of references to the subobjects
GetOwnedNum()Returns number of subobjects in the object
GetPar()Reading the value of the Pma object parameter (or its parents)
GetPathName()Object name with the path to this object
GetPermission()Returns permission of corresponding operation from object
MethodsAccess to designer methods of this object
NameObject name (without the path)
ParentReturns reference to the parent Pma object
Pm()Returns reference to the Pma object or to its implementation subobject
RemoveEvent()Unregisters the function in the specified event
RootReturns reference to the root application object PmaRoot
Events of this object:
onKeyDownIs triggered after pressing the key
onKeyUpIs triggered after releasing the key
Events inherited from the PmaObject object:
onStartIs triggered for each object in runtime only once at the beginning
onStopIs triggered for each Pma object in runtime only once at the stop of the application
Configuration tabs:
ObjectGeneral information about the object
EventsDefinition of object events algorithms
KeyDefinition of the shortcut key or their combination
See also:

History:
Pm9.00.00: Object name changed: PmKey -> PmaKey
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.