LinuxKommy
Technical User
I'm writing a program that ultimately will dump data into our old DB server (COBOL) using a 3rd-party ODBC driver. I have absolutely no problem with the SQL statements, but the server requires that you log on EVERY time. it pops up a window titled "GRANT and REVOKE Security," and there is no way to bypass it by specifying the username and password in the connection string. One goofy way I considered is a vb script that waits five seconds, then uses SendKeys() to write the Username and password and hit enter. This works ok, but if you log in again soon after a query, it sometimes skips the password. I need a way to be sure that the window is actually present.
I thought about if there was a way to search through all open windows to look for that specific window title and then execute the script. Problem is, I'm not sure how to search the window titles, or if this is even a good idea. if anyone has other suggestions, i'd LOVE to hear them!
thanks,
DHG
I thought about if there was a way to search through all open windows to look for that specific window title and then execute the script. Problem is, I'm not sure how to search the window titles, or if this is even a good idea. if anyone has other suggestions, i'd LOVE to hear them!
thanks,
DHG