Avoid sleep in TrayGetMsg and GUIGetMsg
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Vikramjeet
I have a script that reads the last 7 lines of an active log file. By active I mean that the file is being written while the script runs.
How can I make the script to
1- keep reading the last 7 lines till a specific text appears.
2- Once the specific text appears, then get out of the loop and proceed to other tasks
Thank You
-
By simonc8
I have a script which executes sleep for a couple of hours then carries out instructions. Does the running AutoIt script prevent the computer from entering sleep mode during this time? If not, is there something I can add to the AutoIt script to keep the computer awake?
Grateful for advice.
-
By naru
I have script Like This :
Opt("TrayAutoPause",0)
$var = Ping("www.google.com")
If not @error Then
WinActivate ( "testapp")
ControlClick ( "testapp", "", "[Savetest]")
ControlSend ( " :: Gujarat TPDS - eFPS :: Version - 2.2.0.0 - [eFPS Bill]", "", "[NAME:btnSavebyFP]", "{enter}")
WinWait(":: Aadhar/EID/Verification Number Entry ::")
ControlClick(":: Aadhar/EID/Verification Number Entry ::", "", "[NAME:btnNext]")
If WinExists ("Aadhar : Length Check") Then
ControlClick("Aadhar : Length Check", "", "[CLASS:Button; INSTANCE:1]")
ControlSend(":: Aadhar/EID/Verification Number Entry ::", "", "[NAME:txtAadharNumber]", "{backspace}")
ControlSend(":: Aadhar/EID/Verification Number Entry ::", "", "[NAME:txtAadharNumber]", "^v")
ControlClick(":: Aadhar/EID/Verification Number Entry ::", "", "[NAME:btnNext]")
WinWait(" :: Barcoded Ration Card Members - Biometric Verification/Check Utility ::")
ControlSend("[Class:WindowsForms10.Window.8.app.0.378734a]", "", "[NAME:PictureBox2]", "{tab} {enter}")
Sleep(5600)
RunWait("rasdial /disconnect", "", @SW_HIDE) ; Stop connect from start
RunWait("rasdial Internet", "", @SW_HIDE) ; Connect again
Exit
EndIf
WinWait(" :: Barcoded Ration Card Members - Biometric Verification/Check Utility ::", "", 1)
ControlSend("[Class:WindowsForms10.Window.8.app.0.378734a]", "", "[NAME:PictureBox2]", "{tab} {enter}")
Sleep(5600)
RunWait("rasdial /disconnect", "", @SW_HIDE) ; Stop connect from start
RunWait("rasdial Internet", "", @SW_HIDE) ; Connect again
Exit
Else
#include <MsgBoxConstants.au3>
MsgBox($MB_TOPMOST, "Connection Status", "Internet is not Connected")
Exit
Endif
-
By naru
How can i add sleep command using internet speed.
If my internet speed is 40-50Kbps then sleep for 5 seconds,
If my internet speed is 30-40Kbps then sleep for 4 seconds,
If my internet speed is 20-30Kbps then sleep for 3 seconds.
*Sleep command used bitween my costom script, Example,
RunWait("rasdial /disconnect", "", @SW_HIDE) ; Stop connect from start
Sleep(5000)
RunWait("rasdial Internet", "", @SW_HIDE) ; Connect again
-
By lacamel
Hi there,
I did a short script to simulate mouse click when pixel change is detected on a small section of the screen. I recorded the screen many times to see the accuracy of the script and it seems though response time varies widely.
Here's the script
$checksum = pixelchecksum (400,250, 402,252)
While $checksum = pixelchecksum (400,250, 402,252)
Sleep (50)
Wend
Sleep (300)
Mouseclick("left", 450,300, 1, 0)
Counting from the pixel change to the mouse click, i get response times anywhere between 370ms and 550ms. I've tried running au3 and exe, changed sleep times but never gotten an accurate response time based on the script. Any ideas why?
-
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now