I have a script written in Autoit that I am trying to convert over to C# to have more functionality with it down the road. The main functions it ends up having is to send text to a command (In-game text) to a game that I have open. What I am trying to do is get the same kind of functionality of the Send() function in Autoit.
I have been reading and have come to the conclusion that Postmessage and Sendmessage would be the best because they are able to send it to a window that is not currently active. Is there a way to send stings with PostMessage? I attempted to use Sendmessage and while it was sending key presses to the game some of them were not being accepted but post message seems to have them working.
Question: Is it possible to send strings and variable with Postmessage()? If so how?
Thanks! I'm still new to C# and trying to make the leap from a way simpler language. (Autoit)