Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How can I pause a youtube video or game with sfml?  (Read 1100 times)

0 Members and 1 Guest are viewing this topic.

quinnreilly

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
How can I pause a youtube video or game with sfml?
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10226
    • View Profile
    • development blog
    • Email
Re: How can I pause a youtube video or game with sfml?
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

quinnreilly

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: How can I pause a youtube video or game with sfml?
« Reply #2 on: February 21, 2018, 06:22:43 pm »
Ah well, thanks anyway.

quinnreilly

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: How can I pause a youtube video or game with sfml?
« Reply #3 on: February 21, 2018, 06:23:12 pm »
p.s That was quick!

 

anything