Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Windows API for Radio Button

This code clicks a radio option button and the form appears to update, but the program I'm sending the message to doesn't respond as though the selection has changed:

FHandle = IntPtr.Zero
Do While FHandle - IntPtr.Zero
FHandle = FindWindow("UIW_WINDOW", "Food Usage Full Report")
System.Threading.Thread.Sleep(100)
Loop
FHandle = FindWindow("UIW_WINDOW", Food Usage Full Report")
hOne = FindWindowEx(FHandle, IntPtr.Zero, "CLIENT", "07/14/2008")
SendNotifyMessage(hOne, WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero)
SendNotifyMessage(hOne, WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero)



Sign In or Register to comment.