Jump to content
Sign in to follow this  
ARealGentleman

Recording delay between Mouse clicks or keystrokes

Recommended Posts

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

Stratego,

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

M23

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

@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

Share this post


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

×
×
  • Create New...