what is the difference between Key.CTRL and KeyModifier.CTRL

Asked by Chp

Please tell me I can't understand the difference between Key.CTRL and KeyModifier.CTRL ? What is the fundamental difference between them in use ?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

Key.CTRL is a character code.
KeyModifier.CTRL is a integer value.

[example code for understanding by Python:]
a = []
a.append(Key.CTRL)
a.append(KeyModifier.CTRL)
print a

Revision history for this message
Chp (chpnick) said :
#2

Prompt, where I can use different options. what made such a distinction on the character code and the number?

Revision history for this message
Best masuo (masuo-ohara) said :
#3
Revision history for this message
Chp (chpnick) said :
#4

Okay, but can I use the Key.CTRL when doing click() , addHotkey() and etc.?

Revision history for this message
Chp (chpnick) said :
#5

Thanks masuo, that solved my question.