Jump to content

Recommended Posts

Posted

Hi,

I know how to run a function with a special hotkey pressed, like "!5" => ALT + 5.

 

How do I the same, with ALT + Left Mouseclick (or right). I did not find anything on google.

 

thanks in advance

  • Moderators
Posted

zauber3r,

Welcome to the AutoIt forums.

I would use _IsPressed - look in the Help file for more details.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Thank you for your answer, but it helped me not.

 

I need instead "ALT + 5" as hotkey, "ALT + LeftMouseClick"

I want to pop up a contextmenu. With your way I need a lot of more code to send the hotkey....

  • Moderators
Posted

zauber3r,

  Quote

With your way I need a lot of more code to send the hotkey....

Expand  

And so? If you want to detect a mouseclick then that is the way to do it - unless you want to get even more exotic and start registering Windows messages, which is even more code.....

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...