Silverback83 Posted March 28, 2017 Posted March 28, 2017 In my company I have to install the same programs on every PC I ever setup, so I'm trying to write a script that will do it all automatically. So far I've managed to get my AutoIT script to install the first programme however when the installation finished, it loads up the box which requires some user info to be entered (This is always the same info, I.e. area code = +44 etc) Problem I'm having is the install goes through fine. It then autoloads the programme but using the WinWaitActive command no longer works. I've tried to change this for WinWait('', 'Enter International Area Code') but this doesnt work either. Basically, at this last stage of installation, I just need it to press TAB 3 times, enter 44 and click save. Not sure why WinWaitActive no longer works at this stage. If it was still on an installer screen it would be fine so is the issue the fact its finished installing and I need to use a different command? *confused*
Moderators JLogan3o13 Posted March 28, 2017 Moderators Posted March 28, 2017 @Silverback83 if you have resolved your own issue (congrats) please modify your initial post and add RESOLVED to the title. This helps those assisting on the forum to know you're all set. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
spudw2k Posted March 28, 2017 Posted March 28, 2017 Also, sharing your discovery/solution is helpful to the community as well. 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
Silverback83 Posted March 29, 2017 Author Posted March 29, 2017 @JLogan3o13 How do I do that? I cant seem to find an edit button? @spudw2k Sorry about that. I used the class instead. WinWaitActive("[Class:WindowsForms10.Window.8.app.0.33c0d9d]") Send ("{TAB}") Send ("{TAB}") ;Now We enter the area code and save Send(44) Send ("!s")
larksp Posted March 29, 2017 Posted March 29, 2017 not sure if you can target the "input box where ever the 44 is going" but if you can try ControlSend I find if your doing multiple things or the pc bit slow then the "send tab" might not sent it to the right place
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