1.

Solve : Clicking a radiobutton (checkbox) froma program?

Answer»

im trying to automate a program but i get stuck at a check box screen. is there anyway to click a certain button using bat SCRIPT or vbs? dont know if that code below will help but thats what the error file is saying..button 61 is the ONE i want to choose.

Code: [Select]InitApplication: Class Name = src5911
hWnd = 1486
Creating button Run SRC with RadioButton ID 60
Creating button Process Files with RadioButton ID 61
Creating button Exit Program (Return to DOS) with RadioButton ID 62
default case: wParam = 61
RadioButtonClicked = 61
Get_Menu_Sel returning 1
ScriptSelection = 11

Quote from: daillest319 on June 15, 2012, 07:39:19 AM

im trying to automate a program but i get stuck at a check box screen. is there anyway to click a certain button using bat script or vbs? dont know if that code below will help but thats what the error file is saying..button 61 is the one i want to choose.

What program?

For a web based application, you can create an instance of a browser, navigate to the page and script any actions (radio buttons, check boxes, text box input etc) using VBScript. You will need to do some research into the page structure to get the control names to use in your script.

For a local Windows application you can use the VBScript sendkeys method to mimic a user at the keyboard. The script using the sendkeys method runs external to your application but becomes problematic if your application loses FOCUS or is in anyway interrupted.

You might want to try a 3rd party program like AutoIt.

Good luck.


Discussion

No Comment Found