yutt Posted April 15, 2006 Share Posted April 15, 2006 (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: 2006ClassNameNN: SysTreeView321I'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! Edited April 15, 2006 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 Link to comment Share on other sites More sharing options...
yutt Posted April 15, 2006 Author Share Posted April 15, 2006 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}") 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 Link to comment Share on other sites More sharing options...
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