Author Topic: Make an input from 2 different sources  (Read 798 times)

Conclavice

  • Newbie
  • *
  • Posts: 10
  • All Hail Pfiel
Make an input from 2 different sources
« on: May 10, 2021, 02:53:36 PM »
I want an action to get triggered when i press alt and then click but I don't know how I wound do that with the 2 being in different groups on the triggers

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4757
  • RTFM
Re: Make an input from 2 different sources
« Reply #1 on: May 11, 2021, 12:21:51 AM »
The "When I press" triggers are independent of each other, so you'll need to trigger off of one of them, and then check for the other within the command.

E.G.
When I press keys: Left Alt
Code: [Select]
Start Loop While :  Keyboard Key 'Alt' Is Pressed
    Begin Device State Check :  Left Mouse Button Is Pressed
        Write [Blue] 'Alt-click detected' to log
    End Condition - Exit when condition met
End Loop

If you also want to Alt key to perform a function by itself, you can add those actions underneath the loop, so that they will be executed when the Alt key is released.