ckelsoe Posted September 10, 2013 Share Posted September 10, 2013 Hi, I am trying to see if the checkbox in an IE form is checked. I have assigned the checkbox name to a variable $oCommissions = _IEFormElementGetObjByName($oForm, "Commissions") Then I run this code which always returns false" msgbox(0,"OC Status", _IsChecked($oCommissions)) I found the function _IsChecked on the AutoIt Wiki. Here it is for reference: Func _IsChecked(Const $iControlID) Return BitAND(GUICtrlRead($iControlID), $GUI_CHECKED) = $GUI_CHECKED EndFunc ;==>_IsChecked Your help in clearing up my misunderstanding of this function or my code is appreciated. Link to comment Share on other sites More sharing options...
Solution Valuater Posted September 10, 2013 Solution Share Posted September 10, 2013 This is for an Autoit GUI-Control _IsChecked() You need to use... _IEFormElementCheckBoxSelect() See the help file for use Almost all the commands you want to use starts with _IE 8) ckelsoe 1 Link to comment Share on other sites More sharing options...
ckelsoe Posted September 10, 2013 Author Share Posted September 10, 2013 Duh - that was obvious. Thank You! If Not $oCommissions.checked Then $oCommissions.checked = True endif Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now