Jump to content

Recommended Posts

Hello, I am looking for a person who will help me call a button on the keyboard, e.g. F5, F6, A, B, C by clicking a button in the game, e.g. some gui.

Hope you know what I mean. Can anybody help me?

wants to trigger in-game keyboard clicking in the button

Edited by santa12
Link to comment
https://metin2.dev/topic/26225-python-keyboard-call-question/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member

For that you can go to game.py and search for these at def __BuildKeyDict(self):

253216Screenshot-1.png

You bind your event to the button there and create your new definition of the function in the same class:

253330Screenshot-4.png

Normally any window is bound to an interface class (interfaceModule.py) so you would call your GUI from there. For example, here is a function StartExchange from game.py calling StartExchange function at interfaceModule.py (self.interface).

253748Screenshot-5.png

And here is this the function from interface class calling exchange window functions.

254044Screenshot-6.png

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.