Jump to content

I have problem with Opt("SendKeyDelay", 0) and my laptop.


Recommended Posts

Before I had this problem.

My scripts performed "send" very fast.

Then I close Notebook lid, then it went to sleep mode. (I used to set it to "Do nothing" after close lit but I forget it that I reinstalled Windows)

I run script again, It perform "Send" very slow.

I don't know why. Please help me. 

Ssorry for my bad English.

 

Finding where picture is, then get position and click then typing by use "Send"

Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)

$Match18 = _MatchPicture("XXXXXXX\Screenshot_18.png", 0.85,"",30)
$Match19 = _MatchPicture("XXXXXXX\Screenshot_19.png", 0.85,"",30)
If IsArray($Match18) Then
    MouseClick("left", $Match19[0] + 30, $Match19[1] + 30, 1, 0)
    Send("inform")
    Sleep($r)
EndIf

$check = _MatchPicture("XXXXXXX\check.png", 0.85,"",30) ;;; check
If IsArray($check) Then
    MouseClick("left", $check[0] + 10, $check[1] + 10, 1, 0)
    Sleep($r)
EndIf

$next = _MatchPicture("XXXXXXX\next.png", 0.85,"",30)  ;;;;next
If IsArray($next) Then
    MouseClick("left", $next[0] + 10, $next[1] + 10, 1, 0)
    Sleep($SleepNext)
EndIf

 

Edited by waritxx
insert code
Link to post
Share on other sites
  • Developers

Your line 5 is wrong!

(When you want some real help you post your script and tell us which program you are automating.  ;) )

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...