Sign in to follow this  
Followers 0
CassidyHunt

Selecting Correct Values

3 posts in this topic

I am trying to make a script that will setup an ODBC connection on any XP machine. I tried using the Script Writer as a simple method but no ones windows are in the same location. So I am down to using the Run('c:\windows\system32\odbcad32.exe') then using the alt space m left then move the mouse to position the window. This allows me to put the window in the same location everytime. The final issue I am having is I click on add and have to pick the correct ODBC driver from the list. Everyones is different and I can't see in the Windows Script Info program anything I can use to select the correct driver.

Long story short I think I might be going about it wrong and need some direction to the right path.

Thanks

Cassidy

Share this post


Link to post
Share on other sites



I am trying to make a script that will setup an ODBC connection on any XP machine. I tried using the Script Writer as a simple method but no ones windows are in the same location. So I am down to using the Run('c:\windows\system32\odbcad32.exe') then using the alt space m left then move the mouse to position the window. This allows me to put the window in the same location everytime. The final issue I am having is I click on add and have to pick the correct ODBC driver from the list. Everyones is different and I can't see in the Windows Script Info program anything I can use to select the correct driver.

Long story short I think I might be going about it wrong and need some direction to the right path.

Thanks

Cassidy

I figured this out myself. Instead of trying to do it through the interface I did it via the registry and adding the appropriate keys. However this still brings up the question how do you ensure your selection in a list or drop down box on a windows form?

Share this post


Link to post
Share on other sites

I figured this out myself. Instead of trying to do it through the interface I did it via the registry and adding the appropriate keys. However this still brings up the question how do you ensure your selection in a list or drop down box on a windows form?

It's probably just a combo control. Have you used AutoIt's Window Info tool on it yet to get window and control ID info yet? Look at all the examples in the helpfile for _GuiCtrlCombo*.

On your earlier window position problem, by changing the option for "MouseCoordMode" to either 0 or 1, you can use coordinates that will be relative to the window regardless of where it is on the desktop.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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