[Help]Sending commands to a specific window, even there are others with the same title. /u/rgdoabc Python Education

Hello.

I don’t know much about programming (studied a little 15 years ago) yet I decided to make a little application to help me with a game. Things like sending an entire command in the console with just a key press. I did manage to do it with AHK, but I want to add a UI and other functions in the future and I imagine AHK isn’t going to be good for that.

The first function is getting into a loop until it detects that the game is running. This I managed to do using psutil.

The second part is where I’m lost, because I don’t want to send those commands to another window by accident neither I want to send it when the window isn’t active..

submitted by /u/rgdoabc
[link] [comments]

​r/learnpython Hello. I don’t know much about programming (studied a little 15 years ago) yet I decided to make a little application to help me with a game. Things like sending an entire command in the console with just a key press. I did manage to do it with AHK, but I want to add a UI and other functions in the future and I imagine AHK isn’t going to be good for that. The first function is getting into a loop until it detects that the game is running. This I managed to do using psutil. The second part is where I’m lost, because I don’t want to send those commands to another window by accident neither I want to send it when the window isn’t active.. submitted by /u/rgdoabc [link] [comments] 

Hello.

I don’t know much about programming (studied a little 15 years ago) yet I decided to make a little application to help me with a game. Things like sending an entire command in the console with just a key press. I did manage to do it with AHK, but I want to add a UI and other functions in the future and I imagine AHK isn’t going to be good for that.

The first function is getting into a loop until it detects that the game is running. This I managed to do using psutil.

The second part is where I’m lost, because I don’t want to send those commands to another window by accident neither I want to send it when the window isn’t active..

submitted by /u/rgdoabc
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *