Jump to content
×
×
  • Create New...
  • 0

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


ReFresh

Question

  • Moon

Hi guys,

can somebody know how to do function for CTRL + C and CTRL + V in game? For example: I copy some text on the internet and i want to paste to chat in game.

Thanks for your answer!

Kind Regards ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

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 3
Link to comment
Share on other sites

  • 0
  • Moon

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

  • 0
  • Moon
3 hours ago, arves100 said:

You have to copy something using corean\window 9XX format

Thank you, but how can I do this? I don't know what do you mean. Or can I change this copy format to Czech format?

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 0
  • Moon
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

  • 0
On 3/6/2016 at 6:28 AM, ReFresh said:

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

u do it on Eterlib/IME.cpp. Open it with notepad++ and change the encoding in the settings,

  • Love 1
Link to comment
Share on other sites

  • 0
  • Moon

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.