keyboard.send_keys("<alt>+<ctrl>+<np_left>\n")2017-09-14 01:42:18,078 DEBUG - iomediator - <ctrl> pressed
2017-09-14 01:42:18,079 DEBUG - iomediator - <alt> pressed
2017-09-14 01:42:18,276 DEBUG - service - Raw key: '<left>', modifiers: ['<alt>', '<ctrl>'], Key: <left>
2017-09-14 01:42:18,276 DEBUG - service - Window visible title: 'Terminal', Window class: 'gnome-terminal-server.Gnome-terminal'
2017-09-14 01:42:18,276 INFO - service - Matched hotkey phrase/script with prompt=False
2017-09-14 01:42:18,277 DEBUG - service - Script runner executing: Script('WIN: LEFT')
2017-09-14 01:42:18,277 DEBUG - service - Ignored locking error in handle_keypress
2017-09-14 01:42:18,277 DEBUG - iomediator - Send via event interface
2017-09-14 01:42:18,280 DEBUG - interface - Send modified key: modifiers: ['<alt>', '<ctrl>'] key: <np_left>
^[[1;7D2017-09-14 01:42:18,622 DEBUG - iomediator - <ctrl> released
2017-09-14 01:42:18,622 DEBUG - iomediator - <alt> released
> <mailto:autokey-users+unsub...@googlegroups.com>.
> <mailto:autokey-users+unsubscri...@googlegroups.com <javascript:>>.
> For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-users+unsubscribe@googlegroups.com <mailto:autokey-users+unsubscri...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-users+unsubscribe@googlegroups.com.
> <mailto:autokey-users+unsub...@googlegroups.com <javascript:>>.
> For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com <mailto:autokey-users+unsub...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
This can be very useful, because it tells you the keycodes for the keys you want to use, which in turn can later be directly xmodmapped to what you want to happen.
In your case, you want to emulate the numpad keys. If you don't have an external USB keyboard to determine those codes, here's what I found
WITH NUMLOCK OFF
Left to right, Bottom to top, including Enter, +, and - keys to the right of my numpad
KEY LABEL => KEYCODE => Xev / OS interpretation comment
0 => 90 => KP_Insert
. 91 KP_Delete
Enter 104 KP_Enter
1 87 KP_End
2 88 KP_Down
3 89 KP_Next
4 83 KP_Left
5 84 KP_Begin
6 85 KP_Right
+ 86 KP_Add
7 79 KP_Home
8 80 KP_Up
9 81 KP_Prior (NOTE this seems odd as my 9 key is labeled "page up" but it is sending 81 "KP_Prior")
(Same as with Numlock On)
Numlock 77 Num_Lock
/ 106 KP_Divide
* 63 KP_Multiply
- (minus) 82 KP_Subtract
WITH NUMLOCK ON
Left to right, Bottom to top, including Enter, +, and - keys to the right of my numpad
KEY LABEL => KEYCODE => Xev /OS interpretation comment
0 => 90 => KP_0
. 91 KP_Decimal
Enter 104 KP_Enter
1 87 KP_1
2 88 KP_2
3 89 KP_3
4 83 KP_4
5 84 KP_5
6 85 KP_6
+ 86 KP_Add
7 79 KP_7
8 80 KP_8
9 81 KP_9
(Same as with Numlock off)
Numlock 77 Num_Lock
/ 106 KP_Divide
* 63 KP_Multiply
- (minus) 82 KP_Subtract
Other keys technically not part of numpad,
but possibly not present on your keyboard:
KEY LABEL => KEYCODE => Xev / OS interpretation comment
Insert 118 Insert
Delete 119 Delete
Home 110 Home
End 115 End
PageUp 112 Prior
Page Down 117 Next
UpArrow 111 up
DownArrow 116 Down
LeftArrow 113 Left
RightArrow 114 Right
Once you have the the desired codes, you cand find out if they are being used xmodmap. This command lists the 8 modifiers and which keys (up to 4 per modifier) are assigned to each). These will be useful in AutoKey later.
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 I SO_Level3_Shift (0x5c), Mode_switch (0xcb)
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-users+unsubscribe@googlegroups.com <mailto:autokey-users+unsubscri...@googlegroups.com>.
<mailto:autokey-users%2Bunsubscr...@googlegroups.com
<mailto:autokey-users%252Bunsubsc...@googlegroups.com>>
<mailto:autokey-users+unsubscri...@googlegroups.com
<mailto:autokey-users%2Bunsubscr...@googlegroups.com>
<mailto:autokey-users%2Bunsubscr...@googlegroups.com
<mailto:autokey-users%252Bunsubsc...@googlegroups.com>>>.