Emulate Keypad on Laptop
if you want to do that on Windows there is very useful scripting language AutoHotKey which can do a lot with scripting interface.
A perfect alternative to AutoHotKey is AutoKey. Very useful whether you want to remap keys or assign abbreviation(adr) and it will write your full address!!
AutoKey is a desktop automation utility for Linux and X11. It allows you to manage a collection of scripts and phrases, and assign abbreviations and hotkeys to these. This allows you to execute a script or insert text on demand in whatever program you are using.
Latest version is v0.90.
- Where to get this? It is in the ubuntu's repository!
Open software center > search for autokey
> install AutoKey(GTK)
- How to use this?
Open AutoKey.
Press Ctrl+N or from File>Create..>New Phrase. Rename with whatever you like.
Enter keys In right panel(remove text Enter phrase contents
) you want to get typed (in your case Shift + Left Arrow so will type <shift>+<left>
)when you hit some key. full info for Special Keys like shift,arrow, etc. are described here.
Then in bottom-right corner there is three Set
buttons to set for Abbreviation
or Hotkey
or Window Filter
or all of them.
Click Set
for Hotkey
. You will be prompted to give HotKeys. If you want to make it run with single key (in your case 1) Don't click on any other button than Press to Set
.
Click Press to Set
and hit a key you want to assign(in your case 1).
Click OK
.
Click Save
in bottom-right corner.
Now try by hitting 1 wherever you want.
You need to keep AutoKey running, or you can add in startup list for command autokey-gtk
Amazing tutorial is here :))
here is some Sample Scripts If you'd like to do something more.