Jump to content
Sign in to follow this  
CtownShady

winwait

Recommended Posts

CtownShady

i run a driver and use winwait to make sure it sees the box. This is a auto deployment program so everything works on its own. I have windows installer drivers and bios i am trying to auto deyploy. The installer and bios work great its just i cant get the software to recognize that the drive is running. It wont click the button if i use the mouse and wont work when i try the keyboard. Please help need some more ideas on ways around this problem I JUST HIT a big wall.

Share this post


Link to post
Share on other sites
GEOSoft

Open the window, Get the window and control informatiom using the AutoIt window information tool

Usually "C:\Program Files\AutoIt3\Au3Info.exe"

Click on the Summary tab and post that information.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
CtownShady

>>>>Window<<<<<

Title: Chip Set: Intel Chipset Software Install... Driver

Class: xcdMessageBoxClass

Posistion 261, 254

Size 503, 234

Style 0x14c80000

Exstyle 0x00000101

handle 0x002100d6

>>>>Control<<<<

class xcdLableClass

instance 1

classnameNN xcdLableClass1

Advanced(Class) [CLASS:xcdLabelClass; INSTANCE:1]

ID 100

Text Chip Set: Intel Chipset Software Install... Driver Version A09

Position 72, 8

Size 417, 143

ControlClick Coords 37, 80

style 0x50000000

exstyle 0x00000004

handle 0x001c00c2

>>>>mouse<<<<

position 373, 371

cursor id 03

color 0xece9d8

>>>>Visible Txt<<<<

&Continue

&Exit

Share this post


Link to post
Share on other sites
CtownShady

This is the function i am working with currently if this gives you an idea of how things are working

Func GX280Chipset()

Run("C:\temp\stuff\R79695\R79695.exe")

; WinList()

Winexists("Chip Set: Intel Chipset Software Install... Driver","Chip Set: Intel Chip")

WinExists("Chip Set: Intel Chipset Software Install... Driver","Chip Set: Intel Chip")

WinWait("Chip Set","Chip Set")

If Not WinActive("Chip Set: Intel Chipset Software Install... Driver","Chip Set: Intel Chip") Then WinActivate("Chip Set: Intel Chipset Software Install... Driver","Chip Set: Intel Chip")

WinWaitActive("Chip Set: Intel Chipset Software Install... Driver","Chip Set: Intel Chip",10)

MsgBox(1,"debug2","2")

sleep(500)

MouseMove(377,200)

MouseDown("left")

MouseUp("left")

;WinWait("Chip Set: Intel Chipset Software Install... Driver","Select the folder wh")

;If Not WinActive("Chip Set: Intel Chipset Software Install... Driver","Select the folder wh") Then WinActivate("Chip Set: Intel Chipset Software Install... Driver","Select the folder wh")

;WinWaitActive("Chip Set: Intel Chipset Software Install... Driver","Select the folder wh")

sleep(500)

MouseMove(263,131)

MouseDown("left")

MouseUp("left")

;WinWait("Chip Set: Intel Chipset Software Install... Driver","Folder 'C:\dell\driv")

;If Not WinActive("Chip Set: Intel Chipset Software Install... Driver","Folder 'C:\dell\driv") Then WinActivate("Chip Set: Intel Chipset Software Install... Driver","Folder 'C:\dell\driv")

;WinWaitActive("Chip Set: Intel Chipset Software Install... Driver","Folder 'C:\dell\driv")

sleep(500)

MouseMove(221,121)

MouseDown("left")

MouseUp("left")

;WinWait("Chip Set: Intel Chipset Software Install... Driver","All files were succe")

;If Not WinActive("Chip Set: Intel Chipset Software Install... Driver","All files were succe") Then WinActivate("Chip Set: Intel Chipset Software Install... Driver","All files were succe")

;WinWaitActive("Chip Set: Intel Chipset Software Install... Driver","All files were succe")

sleep(500)

MouseMove(278,123)

MouseDown("left")

MouseUp("left")

;WinWait("Setup","Welcome to the Intel")

;If Not WinActive("Setup","Welcome to the Intel") Then WinActivate("Setup","Welcome to the Intel")

;WinWaitActive("Setup","Welcome to the Intel")

sleep(500)

MouseMove(363,354)

MouseDown("left")

MouseUp("left")

;WinWait("Setup","Press the PAGE DOWN ")

;If Not WinActive("Setup","Press the PAGE DOWN ") Then WinActivate("Setup","Press the PAGE DOWN ")

;WinWaitActive("Setup","Press the PAGE DOWN ")

MouseDown("left")

MouseUp("left")

;WinWait("Setup","Readme Information")

;If Not WinActive("Setup","Readme Information") Then WinActivate("Setup","Readme Information")

;WinWaitActive("Setup","Readme Information")

sleep(500)

MouseMove(386,363)

MouseDown("left")

MouseUp("left")

;WinWait("Setup","Yes, I want to resta")

;If Not WinActive("Setup","Yes, I want to resta") Then WinActivate("Setup","Yes, I want to resta")

;WinWaitActive("Setup","Yes, I want to resta")

sleep(500)

MouseMove(287,206)

MouseDown("left")

MouseUp("left")

sleep(500)

MouseMove(377,367)

MouseDown("left")

MouseUp("left")

EndFunc

Share this post


Link to post
Share on other sites
GEOSoft

I'll have time in about an hour to look at this but for openers add

Opt("WinTitleMatchMode", 2) to the top of your script then change all of the title references to "Intel Chipset"

Also the way you used WinExists() is doing nothing for you. You would generaly use that in a conditional staement like

If WinExists("Title") Then

;; Do something

EndIf

Now here's the good news. I am very familiar with that particular file and I was working with it yesterday. I'll pull it from my Dell driver disk to double check but I think you can avoid all of this with

$sFile = "C:\temp\stuff\R79695\R79695.exe"
If FileExists($sFile) Then ShellExecuteWait($sFile, "/silent")

Edit: Sorry, for that installer the switch is probably just /s not /silent

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
CtownShady

Thanks so much for the good direction im off the clock now so i am going to pick up tomorrow. ill keep you posted if your interested. PS if you have any other ideas you would liek to share that would be great. thanks again

o you might find this funny i was messin around with my program and forgot to put a sleep in the program. It keep looping reinstalling the chipset and crashed my test pc. haha i thought it was funny now i must reinstall

Edited by CtownShady

Share this post


Link to post
Share on other sites
GEOSoft

Good luck with that. Also are you using the Self-extracting Zip version of this?

If you want to accept the defaults all the way, all you have to do is use Send("{Enter}") for each window.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


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
Sign in to follow this  

×