Mod Showroom

 Reply to this postStart new topic

[CLEO4|PLUG] ClipboardControl Library

Deji
post Jan 20 2012, 10:45 PM
Post #1


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Download

Example 1: QuickCheat


CODE
+-------------------------------------------------------------------------------------------+
|      _____ _ _       _                         _    _____             _             _     |
|     / ____| (_)     | |                       | |  / ____|           | |           | |    |
|    | |    | |_ _ __ | |__   ___   __ _ _ __ __| | | |      ___  _ __ | |_ _ __ ___ | |    |
|    | |    | | | '_ \| '_ \ / _ \ / _` | '__/ _` | | |     / _ \| '_ \| __| '__/ _ \| |    |
|    | |____| | | |_) | |_) | (_) | (_| | | | (_| | | |____| (_) | | | | |_| | | (_) | |    |
|     \_____|_|_| .__/|_.__/ \___/ \__,_|_|  \__,_|  \_____|\___/|_| |_|\__|_|  \___/|_|    |
+---------------| |-------------------------------------------------------------------------+
                |_|                                                                        

                        /----------------\
                       /     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 0@ 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                |
|                                                                 |
\                                                                 /
\---------------------------------------------------------------/


--------------------
Go to the top of the page
 
+Quote Post
Jimmy
post Jan 21 2012, 01:03 AM
Post #2


Ameteur Member

Posts: 36
From: India
Joined: 19-January 12



Great work as usaual Deji. I tried it. Works pretty good. I wish I could have such a mod for GTAIII. Just a question. Why does it take time to copy the text in Sanny Builder?


--------------------


Go to the top of the page
 
+Quote Post
Deji
post Jan 21 2012, 02:39 AM
Post #3


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



It shouldn't unless you have a really slow computer. Everything takes time though. Also depends on how much you're trying to copy, of course...


--------------------
Go to the top of the page
 
+Quote Post
Jimmy
post Jan 21 2012, 07:52 AM
Post #4


Ameteur Member

Posts: 36
From: India
Joined: 19-January 12



QUOTE (Deji @ Jan 21 2012, 08:09 AM) *
It shouldn't unless you have a really slow computer. Everything takes time though. Also depends on how much you're trying to copy, of course...

I use Core2DUO. I don't have that slow PC. I was trying with Deniska's Alien City mod.


--------------------


Go to the top of the page
 
+Quote Post
uokka
post Jan 21 2012, 12:15 PM
Post #5


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Thats damn cool cause I hate to type in cheat codes. Pretty inovative.


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
LINK/2012
post Jan 21 2012, 03:50 PM
Post #6


I will kill you

Posts: 126
Joined: 13-May 11



That's fuckin cool.
Go to the top of the page
 
+Quote Post
Deji
post Jan 21 2012, 04:01 PM
Post #7


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



There's also, of course, a quick peek of some GTAG v2 pages in the video tongue.gif


--------------------
Go to the top of the page
 
+Quote Post
Jimmy
post Jan 22 2012, 09:39 AM
Post #8


Ameteur Member

Posts: 36
From: India
Joined: 19-January 12



QUOTE (Deji @ Jan 21 2012, 09:31 PM) *
There's also, of course, a quick peek of some GTAG v2 pages in the video tongue.gif

Really cool man.


--------------------


Go to the top of the page
 
+Quote Post
Hacker379
post Jul 2 2015, 10:33 AM
Post #9


The New Guy!

Posts: 1
From: Tabriz City, IR
Joined: 15-December 14



When i'm trying to access the download page it shows me "MYSQL CONNECTION ERROR" , any solution?

This post has been edited by Hacker379: Jul 2 2015, 10:42 AM


--------------------
Intel Core i7 - Nvidia GTX 880M - 16GB DDR3 RAM - Windows 7 x64 Ultimate
Go to the top of the page
 
+Quote Post
Deji
post Jul 3 2015, 04:32 PM
Post #10


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (Hacker379 @ Jul 2 2015, 11:33 AM) *
When i'm trying to access the download page it shows me "MYSQL CONNECTION ERROR" , any solution?


Link was dead... http://gtagmodding.com/mods/90-cleo4-pl...ontrol-library/


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

7 User(s) are reading this topic (7 Guests and 0 Anonymous Users)
0 Members: