Sign in to follow this  
Followers 0
JacobSerraf

Radio Button with unknown Style

4 posts in this topic

Hi, 

I'm trying to get the state of a radio button (check box) with the following attributes (got by AutoIt Window Info:

ClassNameNN : Button60

Style : 0x50000000

The app I'm trying to acess is written in WinDev.

I spent hours to find this but with no success.

As this style is not in the list of Constants, I cannot get the status of the check box.

Is there a way to get the state of the checkbox anyway ?

Thanks a lot for your help.

Jacob

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

What I have you tried so far? Take a look at the ControlCommand function.

Does the style change when it's checked/unchecked?

The style showed is a byte addition of all the styles of the radio so it's normal you haven't found it in the constants.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

With ControlCommand function, there are only the "Check" function that works, the "IsChecked" function doesn't work.

When check/uncheck it, the style remain the same 0x50000000.

I've tested many other functions, like _GUICtrlButton_GetCheck, with no success.

Thanks for your time.

 

Jacob

Share this post


Link to post
Share on other sites

If no one gives a reliable answer you can still use the PixelGetColor function to check if the radio is checked or not but is has some disadvantages like the window must be visible and the color must be the same on all the computers your program is running.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

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