There is some application that is not very popular, but I know what is created on Qt, for example, you can take Viber for PC. As far as I understand, the program for displaying buttons does not use standard Windows methods, but draws them itself, so it’s impossible to catch any Spy ++ where these buttons are. How can you find and click on any of the buttons in Delphi?

  • Strange approach. Are you doing a bot? - Herrgott
  • To press a button - you need to understand the button. Namely, to understand how it is made, etc. In the worst case, by coordinates relative to the main window. - Vladimir Martyanov
  • Yes, it's almost a bot, but not quite, otherwise it doesn't. all traffic they have is incomprehensible encrypted. And how do I understand this very button, and I ask how it is made for me so little where is explained - vip72
  • 2
    @ vip72 somehow it is made, without specifics - fortune telling on the coffee grounds. So have fun with clicking on the coordinates. - Vladimir Martyanov
  • 2
    In order to programmatically press a button in Windows, it is necessary to send a message to it. If the button is made not in the form of a Windows control that has its own window handle, then there is nowhere to send the message. so it remains to emulate a mouse click on the coordinates, as you wrote - teran

1 answer 1

And if so?
1. Make a screenshot of the window of another application. Through the handle of someone else's application and canvas.
2. Determine where the buttons are, find their coordinates. Not knowing what the interface looks like, I can’t give you a hint, but the buttons are displayed as standard, you can catch them by shadow
3. We emulate clicking of the mouse button on the necessary coordinates.