Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Deji

[CLEO4|PLUG] ClipboardControl Library

Recommended Posts

Deji

Download

 

Example 1: QuickCheat

 

 

 

 

 

+-------------------------------------------------------------------------------------------+|      _____ _ _       _                         _    _____             _             _     ||     / ____| (_)     | |                       | |  / ____|           | |           | |    ||    | |    | |_ _ __ | |__   ___   __ _ _ __ __| | | |      ___  _ __ | |_ _ __ ___ | |    ||    | |    | | | '_ \| '_ \ / _ \ / _` | '__/ _` | | |     / _ \| '_ \| __| '__/ _ \| |    ||    | |____| | | |_) | |_) | (_) | (_| | | | (_| | | |____| (_) | | | | |_| | | (_) | |    ||     \_____|_|_| .__/|_.__/ \___/ \__,_|_|  \__,_|  \_____|\___/|_| |_|\__|_|  \___/|_|    |+---------------| |-------------------------------------------------------------------------+               |_|                                                                                               /----------------\                      /     CONTENTS     \                     /--------------------\                    /                      \                    |                      |                    |   * WHAT IS IT?      |                    |   * HOW TO INSTALL   |                    |   * OPCODES          |                    |   * EXAMPLES         |                    \                      /                     \--------------------/  /-----------------------------------------------------------\ /                         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.          ||                                                                 |\                                                                 /\---------------------------------------------------------------/  /-----------------------------------------------------------\ /                        HOW TO INSTALL                       \/---------------------------------------------------------------\/                                                                 \|                                                                 ||   Extract the archive to your GTASA Installation Directory      ||   as is.                                                        ||                                                                 ||                                                                 ||   After successful installation, your directory should look     ||   like this:                                                    ||     GTA San Andreas                                             ||       |- CLEO                                                   ||         |- ClipboardControl.cleo                                ||                                                                 |\                                                                 /\---------------------------------------------------------------/  /-----------------------------------------------------------\ /                           OPCODES                           \/---------------------------------------------------------------\/                                                                 \|                                                                 ||   * 0B20: read_clipboard_data_to [email protected] size 27                     ||   Writes the specified number of bytes of text from the         ||   clipboard to the output buffer.                               ||                                                                 ||   Params                                                        ||    1. Output buffer (pointer to memory)                         ||    2. Number of bytes of text to be written                     ||                                                                 ||   More: http://msdn.microsoft.com/en-us/library/aa921993.aspx   ||                                                                 ||                                                                 ||   * 0B21: write_clipboard_data_from 0x969110 size 28            ||   Writes the text from the specified buffer to the clipboard.   ||                                                                 ||   Params                                                        ||    1. Input buffer (pointer to memory)                          ||    2. Number of bytes of text to be written                     ||                                                                 ||   More: http://msdn.microsoft.com/en-us/library/aa932764.aspx   ||                                                                 |\                                                                 /\---------------------------------------------------------------/  /-----------------------------------------------------------\ /                           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                ||                                                                 |\                                                                 /\---------------------------------------------------------------/
Edited by Deji

Share this post


Link to post
Share on other sites
lpgunit

Nice! I was expecting this since it's hard to key in the codes every time.

Share this post


Link to post
Share on other sites
Node

Wow. wow.gif

 

Congratz Deji, this is an awesome little thing.

Share this post


Link to post
Share on other sites
Deji

* Updated *

Fixed a bug in 0B21 where text couldn't be copied more than once.

Share this post


Link to post
Share on other sites
rafik1998

download doesnt work, can you reupload?

Share this post


Link to post
Share on other sites
Deji
download doesnt work, can you reupload?

Done.

Share this post


Link to post
Share on other sites
YanWalker

You can reupload?

Share this post


Link to post
Share on other sites
YanWalker

Do not drop error several times

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.