Jaoe Posted July 12, 2024 Posted July 12, 2024 Hello guys, Could you please help me? I am very new to autoit, and been trying to find a solution for a few days and could not find anything.😐 We have a script which connects through SQL Developer and uses "TAB" to switch between fields and writes the values. There was a new version of the product and it looks the same but the buttons are behaving a bit differently. We have a problem with the last field in the picture "Service name". Before: Jumped to service name and marked it, tabbed and wrote the service name After: Jumps to the grey field and does not write anything (it cant be written when not clicked) My thoughts: I was trying to use the au3info, but cant see anything useful when hovering over the window. I was thinking of a mouse click with coordinates, though I read when multiple users use this, it can be mis clicking elsewhere I tried to use buttons but they should be visible in the au3info I guess. I have attached the code that was handling the logic before and the SQL connection window. Anyone any ideas please? Thanks a lot.
donnyh13 Posted July 12, 2024 Posted July 12, 2024 Can't add much for help, but you could try Control Viewer, it picks up some things AU3 info misses for buttons etc. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
Solution ioa747 Posted July 12, 2024 Solution Posted July 12, 2024 in the photo you sent us, I see an underlined letter in each word. E.G. Username, Password, SID, Service name, etc. This means that with alt and U it goes to the Username, with alt and P it goes to the password, etc. Try to find the keyboard navigation logic first, and then try it with the script good luck donnyh13 1 I know that I know nothing
Jaoe Posted July 15, 2024 Author Posted July 15, 2024 Thanks @ioa747this really worked perfectly. This way I can shorten the whole script: so this is how the needed part looks now, if anyone after me would be also curious: If (StringLen($TargetSID) = 0) Then Send("{TAB}") Sleep(100) Send("!e") Sleep(1000) Send("{TAB}") Send("{TAB}") Send($TargetServiceName) @donnyh13 thanks for the recommendation, will be sure useful later on. ioa747 and donnyh13 2
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