Author Topic: Mouse Buttons as variables  (Read 1860 times)

kourou

  • Jr. Member
  • **
  • Posts: 81
  • Anything that can go wrong will go wrong
    • FANNY (Discord)
Mouse Buttons as variables
« on: July 19, 2019, 11:14:20 AM »
Hi there,
Is it possible to store a mouse click in a variable so that we can choose to click this variable like the "key press variable" option ?
If you can make this Mouse actions (see attached) as values of a variable that we can execute that would be great.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Mouse Buttons as variables
« Reply #1 on: July 19, 2019, 11:48:02 AM »
Which part would need to be able to be set by a variable?

There aren't that many mouse controls, compared to keyboard keys, so you could use conditions for this.
E.G.
Code: [Select]
Begin Text Compare : [mouseButton] Equals 'right'
    Click right mouse button
Else If Text Compare : [mouseButton] Equals 'middle'
    Click middle mouse button
Else
    Click left mouse button
End Condition
« Last Edit: April 18, 2020, 12:47:17 PM by Pfeil »

kourou

  • Jr. Member
  • **
  • Posts: 81
  • Anything that can go wrong will go wrong
    • FANNY (Discord)
Re: Mouse Buttons as variables
« Reply #2 on: July 19, 2019, 12:41:59 PM »
I need them all  :-X
if i use "if" and "elseif" I'll end up with commands at the size of the declaration of independence  :P ;D