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 2379 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: 11033
    • 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
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

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