Jump to content

Can somebody know how to ctrl+c and ctrl+v in game?


Recommended Posts

SourceClient - Eterlib/IME.cpp

 

Search:

m_bEnablePaste = false;

and replaces with:

m_bEnablePaste = true;

Search and delete:

if (!__IsWritable(c))
        return;

 

And search in ui.py / root:

def OnKeyDown(self, key):

and add it below:

        if app.DIK_V == key:
            if app.IsPressed(app.DIK_LCONTROL):
                ime.PasteTextFromClipBoard()

 

  • Love 4
Link to comment
Share on other sites

  • Active Member

Thank you @VegaS.

But I have a one question. When I use Ctrl + V does this symbol before the inserted text. I think that this symbol is inserted when the chat line is full, but this symbol is inserted automatically before inserted text.

Thanks for your answer!

 

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 2 months later...
  • Active Member
58 minutes ago, arves100 said:

If you use notepad++ you have to open Format-->Character Set-->Korean-->Window 949 and have to copy and paste on the client.

The second option if to change Metin2 Text Format to UTF-8\ANSI

@arves100 But I don't know, where I must change this encoding.

I'll be always helpful! 👊 

Link to comment
Share on other sites

look for: 

Spoiler

void CIME::PasteTextFromClipBoard()

relace:

Spoiler

 

HANDLE handle = GetClipboardData(CF_TEXT);

char * buffer = (char*)GlobalLock(handle);

 

with:

Spoiler

    HANDLE handle = GetClipboardData(CF_TEXT);
    if (!handle)
        return;
    char * buffer = (char*)GlobalLock(handle);
    if (!buffer)
        return;

I'm not sure it will work i haven't tested it yet but it seems to prevent the issue.

Let me know if it worked.

  • Love 5
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      We are looking for a C++ and Python programmer

    2. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    3. 111

      Ulthar SF V2 (TMP4 Base)

    4. 0

      Quest function when 102.kill definition whereabouts help

    5. 5

      [M2 FILTER] Customized Client Filter

    6. 0

      [INGAME] RGB Color on chat broken

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.