Jump to content
Sign in to follow this  
Vegar

CountClick help

Recommended Posts

Vegar

Hello ...

im making a script that Logs how many times you click on evry button..

and i've figured out how to log them but i got into a litle problem

here is how i do it now:

...

$clicksX = 0

If _IsPressed("58", "user32.dll") Then

while _IsPressed("58","user32.dll")

sleep(1)

WEnd

$clicksX = $clicksX + 1

GUICtrlSetData($X_label, "X Have been Clicked = " & $clicksX & "Times")

EndIf

...

butt i wanted to use the script for some gaming, and then it does not regisert the clicks if more than one button is pushed at the same time, witch is quite annoying..

so do anyone know what i should do to prewent this?!!?

Edited by Vegar

Share this post


Link to post
Share on other sites
martin

Hello ...

im making a script that Logs how many times you click on evry button..

and i've figured out how to log them but i got into a litle problem

here is how i do it now:

butt i wanted to use the script for some gaming, and then it does not regisert the clicks if more than one button is pushed at the same time, witch is quite annoying..

so do anyone know what i should do to prewent this?!!?

This post, and previous post, might help.

EDIT:added the missing link.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.