Jump to content
Sign in to follow this  

remapping a key

Recommended Posts

Hey guys,

I've been working with AutoIT3 for a couple of months and now seem to be really stuck for the first time. I searched the forum for quite some time without being able to develop a working solution.

Here is what I'm trying to do:

Setting a hotkey on the right mouse-button by using _IsPressed with a script like

#include <Misc.au3>

$dll = DllOpen("user32.dll")
While 1
    Sleep (50)
    If _IsPressed("02", $dll) Then

This configuration works like a charm but besides activating the UP-key the right mouse-button also is activated. I would like to send the hotkey only without sending the "original output" of the right mouse button. Is this possible at all ?

kind regards


Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...