/-----------------------------------------------------------\ / WHAT IS IT? \ /---------------------------------------------------------------\/ \| || The ClipboardControl library adds 2 new opcodes to control || the system clipboard from within a CLEO script. || || || With the ClipboardControl library, CLEO scripts will be || able to read and write data from the clipboard. This can || be very useful for running more interactive scripts. || |\ / \---------------------------------------------------------------/

/-----------------------------------------------------------\ / EXAMPLES \ /---------------------------------------------------------------\/ \| || Some modders may not see any immediate use in the library. || These unimaginative guys may check out the examples to get || their imaginations going. Or if you're a user you may just || want to use the example scripts. || || Examples can be found in the examples folder in the archive || and should also be installed in the CLEO directory. || || Sources are provided alongside the examples. However, the || examples are coded using v1 keywords from the GTAG v2 || Opcode Database. || || All examples will work simultaneously. || || * QuickCheat || If you find yourself struggling to memorise the random || sequence of letters required to activate a cheat, this mod || will come in very handy! || || Simply copy the cryptic cheat, for example, "HESOYAM" to || your clipboard by selecting/highlighting the text and || pressing Ctrl+C. And press Ctrl+V while playing in-game to || enter the cheat code. A help message will appear confirming || the pasted cheat string. || || You can now keep pressing Ctrl+V to keep entering the || cheat code. || || * QuickCommand || QuickCommand parses a single command line stored in the || clipboard and executes the appropriate code. || || For example, pasting (Ctrl+V) || "PutPlayerAt(-1753.6871, 885.638, 295.875)" will put the || player at the specified coordinates. This is not a complete || system and should only be treated as an example. || || Commands (paste these) || %g = float, %i = int, %s = string || - SetPlayerAngle(%g) || - SetPlayerArmour(%d) || - SetPlayerHealth(%d) || - PutPlayerAt(%g, %g, %g, %g) || || * Copy'n'Code || Copy'n'Code has several commands to output debug info. With || the ClipboardControl opcode, 0B21, you can copy that info. || This is useful when coding in SB and you want to quickly || insert a value from the game into the source. || || Commands (type these) || - GETCHARSTRUCT Get Player Ped Struct || - GETCARSTRUCT Get Player Car Struct || - GETPLAYERPOS Get Player Position || - GETPLAYERANGLE Get Player Angle || - GETPLAYERINTID Get Player Interior ID || - GETPLAYERINTNAME Get Player Interior Name || - GETCAMERAPOS Get Camera Position || - GETCAMERATAR Get Camera Target || - GETACTIVEINT Get Active Interior || |\ / \---------------------------------------------------------------/