Jump to content

Fastest Click Detection?


rcmaehl
 Share

Recommended Posts

Hi all,

I have a Corsair Scimitar Pro. It's unfortunately succumbed to a common issue. Single Clicks occasionally Double Click. I've attempted to make a small loop to block input directly after a mouse click, however it does not appear to be quick enough. Is there anyway faster than:

#include <Misc.au3>

While 1
    If _IsPressed("01") Then
        BlockInput(True)
        Sleep(45)
        BlockInput(False)
    EndIf
WEnd

Perhaps such as setting it as a hotkey and then manually passing the click?

Thanks in Advance!

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

Hi all,

I have a Corsair Scimitar Pro. It's unfortunately succumbed to a common issue. Single Clicks occasionally Double Click. I've attempted to make a small loop to block input directly after a mouse click, however it does not appear to be quick enough. Is there anyway faster than:

#include <Misc.au3>

While 1
    If _IsPressed("01") Then
        BlockInput(True)
        Sleep(45)
        BlockInput(False)
    EndIf
WEnd

Perhaps such as setting it as a hotkey and then manually passing the click? I've tried a few mouse UDFs but they seem even slower than _IsPressed 

Thanks in Advance!

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

this may improve performance ever so slightly...

#include <Misc.au3>

Local $hDLL = DllOpen("user32.dll")

While 1
    If _IsPressed("01", $hDLL) Then
        BlockInput(True)
        Sleep(45)
        BlockInput(False)
    EndIf
WEnd

it looks promising although tbh I’ve been disappointed by only a meager improvement :)

Code hard, but don’t hard code...

Link to comment
Share on other sites

  • Moderators

@rcmaehl You have seriously been around too long to be double posting like this.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

6 hours ago, JLogan3o13 said:

@rcmaehl You have seriously been around too long to be double posting like this.

Didn't even realize I did. Shows them both made at 8:54, I think I missed up the edit somehow.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

Link to comment
Share on other sites

15 hours ago, pseakins said:

Get a new mouse

Or replace the failing microswitch. Don't waste hardware!

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

4 minutes ago, jchd said:

Don't waste hardware!

$180+ hardware. And if you are a bad gamer, no expensive mouse will help you win  :P  :D 

i know from personal experience 

Edited by argumentum
i'm a gamer, bad one too =)

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Geez!

I was rather thinking about this:

 

µswitch.jpg

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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...