#`::Gui, Show, Hide, MaxKeys #IfWinExist MaxKeys #`::Gui, Destroy `::F2 1::F3 2::F4 3::F9 4::F11 5::F12
Most graphics software doesn't allow you to set any hotkey to any function (F-keys are allowed, but numbers and letters aren't), so this script allows me to use the `12345 keys as zoom in/out/pan (similarly to the side buttons on a graphics tablet)
Win+` toggles whether the keys are remapped or not
1 - unzoom
2 - zoom
3 - hand
` - zoom to 100%
And assign the functions to the F-keys or whatever else the program allows.