Sign in to follow this  
Followers 0
ARealGentleman

Recording delay between Mouse clicks or keystrokes

11 posts in this topic

I am still very new but I am wondering does this have a feature that records delay between Mouse clicks or keystrokes. ScrpitWriter works great but puts a default sleep(1000) between every move and not the real time. Is it possible for ir to record real time delays.

Thanks in advance.

Share this post


Link to post
Share on other sites



I am still very new but I am wondering does this have a feature that records delay between Mouse clicks or keystrokes. ScrpitWriter works great but puts a default sleep(1000) between every move and not the real time. Is it possible for ir to record real time delays.

Thanks in advance.

Add a timerinit and timer diff in between checking for keys?

Share this post


Link to post
Share on other sites

Add a timerinit and timer diff in between checking for keys?

is there way b/c iam trying to make a bot for d2

it supost to chaos and i neeed this timer rely bad not only that

when the maps change how can i set my bot to agust to the map

Share this post


Link to post
Share on other sites

is there way b/c iam trying to make a bot for d2

it supost to chaos and i neeed this timer rely bad not only that

when the maps change how can i set my bot to agust to the map

I have no bloody idea.

#include <Misc.au3>

Local $time, $timer

While 1

If _IsPressed("20") Then

$timer = TimerDiff($time)

MsgBox(0, "", $timer)

$time = TimerInit()

EndIf

WEnd

Share this post


Link to post
Share on other sites

Could you explain this a little more easy :P

i also need the recorder to get the delay between button hits.

Where do i put that code exactly?

Share this post


Link to post
Share on other sites

#Include <Misc.au3>

$key = "26"; Up Arrow

Do 
    Sleep (50)
Until _IsPressed ($key)

$timer = TimerInit ()
Sleep (100)
Do 
    Sleep (50)
Until _IsPressed ($key)
$diff = TimerDiff ($timer)

MsgBox (0, "", "Difference in milliseconds: " & @CRLF & $diff)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

-snip -

Edited by Jos
Link removed

Share this post


Link to post
Share on other sites

I would be willing to pay a 3 figure anual subscription fee just to keep these idiots out!

kylomas

1 person likes this

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Stratego,

Necro-post this once more and you go away! :naughty:

M23

Edited by Melba23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

@Stratego 3 things:

  • read our forumrules before posting again.

  • Resurrecting an 4 year old thread is not done when not related.

  • This is the support forum... there was no question.
Hey ... Guess You have extra attention also from Melba and feel you will be getting an official warning soon. We both snipped your posted somewhat. ;) Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0