Sign in to follow this  
Followers 0
yutt

Trouble Automating Application

2 posts in this topic

#1 ·  Posted (edited)

I am having trouble creating a script to automate some processes with the WoW Model Viewer (requires World of Warcraft to be installed, unfortunately).

Basically, what I am trying to do at the moment is simply expand and selection trees in the "File List" view on the left. According to the "Active Window Info" tool the info I need is:

Control ID: 2006

ClassNameNN: SysTreeView321

I've wrote a very brief script to attempt to automate this.

run("wowmodelview.exe")
winwaitactive("World of Warcraft® Model Viewer v0.47d","")
ControlFocus ("World of Warcraft® Model Viewer v0.47d","","SysTreeView321")
ControlClick ("World of Warcraft® Model Viewer v0.47d","","SysTreeView321")
ControlSend("World of Warcraft® Model Viewer v0.47d","","SysTreeView321","{+}")

What happens when running it is, the WoW Model Viewer loads and I hear the Windows XP "Default Beep" sound. Nothing is ever selected and the tree does not expand.

Any help would be greatly appreciated! :think:

Edited by yutt

It is a waste of energy to be angry with a man who behaves badly, just as it is to be angry with a car that won't go. - Bertrand Russell

Share this post


Link to post
Share on other sites



It took me all of a minute to suddenly realize how to do this myself. The working code is:

run("wowmodelview.exe")
winwaitactive("World of Warcraft® Model Viewer v0.47d","")
ControlFocus ("World of Warcraft® Model Viewer v0.47d","","SysTreeView321")
ControlClick ("World of Warcraft® Model Viewer v0.47d","","SysTreeView321")
ControlSend("World of Warcraft® Model Viewer v0.47d","","SysTreeView321","{HOME}")
ControlSend("World of Warcraft® Model Viewer v0.47d","","SysTreeView321","{NUMPADADD}")

:think:


It is a waste of energy to be angry with a man who behaves badly, just as it is to be angry with a car that won't go. - Bertrand Russell

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