gmc2 Posted July 23, 2015 Share Posted July 23, 2015 How could i put auto focus straight on input box?? Can't find it out<form id=''form1''> <label for="form.text">Numéro de téléphone :</label> <div > <input id="formtext" name="text" type="text" value="" maxlength="50"/> </div></form> Link to comment Share on other sites More sharing options...
tweakster2010 Posted July 23, 2015 Share Posted July 23, 2015 are you wanting to set focus or auto populate data into the form? If setting focus I imagine it would be ControlFocus. If you want to autofill it would be ControlSend. Examples in the help file definitely are very great spot and customizable on what you are going for Link to comment Share on other sites More sharing options...
gmc2 Posted July 23, 2015 Author Share Posted July 23, 2015 could you give me exemple with my form, bcs i tried and i cannot get focus work on the input name text. It's on a website my browser is google chrome <form id=''form1''> <label for="form.text">Numéro de téléphone :</label> <div > <input id="formtext" name="text" type="text" value="" maxlength="50"/> </div></form> Link to comment Share on other sites More sharing options...
jguinch Posted July 23, 2015 Share Posted July 23, 2015 It should be easier with Internet Explorer, using the IE UDF...A mon avis.... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
gmc2 Posted July 27, 2015 Author Share Posted July 27, 2015 no way i can get the focus work, even with IE UDF. Everything else is fine, but it doesnt focus on the inputbox, Could you show me a fonctionnal exemple with code posted earlier please? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 27, 2015 Moderators Share Posted July 27, 2015 You share all of 6 lines of HTML from the webpage, but want a functional example of code? How about:Posting your code, so we can see the "everything else is fine" bits.Posting at least the web page so we can see what you're seeing.Posting a screenshot if you can't do either of the above. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
gmc2 Posted July 27, 2015 Author Share Posted July 27, 2015 #include <IE.au3> $o_IE = _IECreate ()_IENavigate ($o_IE, "http://127.0.0.1/autoit/focusTest") ; there is no name on the form, just ID form1$o_SearchForm = _IEFormGetObjByName ($o_IE, "")$o_Keywords = _IEFormElementGetObjByName ($o_SearchForm, "text")_IEFormElementSetValue ($o_Keywords, "Allo") 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