Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help for despairing newcomer..

$
0
0
Hi all,
 
I am quite new to AutoIT but can see its potential for me as I am undertaking a project to package up several older applications for deployment across a Windows 7 estate.
 
The problem I am having related to an AutoIT script I have created which runs after a reboot via the HKLM Run registry key (i tried RunOnce but the script ran too early - i've added a remove registry entry toward the end of the current script to remove the registry entry from Run)
 
From a batch script I silently install an application and request a reboot.   The application opens and has some registration options that can't be removed from the silent install which I would like AutoIT to process which includes an activation over the internet (accounting for the 8 second delay)
 
Following reboot, this script runs :
AutoIt         
Sleep(5000) RunWait("C:\Program Files\ZoomText 10\ZT.exe") WinActivate("ZoomText Activation") Sleep(500) WinWaitActive("ZoomText Activation") Send("{ENTER}") ;wait for 1 second Sleep(1000) WinWait("ZoomText Activation") Send("{ENTER}") ;wait for eight seconds until internet activation can complete Sleep(8000) WinWait("ZoomText Activation") ;Send("{TAB}") ;Sleep(1000) Send("{DOWN}") Send("{DOWN}") ;Send("{SPACE}") Send("{TAB}") Send("{Enter}") Sleep(1000) RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ZoomText")
No matter what changes I make, including adding various sleep options and using the WinWait, WinWaitActive and WinExist options, the required window is not detected and subsequently the required keystrokes are not sent.  The script goes into pause mode as if expecting the window, but not finding it
 
Does anyone have any pointers or tips on the incorrect syntax, commands, etc that I am using??
 
Neal

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>