Code: Select all
SendInput {Enter}
Sleep 200
SendInput {Tab 1}
SendInput 9003
Sleep 500
SendInput {Tab 3}
Sleep 200
Send {Click,493,456}
Sleep 200
Send {Click,297,85}
Sleep 200
Code: Select all
SendInput {Enter}
Sleep 200
SendInput {Tab 1}
SendInput 9003
Sleep 500
SendInput {Tab 3}
Sleep 200
Send {Click,493,456}
Sleep 200
Send {Click,297,85}
Sleep 200
I'm clicking on a chevron that opens another window. In the second window I have to click on elipse (...). This opens other windows where I enter data. I will read about ControlClick. I'm trying to be thick headed but what more detail could I provide that would help? I'm more than willing to provide it.mikeyww wrote: ↑06 May 2021, 11:23There could be other ways to find your target more reliably using ControlClick or other information about the target or the target window. It depends on the specific details.
Thank you again for the reply. The application I'm working in is Windows based. We will have multiple (>50) computers using it once I feel like I've done my due diligence testing it. We all use pretty much the same laptop and some OS, Win10. Most of the script contains tabs and down arrow key strokes. These 2 objects will not get the focus so I can use a keystroke. I have to use the mouse coordinates and the left click.mikeyww wrote: ↑06 May 2021, 11:44Running Window Spy will show you control names. If you have just two computers, then an alternative is providing two sets of coordinates. Another option is an ImageSearch. In some cases, a formula might work, such as working with a percentage of the window width. If it is in a Web browser, then there are other methods with JavaScript, Chrome.ahk, etc.; searching the forum will show examples. An ImageSearch could probably find a chevron easily-- though it's also possible that the two computers have two different displays of this chevron. You would need to test.
Thank you for all your help! it is much appreciated.