Results 1 to 2 of 2

Thread: Check if mouse button is pressed

  1. #1
    Join Date
    Sep 2005
    Location
    Karlsruhe, Germany
    Beans
    86
    Distro
    Ubuntu 10.04 Lucid Lynx

    Check if mouse button is pressed

    Hello!

    I'd like to write a simple bash script which has to run a command, but only when a certain mouse button is pressed. To put it into "simple" words, i'd like to write...

    Code:
    if left_mouse_button_is_pressed = true
     ...
    else
     ...
    How can i figure out whether a mouse button is currently pressed, or not?

    Thanks
    Christoph

  2. #2
    Join Date
    Mar 2008
    Beans
    7

    Re: Check if mouse button is pressed

    I second that question.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •