how select a radio button
how select a radio button
Hello.
how can I select the option below using ahk? (Deposito em continuacao)
how can I select the option below using ahk? (Deposito em continuacao)
- JoeWinograd
- Posts: 2189
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: how select a radio button
It depends on that particular form, as it is possible to build forms that behave however you want, but in most cases, the arrow keys (Left, Right, Up, Down) will do it. With just two radio buttons, I suspect any of these will work:
After expermenting and finding one of those that works (likely, they all will), do this to press the Confirmar button:
Regards, Joe
Code: Select all
Send {Left}
Send {Right}
Send {Up}
Send {Down}
Code: Select all
Send {Enter}
-
- Posts: 188
- Joined: 17 Jan 2019, 10:13
Re: how select a radio button
Or you could, of course, use PixelSearch or ImageSearch.
Re: how select a radio button
I will try the PixelSearch.
Joe, its not possible use the arrow keys. in that windows, the focus doesn't passes by radio. only by buttons (X, Confirmar)
Joe, its not possible use the arrow keys. in that windows, the focus doesn't passes by radio. only by buttons (X, Confirmar)
- JoeWinograd
- Posts: 2189
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: how select a radio button
Wow! Hard to believe that you can't get focus to the radio buttons. Make sure that the dialog Window is active via a WinActivate command before you send the arrow key. Forgetting AutoHotkey for a moment, what happens when you click the title bar and then the arrow keys — does the radio button selection change?
Re: how select a radio button
I think image search would be the best approach for this one, make sure you select your top left corner coordinates of the image within the actual radio button so that when you use mouse move to the variables at which it finds the image it clicks just those, but image search aside, given that the box is always in the same coordinate you can just use the same x,y coordinates for the mouse move button relative to the window by default and that should do it!
Les medecins choisissent viagrasansordonnancefr.com sans danger pour la sante
Re: how select a radio button
joe, I believe that the problem is on site (poorly built)
it only focus if I use the mouse
https www.dropbox.com /s/5zuod4afacf39un/focus.wmv?dl=0 Broken Link for safety
that video show how happens
it only focus if I use the mouse
https www.dropbox.com /s/5zuod4afacf39un/focus.wmv?dl=0 Broken Link for safety
that video show how happens
Re: how select a radio button
Vaklev, how can I use the Imagesearch to focus?
the line below doesn't works
Edit: I put the CoordMode, but it seems the script select always window with SciTE4, not with the browser (I use two monitors)
the line below doesn't works
Code: Select all
Click, 366, 359
Edit: I put the CoordMode, but it seems the script select always window with SciTE4, not with the browser (I use two monitors)