SFML community forums

Help => Window => Topic started by: quinnreilly on February 21, 2018, 06:09:55 pm

Title: How can I pause a youtube video or game with sfml?
Post by: quinnreilly on February 21, 2018, 06:09:55 pm
Hi

I have made a program that reacts to player input and resets a predetermined timer. If you do not click, the timer will run out and a screen will pop up.

I would like to know if it is possible to send some kind of keyboard input to the browser using SFML

Thanks for any help.
Title: Re: How can I pause a youtube video or game with sfml?
Post by: eXpl0it3r on February 21, 2018, 06:17:19 pm
No, SFML doesn't support simulated inputs. You may want to use the OS API directly or some tool like AutoHotkey.
Title: Re: How can I pause a youtube video or game with sfml?
Post by: quinnreilly on February 21, 2018, 06:22:43 pm
Ah well, thanks anyway.
Title: Re: How can I pause a youtube video or game with sfml?
Post by: quinnreilly on February 21, 2018, 06:23:12 pm
p.s That was quick!