Akashrai Posted February 5, 2016 Posted February 5, 2016 (edited) Hi, I have written a script in autoit for automation. It is scheduled and running on server but i have noticed it stops at some points. But when i am taking remote of server and running it runs fine. Is it problem of winActivate() or winWaitActivate() or any other method which i am using, is only run when screen is activated? If this is the may i get list of those methods and alternative of the same. I need alternative of winActivate() and winWaitActivate() methods. Any document or link is welcome. Please help ... thick.au3 Edited February 5, 2016 by Akashrai
Developers Jos Posted February 5, 2016 Developers Posted February 5, 2016 Send() commands will not function in a scheduled program and need to be replaced by controlxxx() commands. 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.
Akashrai Posted February 8, 2016 Author Posted February 8, 2016 (edited) I am not able to fetch id of all GUI components through "auto it info" tool so i have used send() method. Is there any other way to achieve the same will be helpful for me. And may i get where it is documented that Send() commands will not function in a scheduled program. And what about winActivate() or winWaitActivate() methods. Any alternate? Edited February 8, 2016 by Akashrai
spudw2k Posted February 8, 2016 Posted February 8, 2016 9 hours ago, Akashrai said: ... may i get where it is documented that Send() commands will not function in a scheduled program I don't think such documentation exists. There is a blurb in the help file for the function that mentions a couple of scenarios in which Send is unreliable or doesn't work. Running as a scheduled task isn't one of them; however...I think this issue is more of a imposition of the OS rather than a limitation of the Autoit function. Specifically in regards to Scheduled Tasks, I believe It has to do with whether or not process are running interactively. If your script relies on manipulating an interactive GUI it won't be able to when the session/desktop is locked/disconnected. Akashrai 1 Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
Akashrai Posted February 9, 2016 Author Posted February 9, 2016 Thanks spudw2k. I have tested send() is working fine But I faced problem with winActivate() or winWaitActivate() methods . So i need alternative of the same.
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