Sign in to follow this  
Followers 0
level20peon

remapping a key

1 post in this topic

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
        Send("{UP}")
        ExitLoop
    EndIf
WEnd
DllClose($dll)

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

-level20peon

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  
Followers 0