Jump to content

mouseclick


Recommended Posts

Does the following command give 1 click or 2?

mouseclick ("left")

In the helpfile it gives this:

; Double click at the current mouse pos
MouseClick("left")
MouseClick("left")

; Double click at 0,500
MouseClick("left", 0, 500, 2)


; SAFER VERSION of Double click at 0,500

Dim $primary
Dim $secondary
;Determine if user has swapped right and left mouse buttons
$k = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

; It's okay to NOT check the success of the RegRead operation
If $k = 1 Then
    $primary = "right"
    $secondary = "left"
Else ;normal (also case if could not read registry key)
    $primary = "left"
    $secondary = "right"
EndIf
MouseClick($primary, 0, 500, 2)
Exit

oÝ÷ Ù»­j[(±¬¬¶¬rXÊ)*'jTáz{¦mêè~ئzËhrXØ^¬x7jémÍVéȺǭçèZ0x¢iÙ¨ºÇ'$ªê-çíªê-y²±Êâ¦Ø­±ç¦²Ú'$·xz0q©Èmë.­è­Ê''%É"
'^­ë-êZ®Ú+®*m¶­±§ßyË^tlºh±çm¢Ç§u«"    ^ªê-櫨¶Ú&ËzÝ¥ªíÊ趦½êâ¶Ç§vͪºyßÛ*ºZºÚ"µÍYÝ[Ò[Ý
    ÌÍÚØÌK ÌÍÍKJH[BS[ÝÙ[[ÝH
M
ÍJBBS[ÝÙPÛXÚÈ
    ][ÝÓY ][ÝÊBBQ[Y
Edited by kaibraine
Link to comment
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
 Share

  • Recently Browsing   0 members

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