Can i create a key press with stencyl?

fotogeluid

  • Posts: 271
Ok this is a weird question. Will try to explain.
Usually a program wait for the player to press a button
But i want to know if i can do the inverse. I mean the program presses a key for the player....

Is this possible and how do i do that?

gamegirlxl

  • Posts: 716
If you scroll down on the control list, there is the "simulate key press using [control]" block, which can be attached to an event.

fotogeluid

  • Posts: 271
I don't want to simulate the keypress. I want windows to detect a real keypress..... I think it is not possible but no harm asking no?

rob1221

  • *
  • Posts: 9430
Nope, that can't be done.  Why do you want to do it though?

gamegirlxl

  • Posts: 716
I see what you mean now.  That IS a simulated key press, but not for just the game window.  You want it to be simulated over the entire OS (like if you were to press the windows key on a windows computer).  I don't know what use that would have...or how it'd work with a Mac.

GeorgeN

  • Posts: 859
I can think of a bot for playing MMOPG's right? :D

Hectate

  • *
  • Posts: 4643
Regardless of why, it'd be a security risk to permit it which is why it's not possible.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.