Re: Getting unfocused input?

2019-11-21 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Getting unfocused input?

Yeh, I did after asking, I just forgot to edit the post after doing so. Oh well, that's what I get for screwing around only with examples first.

URL: https://forum.audiogames.net/post/478763/#p478763




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-21 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: Getting unfocused input?

The event object passed to your callback has a value in it called "event", which lets you tell the difference! Read the documentation! 

URL: https://forum.audiogames.net/post/478757/#p478757




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-20 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Getting unfocused input?

Thank you. I will certainly check this out.Also, if it captures both presses and releases, how do I Distinguish between the two items?

URL: https://forum.audiogames.net/post/478439/#p478439




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-20 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Getting unfocused input?

Thank you. I will certainly check this out.Also, if it captures both presses and releases, how do I determine if it was a press and release?

URL: https://forum.audiogames.net/post/478439/#p478439




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-20 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: Getting unfocused input?

It may seem to capture an event twice, because it captures an event every time a key is pressed and every time a key is released too if memory serves.When sending input, you can try:pip install pyautoguiDocs are at https://pyautogui.readthedocs.io/en/latest/

URL: https://forum.audiogames.net/post/478433/#p478433




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-19 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Getting unfocused input?

Hey @2, your link worked, at least for capturing purposes. I may need to tinker around with delays as it seems to capture an event twice, but we'll see.Now, how bout sending input out to other programs while I am not in the application's window? Do you know which module can do this?@3, thank you, I wasn't too sure as to what my task was called.Edit: Just found something which may work. Let's see.

URL: https://forum.audiogames.net/post/478239/#p478239




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-19 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Getting unfocused input?

Hey @2, your link worked, at least for capturing purposes. I may need to tinker around with delays as it seems to capture an event twice, but we'll see.Now, how bout sending input out to other programs while I am not in the application's window? Do you know which module can do this?@3, thank you, I wasn't too sure as to what my task was called.

URL: https://forum.audiogames.net/post/478239/#p478239




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-19 Thread AudioGames . net Forum — Developers room : Lucas1853 via Audiogames-reflector


  


Re: Getting unfocused input?

Hi,What you want to look into is keyboard hooking. I haven't studdied it much, but I know there are low-level ways of doing it with the windows API, and there are probably libraries to do it in Python; I guess what Keith recommended does this.

URL: https://forum.audiogames.net/post/478110/#p478110




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting unfocused input?

2019-11-19 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: Getting unfocused input?

https://github.com/SerpentAI/sneakysnekHope it works!

URL: https://forum.audiogames.net/post/478097/#p478097




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Getting unfocused input?

2019-11-19 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Getting unfocused input?

So, I wanted to create a key presser in python. Thing is, the system I use to get keyboard input (pygame) only allows the said input to be detected while I am in the window. Is there any way to get keyboard input even if I am in another program? If so, how? Searching yielded little results, though I must admit I was pressed on time when performing it.

URL: https://forum.audiogames.net/post/478085/#p478085




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector