Multikeyboard Macros
Total Page:16
File Type:pdf, Size:1020Kb
Contents I Table of Contents Part I Introduction 1 1 Overview ........................................................................................................................................................ 2 2 Features ......................................................................................................................................................... 4 Part II Basics 5 1 Shortkeys ....................................................................................................................................................... 7 2 Macros ......................................................................................................................................................... 10 3 Activate Window ......................................................................................................................................... 14 4 Match and Click ........................................................................................................................................... 17 5 Quick Macro Recorder ................................................................................................................................ 19 6 Start Quick Macros ..................................................................................................................................... 21 7 Swap macro Set .......................................................................................................................................... 23 8 Settings ........................................................................................................................................................ 26 Part III Scripting 28 1 Oscar Script ................................................................................................................................................. 28 2 Script basics ................................................................................................................................................ 30 3 if-then-else-endif ......................................................................................................................................... 36 4 for-to-next .................................................................................................................................................... 37 5 Goto and Gosub .......................................................................................................................................... 40 6 Print, Println ................................................................................................................................................ 42 7 Conditional operator ................................................................................................................................... 44 8 Functions ..................................................................................................................................................... 46 9 Type Conversion ......................................................................................................................................... 49 10 String Operators ......................................................................................................................................... 51 11 Clipboard and Key functions ..................................................................................................................... 55 12 Slider Function ............................................................................................................................................ 58 13 Math & Constants ....................................................................................................................................... 64 14 Time and Date ............................................................................................................................................. 67 15 Global Variables, Declaration .................................................................................................................... 68 16 Array Arithmetics ........................................................................................................................................ 70 17 Array Conditional Operator ........................................................................................................................ 77 18 Array Functions ........................................................................................................................................... 79 19 References to Array .................................................................................................................................... 87 20 Using Arrays in user functions .................................................................................................................. 94 21 Multidimensional Hybrid Arrays ................................................................................................................ 97 22 Debugging, trace ....................................................................................................................................... 101 © 2020 Mediachance I II MultiKeyboard Macros 23 User Library Functions ............................................................................................................................. 104 24 Macroblocks .............................................................................................................................................. 106 25 Key Off Block ............................................................................................................................................ 108 26 Script Examples ........................................................................................................................................ 110 Clipboard example ............................................................................................................................................................... 110 Secondary Clipboard ............................................................................................................................................................ 112 FIFO Clipboard ...................................................................................................................................................................... 113 XML Tags Extract ................................................................................................................................................................. 114 BASE64 example .................................................................................................................................................................. 116 Mod key Example .................................................................................................................................................................. 118 Recursion .............................................................................................................................................................................. 119 Part IV Keyboards 120 Part V DIY solutions 123 Part VI Limitations 123 Part VII Virus warnings etc... 125 Index 0 © 2020 Mediachance Introduction 1 I Introduction You may have seen some shortcut or macro hardware keyboards. These are very useful when working with complex applications - for example drawing applications, 3D applications, video editing, audio or music application where your hand (or even both hands) are not always near the keyboard. Nothing is more distracting than to take your hands from the controller, mouse, music keyboard or stylus just to type CTRL+U which for most of us require two hands. Downside is that these macro keyboards are expensive, need custom drivers and are often tied to a certain macro application - which may suit you or not. Not to mention the elephant in the room - which happened far too many times for the author: most of such keyboards require special drivers and would become obsolete when the developer no longer decide to support new operating systems. Wouldn't be great if we can use any non expensive no-driver external numerical or standard keyboards as our own special macro board? While you can actually plug-in multiple HID keyboards into a single computer, it isn't very useful - both keyboards can only do the exact same thing. You can't make for example letter "P" do something else on the second keyboard because it will affect the first keyboard as well. This is what the MultiKeyboard Macro application is about: Making Windows understand multiple keyboards and define macro keys on any of them separately. But it also work with just a single keyboard - you can redefine any key, for example get some good usage of those extended numerical keys on the right that not many people use. © 2020 Mediachance 2 MultiKeyboard Macros 1.1 Overview You can plug in multiple USB (or wireless) keyboards to your computer and then define macros and shortkeys on every single of them separately. Something that is not normally possible, unless you get a special keyboard for that very purpose. But now you can use any! And more than one! For example: you can leave your normal keyboard for typing (always a good idea!), then plug in two additional Numerical Keyboards and redefine every single key on them to do something else - shortcuts, macros, type text or even simulate mouse click. For example one numerical keyboard can have shortcuts for photoshop,