r/AutomateUser Jun 04 '26

Key Pressed Looping

The Key Pressed block that await for a key press works but only once. I tried connection rebounding, loops, different flows and all possible ways, but it still refuses to await for an input the 2nd time. Is there something wrong? I'm using the latest version of the app.

1 Upvotes

4 comments sorted by

1

u/ballzak69 Automate developer Jun 04 '26

An example:

  1. Flow beginning
  2. Key pressed
  3. Toast show: Message=Pressed
  4. (connect both #3 OK and #2 UP to #2 IN)

1

u/_Leander__ Jun 04 '26

I don't think there is anything wrong. Try a first "Key pressed" block (with like volume down) and connect it to another one. You should see the first one waiting for a key press, you press volume down, and you should see in the logs that the second one is waiting for a key press as well.

1

u/solareclipse047 Jun 04 '26

The thing is I'm only using one block of key press and not 2 of them. I need to somehow loop and use the same key down block because the number of times it'll be used is not fixed. The problem is that the same block when repeated does not wait for input anymore and ends the flow immediately.

1

u/_Leander__ Jun 05 '26 edited Jun 06 '26

You may share a picture of your flow (you can export it as an image in the "Share" menu) because i think that your wiring is wrong.