kaibraine Posted October 18, 2006 Share Posted October 18, 2006 (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ë.èÊ''%É" 'qè^ë-êZ®Ú+®*m¶±§ßyË^tlºh±çm¢Ç§u«" ^ªê-櫨¶Ú&ËzÝ¥ªíÊ趦½êâ¶Ç§vͪºyßÛ*ºZºÚ"µÍYÝ[Ò[Ý ÌÍÚØÌK ÌÍÍKJH[BS[ÝÙ[[ÝH M ÍJBBS[ÝÙPÛXÚÈ ][ÝÓY ][ÝÊBBQ[Y Edited October 18, 2006 by kaibraine Link to comment Share on other sites More sharing options...
Rad Posted October 18, 2006 Share Posted October 18, 2006 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... Link to comment Share on other sites More sharing options...
kaibraine Posted October 18, 2006 Author Share Posted October 18, 2006 yeah i think its probably my code. i'll try that. thanks Link to comment Share on other sites More sharing options...
kaibraine Posted October 18, 2006 Author Share Posted October 18, 2006 Yp its my crappy code. I'm noob, oh well back to the coffee Link to comment Share on other sites More sharing options...
kaibraine Posted October 18, 2006 Author Share Posted October 18, 2006 (edited) I found and removed the offending piece of code. thx Edited October 18, 2006 by kaibraine Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now