Guest ptaylor Posted May 31, 2005 Share Posted May 31, 2005 I'm trying to write a program that will write AutoIt scripts to automate a GUI application called AutoGK... Before trying to use the DLL, I figured I would manually write a script to run through much of the process and that could serve as my "guide" to writing my progam.. Should be simple, right? Well, I've been at it now for a few hours and all I can manage to do it get the app started... After that, I get the AutoIt icon in the bottom right corner of the screen. When I click it, it tells me that AutoIt is paused... I try to uncheck it, but nothing happens.. Anyhow, here's my script: Run("C:\Program Files\AutoGK\AutoGK.exe","C:\Program Files\AutoGK") Sleep(1000) WinWaitActive("len0x presents: Auto Gordian Knot","",15) Sleep(1000) WinActivate("len0x presents: Auto Gordian Knot") ControlClick("Auto Gordian Knot", "", "TGroupButton4") ControlClick("Auto Gordian Knot", "", "TGroupBox3") WinWait("Open") Send("D:\Sage\AmericanIdol-2994317-0.mpg") I've tried things many different ways.. From trying to do mouse clicks based on active window coordinates and now I'm trying to use ControlClicks, but nothing seems to be working. After the app starts up, the ControlClick's never seem to happen, so I never get the "Open" window up to send in the filename... Is there something that I'm doing wrong in the above??? Paul Link to comment Share on other sites More sharing options...
therion Posted May 31, 2005 Share Posted May 31, 2005 (edited) try this.dont forget to check if the app uses shortcut keys.The shortcut keys to open the file source is Ctrl+o.If you click on the about box in auto gordian knot you can see the shortcuts it uses. Run("C:\Program Files\AutoGK\AutoGK.exe","C:\Program Files\AutoGK") Sleep(1000) WinWaitActive("len0x presents: Auto Gordian Knot","",15) Sleep(1000) send("^o");sends the keys Ctrl+o which opens the source file dialog. sleep(1000) Send("D:\Sage\AmericanIdol-2994317-0.mpg") send("{ENTER}") Edited May 31, 2005 by therion Link to comment Share on other sites More sharing options...
Guest ptaylor Posted June 2, 2005 Share Posted June 2, 2005 try this.dont forget to check if the app uses shortcut keys.The shortcut keys to open the file source is Ctrl+o.If you click on the about box in auto gordian knot you can see the shortcuts it uses.Run("C:\Program Files\AutoGK\AutoGK.exe","C:\Program Files\AutoGK") Sleep(1000) WinWaitActive("len0x presents: Auto Gordian Knot","",15) Sleep(1000) send("^o");sends the keys Ctrl+o which opens the source file dialog. sleep(1000) Send("D:\Sage\AmericanIdol-2994317-0.mpg") send("{ENTER}")<{POST_SNAPBACK}>Thanks - This does work, but doesn't address the problems that I'm having with it... AutoGK does not expose many functions to the keyboard... There are really two that are missing: 1. To change between DVD and file mode, and two, to change the quality setting off of the default 2 CD size... I did find the rest of the shortcuts (in the About window), but there doesn't appear to be a way to change thos items without a mouse click....Any further ideas on getting AutoIt to work with AutoGK?Paul 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