Hello, i want to know how the following programs work so i can get an understanding to improve my coding and for future programs.

  • A Bot for a game let's say a runescape typing bot or a warcraft 3 clan bot
    A on-screen keyboard
    etc...


I want to know how a on-screen keyboard interacts with other software. When you click the A button on the on-screen keyboard it types in a A to the selected textbox on any program. The on-screen keyboard isnt really selected so everythiing else looses focus.


Something i really want to know:
I want to know how a typing bot for certain games function. How does it match string values with the string values in textboxes of the game (of a different program then its self).