Hi,
when I use {end} to send the end key, the "END" key from the NUMPAD keys is used. The application that I want to control however makes a difference whether the Numpad Key END/NUMPAD 1 is pressed or the "END" key under the "HOME" key.
How can I tell Eventghost to specifically sende the END KEy under the HOME Key and not the END key from the Numpad?
I hope I could make myself clear.
Thanks!
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Distinguish between Numpad and "HOME" "END" Button
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Distinguish between Numpad and "HOME" "END" Button
I am making an assumption that you are using the FindWindow action.
create a new macro with a python script as an action for it..
copy this command
paste it into the python script
then place your Find Window action before the Python Script action in the macro.
and right click the macro icon. and then click on execute..(make sure you have your application running beforehand.)
let me know if it works
create a new macro with a python script as an action for it..
copy this command
Code: Select all
eg.plugins.Window.SendKeys('{OemE9}')
then place your Find Window action before the Python Script action in the macro.
and right click the macro icon. and then click on execute..(make sure you have your application running beforehand.)
let me know if it works
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Distinguish between Numpad and "HOME" "END" Button
and just in case you wanted to know.. here are all of the keys supported by the SendKeys action.. You may have to send some of them as a python script as shown above.
the Code is the decimal representation of the key.
the Code is the decimal representation of the key.
Code: Select all
Key: U00 Code: 0
Key: LButton Code: 1
Key: RButton Code: 2
Key: Cancel Code: 3
Key: MButton Code: 4
Key: XButton1 Code: 5
Key: XButton2 Code: 6
Key: U07 Code: 7
Key: Backspace Code: 8
Key: Tabulator Code: 9
Key: AltGr Code: 10
Key: U0B Code: 11
Key: Clear Code: 12
Key: Return Code: 13
Key: U0E Code: 14
Key: U0F Code: 15
Key: Shift Code: 16
Key: Ctrl Code: 17
Key: Alt Code: 18
Key: Pause Code: 19
Key: CapsLock Code: 20
Key: Kana Code: 21
Key: U16 Code: 22
Key: Junja Code: 23
Key: Final Code: 24
Key: Hanja Code: 25
Key: U1A Code: 26
Key: Escape Code: 27
Key: Convert Code: 28
Key: NonConvert Code: 29
Key: Accept Code: 30
Key: ModeChange Code: 31
Key: Space Code: 32
Key: PageUp Code: 33
Key: PageDown Code: 34
Key: End Code: 35
Key: Home Code: 36
Key: Left Code: 37
Key: Up Code: 38
Key: Right Code: 39
Key: Down Code: 40
Key: Select Code: 41
Key: Print Code: 42
Key: Execute Code: 43
Key: PrintScreen Code: 44
Key: Insert Code: 45
Key: Delete Code: 46
Key: Help Code: 47
Key: 0 Code: 48
Key: 1 Code: 49
Key: 2 Code: 50
Key: 3 Code: 51
Key: 4 Code: 52
Key: 5 Code: 53
Key: 6 Code: 54
Key: 7 Code: 55
Key: 8 Code: 56
Key: 9 Code: 57
Key: U3A Code: 58
Key: U3B Code: 59
Key: U3C Code: 60
Key: U3D Code: 61
Key: U3E Code: 62
Key: U3F Code: 63
Key: U40 Code: 64
Key: A Code: 65
Key: B Code: 66
Key: C Code: 67
Key: D Code: 68
Key: E Code: 69
Key: F Code: 70
Key: G Code: 71
Key: H Code: 72
Key: I Code: 73
Key: J Code: 74
Key: K Code: 75
Key: L Code: 76
Key: M Code: 77
Key: N Code: 78
Key: O Code: 79
Key: P Code: 80
Key: Q Code: 81
Key: R Code: 82
Key: S Code: 83
Key: T Code: 84
Key: U Code: 85
Key: V Code: 86
Key: W Code: 87
Key: X Code: 88
Key: Y Code: 89
Key: Z Code: 90
Key: LWin Code: 91
Key: RWin Code: 92
Key: Apps Code: 93
Key: U5E Code: 94
Key: Sleep Code: 95
Key: Numpad0 Code: 96
Key: Numpad1 Code: 97
Key: Numpad2 Code: 98
Key: Numpad3 Code: 99
Key: Numpad4 Code: 100
Key: Numpad5 Code: 101
Key: Numpad6 Code: 102
Key: Numpad7 Code: 103
Key: Numpad8 Code: 104
Key: Numpad9 Code: 105
Key: Multiply Code: 106
Key: Add Code: 107
Key: Separator Code: 108
Key: Subtract Code: 109
Key: Decimal Code: 110
Key: Divide Code: 111
Key: F1 Code: 112
Key: F2 Code: 113
Key: F3 Code: 114
Key: F4 Code: 115
Key: F5 Code: 116
Key: F6 Code: 117
Key: F7 Code: 118
Key: F8 Code: 119
Key: F9 Code: 120
Key: F10 Code: 121
Key: F11 Code: 122
Key: F12 Code: 123
Key: F13 Code: 124
Key: F14 Code: 125
Key: F15 Code: 126
Key: F16 Code: 127
Key: F17 Code: 128
Key: F18 Code: 129
Key: F19 Code: 130
Key: F20 Code: 131
Key: F21 Code: 132
Key: F22 Code: 133
Key: F23 Code: 134
Key: F24 Code: 135
Key: U88 Code: 136
Key: U89 Code: 137
Key: U8A Code: 138
Key: U8B Code: 139
Key: U8C Code: 140
Key: U8D Code: 141
Key: U8E Code: 142
Key: U8F Code: 143
Key: NumLock Code: 144
Key: ScrollLock Code: 145
Key: Oem92 Code: 146
Key: Oem93 Code: 147
Key: Oem94 Code: 148
Key: Oem95 Code: 149
Key: Oem96 Code: 150
Key: U97 Code: 151
Key: U98 Code: 152
Key: U99 Code: 153
Key: U9A Code: 154
Key: U9B Code: 155
Key: U9C Code: 156
Key: U9D Code: 157
Key: U9E Code: 158
Key: U9F Code: 159
Key: LShift Code: 160
Key: RShift Code: 161
Key: LCtrl Code: 162
Key: RCtrl Code: 163
Key: LAlt Code: 164
Key: RAlt Code: 165
Key: BrowserBack Code: 166
Key: BrowserForward Code: 167
Key: BrowserRefresh Code: 168
Key: BrowserStop Code: 169
Key: BrowserSearch Code: 170
Key: BrowserFavorites Code: 171
Key: BrowserHome Code: 172
Key: VolumeMute Code: 173
Key: VolumeDown Code: 174
Key: VolumeUp Code: 175
Key: MediaNextTrack Code: 176
Key: MediaPrevTrack Code: 177
Key: MediaStop Code: 178
Key: MediaPlayPause Code: 179
Key: LaunchMail Code: 180
Key: LaunchMediaSelect Code: 181
Key: LaunchApp1 Code: 182
Key: LaunchApp2 Code: 183
Key: UB8 Code: 184
Key: UB9 Code: 185
Key: Oem1 Code: 186
Key: OemPlus Code: 187
Key: OemComma Code: 188
Key: OemMinus Code: 189
Key: OemPeriod Code: 190
Key: Oem2 Code: 191
Key: Oem3 Code: 192
Key: UC1 Code: 193
Key: UC2 Code: 194
Key: UC3 Code: 195
Key: UC4 Code: 196
Key: UC5 Code: 197
Key: UC6 Code: 198
Key: UC7 Code: 199
Key: UC8 Code: 200
Key: UC9 Code: 201
Key: UCA Code: 202
Key: UCB Code: 203
Key: UCC Code: 204
Key: UCD Code: 205
Key: UCE Code: 206
Key: UCF Code: 207
Key: UD0 Code: 208
Key: UD1 Code: 209
Key: UD2 Code: 210
Key: UD3 Code: 211
Key: UD4 Code: 212
Key: UD5 Code: 213
Key: UD6 Code: 214
Key: UD7 Code: 215
Key: UD8 Code: 216
Key: UD9 Code: 217
Key: UDA Code: 218
Key: Oem4 Code: 219
Key: Oem5 Code: 220
Key: Oem6 Code: 221
Key: Oem7 Code: 222
Key: Oem8 Code: 223
Key: UE0 Code: 224
Key: OemE1 Code: 225
Key: Oem102 Code: 226
Key: OemE3 Code: 227
Key: OemE4 Code: 228
Key: ProcessKey Code: 229
Key: OemE6 Code: 230
Key: Packet Code: 231
Key: UE8 Code: 232
Key: OemE9 Code: 233
Key: OemEA Code: 234
Key: OemEB Code: 235
Key: OemEC Code: 236
Key: OemED Code: 237
Key: OemEE Code: 238
Key: OemEF Code: 239
Key: OemF0 Code: 240
Key: OemF1 Code: 241
Key: OemF2 Code: 242
Key: OemF3 Code: 243
Key: OemF4 Code: 244
Key: OemF5 Code: 245
Key: Attn Code: 246
Key: CrSel Code: 247
Key: ExSel Code: 248
Key: EraseEof Code: 249
Key: Play Code: 250
Key: Zoom Code: 251
Key: Noname Code: 252
Key: PA1 Code: 253
Key: OemClear Code: 254
Key: UFF Code: 255
Key: INS Code: 301
Key: DEL Code: 302
Key: WIN Code: 347
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Distinguish between Numpad and "HOME" "END" Button
I have been doing some digging. and i found this nifty website....
https://www.cambiaresearch.com/articles ... -key-codes
just click on the text entry box.. and press the key on your keyboard.. and it will tell you the keycode.. then you can use the code to map out the proper name to send using the list from the previous post
https://www.cambiaresearch.com/articles ... -key-codes
just click on the text entry box.. and press the key on your keyboard.. and it will tell you the keycode.. then you can use the code to map out the proper name to send using the list from the previous post
