Sign in to follow this  
Followers 0
kaibraine

mouseclick

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Not sure what the rest of your code is, add a msgbox and if it pops up twice then that parts being run twice, because it looks fine...

Share this post


Link to post
Share on other sites

yeah i think its probably my code. i'll try that. thanks

Share this post


Link to post
Share on other sites

Yp its my crappy code. I'm noob, oh well back to the coffee :lmao:

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I found and removed the offending piece of code. thx :lmao:

Edited by kaibraine

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