Hy experts
I need a little help here. Can anybody tell me how to select
a radio button from another program knowing the name,id or text of the radio button.
I want to automate internet explorer by checking the "First Name" radio button then pressing the "Send" button.
This is the code I'm using to get the focus to internet explorer:
Any help would be appreciated.
Thank you in advance.
I need a little help here. Can anybody tell me how to select
a radio button from another program knowing the name,id or text of the radio button.
I want to automate internet explorer by checking the "First Name" radio button then pressing the "Send" button.
This is the code I'm using to get the focus to internet explorer:
Code:
using System; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; public class getWindow { [DllImport("user32.dll")] public static extern IntPtr FindWindow(string IpClassName, string IpWindowName); [DllImport("user32.dll")] public static extern int SetForegroundWindow(IntPtr hWnd); public static void Main(string[] args) { IntPtr iHandle = FindWindow(null," Details - Windows Internet Explorer"); SetForegroundWindow(iHandle); } }
Thank you in advance.
Comment