Sign in to follow this  
Followers 0
Erik.

Send key mouse 1?

7 posts in this topic

Hi,

For my program i want to this:

Hotkeyset("\","popup")

so when i press the / the mouse button must be clicked for 1 time

normaly you want that teh program presses a button like hello ore something bu i want that it presses the mouse button where you click everything whit the right mouse button

does someone know the code?

send("?")


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites



Hotkeyset("\","popup")

While 1
    Sleep(10)
WEnd

Func popup()
    MouseClick("left")
EndFuncoÝ÷ Ûú®¢×¶§«­¢+Ù5½ÕÍ
±¥¬ ÅÕ½ÐíÉ¥¡ÐÅÕ½Ðì¤

...performed better for Erik :D

Share this post


Link to post
Share on other sites

I think...

MouseClick("right")

...performed better for Erik :D

Hehe, I see it now. Ok..maybe it's time to get some sleep.

Share this post


Link to post
Share on other sites

Hi,

Okej thanks for that.

Now do i have 4 buttons on my mouse:P

i have left,right left 2 right 2, middle,scroll

how to do when i press the reight 2 that it presses the left button 8 times?


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

:D Eh...what are you trying to do?:D:wacko: Edited by terrabyte

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor"Mess with the best, die like the rest!!" -Hackers"This above all to thine own self be true." -William Shakespeare"Corruption is only as corrupted as the individual makes it out to be." -Mozart_ONLINECheck out this free 1 GB FTP website at DriveHQ.com. You can control the users and even publish a website for free!![s]Your-Start.com - A online website that you can customize to hold all you links, news information, and other website info.[/s]

Share this post


Link to post
Share on other sites

Hi,

Okej thanks for that.

Now do i have 4 buttons on my mouse:P

i have left,right left 2 right 2, middle,scroll

how to do when i press the reight 2 that it presses the left button 8 times?

I don't know the '$s_hexKey' for right 2 but look at helpfile '_IsPressed' and 'MouseClick' and try out.

Something like this could be the answer.

If _IsPressed($s_hexKey[, $v_dll = 'user32.dll']) = 1 Then MouseClick ( "button" [, x, y [, clicks [, speed ]]] )

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