Sign in to follow this  
Followers 0
flammedemon

autoit and windows 8

3 posts in this topic

#1 ·  Posted (edited)

Hello,

I create a small script to automatically install spybot beta 2 (you will find the code below).

I did my tests on my Windows 7 platform 64bit SP1 with UAC disabled and everything works perfectly.

I wanted to do my tests on my windows platerforme 8 RC 64bit with UAC disabled but nothing n'à do what the script does not proceed.

I noticed that if "run as administrator" it was not a concern.

I do not understand why its not working on my second platform while it is the same script.

You know or could come to the problem?

Link download spybot 2 beta : spybot2

Run (spybot2beta.exe)

; Welcome windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Welcome to the Spybot - Search & Destroy Setup Wizard")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Welcome to the Spybot - Search & Destroy Setup Wizard", "TNewButton1")

; Donation windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Donations welcome!")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Donations welcome!", "TNewButton2")
; Installation & usage mode windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Installation & Usage Mode")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Installation & Usage Mode", "TNewButton2")

; License Agreement windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "License Agreement")
ControlClick ( "Setup - Spybot - Search & Destroy" , "License Agreement", "TNewRadioButton1")
Sleep(100)
ControlClick ( "Setup - Spybot - Search & Destroy" , "License Agreement", "TNewButton2")
; Information windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Information")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Information", "TNewButton2")

; Ready to Install windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Ready to Install")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Ready to Install", "TNewButton2")

; Finish Installation windows
WinWaitActive ( "Setup - Spybot - Search & Destroy" , "Completing the Spybot - Search & Destroy Setup Wizard")
ControlClick ( "Setup - Spybot - Search & Destroy" , "Completing the Spybot - Search & Destroy Setup Wizard", "TNewCheckListBox1")
Sleep(100)
ControlClick ( "Setup - Spybot - Search & Destroy" , "Completing the Spybot - Search & Destroy Setup Wizard", "TNewButton2")

My version autoit : v3.3.8.1

If you have further questions do not hesitate!

PS: Sorry for my English very bad

Edited by flammedemon

Share this post


Link to post
Share on other sites



I shouldn't have been surprised to find this topic here, since I came by to research your other topic...

That would be to point out another user here had encountered some problems with a previously leaked build:

However, I have not been having any problems with my scripts in Windows 8 yet. A difference may be that I do not use any automation type methods like you do... I have not tested in RTM yet since I can't download it right now. :

Did you try to run the Au3info tool on Windows 8 and make sure it can read the dialog controls the same way? You can also try attaching Process Monitor to your app to see where it may be failing...

Share this post


Link to post
Share on other sites

I found a temporary solution time executed automation scripts.

In fact I have turned off UAC in Windows 8 like this: http://www.groovypost.com/howto/windows-8-turn-off-user-account-control/

But this method does not suffice longer to launch scripts must necessarily go to the registry to put the value 0 to the registry key "EnableLUA" (HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion Policies System)

This method is temporary as it disables Metro applications in their entirety. At the end it is necessary to put a value to the key named above.

ps: to each key change must restart the pc

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  
Followers 0