Jump to content

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.

Add a timerinit and timer diff in between checking for keys?
Link to comment
Share on other sites

  • 3 months later...

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

Link to comment
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

Link to comment
Share on other sites

  • 8 months later...

#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)

Link to comment
Share on other sites

  • 4 years later...
  • Moderators

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

 

Link to comment
Share on other sites

  • Developers

@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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...