Sign in to follow this  
Followers 0
krissjsu

Autoit scripts dont work well in vmware environment

3 posts in this topic

Hi all,

I created several autoit scripts on windows xp and all of them run perfectly under normal windows environment. When i use the .exe files under a vmware environment all the autoit scripts work only partially well. i.e. their behavior is unpredictable. Some scripts play well initially some dont play at all.

The behavior in all the scripts in vmware follow the same pattern. i.e. they crash at the same point and no random behavior is seen. for example in the script shown below, the mousclick on step 9 seems to happen but the installation does not move forward, after about 25 seconds step 12 executes and the script stops executing. The installer runs using java runtime environment so normal windows controls do not exist, but this doesn't seem to the problem since there are other scripts which have windows controls but even they throw up some issues in vmware.

1. run("installer.exe")

2. WinWaitActive("User Experience Pack - InstallShield Wizard")

3. Send("!n") ; next

4. WinWaitActive("User Experience Pack - InstallShield Wizard")

5. Sleep(5000)

6. MouseClick("left",483,606,1) ; accept

7. MouseClick("left",741,692,1) ; next

8. WinWaitActive("User Experience Pack - InstallShield Wizard")

9. MouseClick("left",723,691,1) ; install ----- STOPS HERE

10. WinWaitActive("User Experience Pack - InstallShield Wizard")

11. Sleep(25000)

12. MouseClick("left",869,696,1) ; finish

13. WinWaitActive("User Experience Pack - InstallShield Wizard")

14. MouseClick("left",483,624,1) ; No reinstall

15. MouseClick("left",869,696,1) ; finish

The vmware environment which i am running is

vmware server: GSX server

Vmware base os: Ubuntu linux

vmware guest os: Windows XP

Share this post


Link to post
Share on other sites



I think there is a mouse click on minimized window function lurking somewhere that will help with VMWare too I would think.

Share this post


Link to post
Share on other sites

I have also seen this behaviour and have had to stop testing some of my scripts (ones using winwaitactive, winexists, etc) on virtual. Same thing as above, they all run flawlessly outside of VMWare workstation.

John

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