AlecKieu Posted June 4, 2009 Share Posted June 4, 2009 expandcollapse popup<tr> <td align=right> birth date </td> <td> <SELECT name="birthmonth" id="birthmonth"> <OPTION value="-1">Month <OPTION SELECTED value="0">01 <OPTION value="1">02 <OPTION value="2">03 <OPTION value="3">04 <OPTION value="4">05 <OPTION value="5">06 <OPTION value="6">07 <OPTION value="7">08 <OPTION value="8">09 <OPTION value="9">10 <OPTION value="10">11 <OPTION value="11">12 </SELECT> <SELECT name="birthyear" id="birthyear"> <OPTION value="-1">Year <OPTION SELECTED value="1980">1980 <OPTION value="1981">1981 <OPTION value="1982">1982 <OPTION value="1983">1983 <OPTION value="1984">1984 <OPTION value="1985">1985 <OPTION value="1986">1986 <OPTION value="1987">1987 <OPTION value="1988">1988 <OPTION value="1999">1999 <OPTION value="2000">2000 <OPTION value="2001">2001 </SELECT> </td> </tr> This is my code for the form select: $oBirthMonth = _IEFormElementGetObjByName($oForm, "birthmonth") _IEFormElementOptionselect($oBirthMonth , $pBirthMonth ) $oBirthYear = _IEFormElementGetObjByName($oForm, "birthyear") _IEFormElementOptionselect($oBirthYear , $pBirthYear )It's not working. Anyone here can help me. Thank! Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 4, 2009 Share Posted June 4, 2009 expandcollapse popup<tr> <td align=right> birth date </td> <td> <SELECT name="birthmonth" id="birthmonth"> <OPTION value="-1">Month <OPTION SELECTED value="0">01 <OPTION value="1">02 <OPTION value="2">03 <OPTION value="3">04 <OPTION value="4">05 <OPTION value="5">06 <OPTION value="6">07 <OPTION value="7">08 <OPTION value="8">09 <OPTION value="9">10 <OPTION value="10">11 <OPTION value="11">12 </SELECT> <SELECT name="birthyear" id="birthyear"> <OPTION value="-1">Year <OPTION SELECTED value="1980">1980 <OPTION value="1981">1981 <OPTION value="1982">1982 <OPTION value="1983">1983 <OPTION value="1984">1984 <OPTION value="1985">1985 <OPTION value="1986">1986 <OPTION value="1987">1987 <OPTION value="1988">1988 <OPTION value="1999">1999 <OPTION value="2000">2000 <OPTION value="2001">2001 </SELECT> </td> </tr> This is my code for the form select: $oBirthMonth = _IEFormElementGetObjByName($oForm, "birthmonth") _IEFormElementOptionselect($oBirthMonth , $pBirthMonth ) $oBirthYear = _IEFormElementGetObjByName($oForm, "birthyear") _IEFormElementOptionselect($oBirthYear , $pBirthYear ) It's not working. Anyone here can help me. Thank! What's not working? Getting the object reference, or setting the value? Exactly what error do you see in the console if you put _IEErrorHandlerRegister() at the top and run it from SciTE? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
AlecKieu Posted June 4, 2009 Author Share Posted June 4, 2009 This is a form with select option.I have a list of text file sort like thisID| Name | Birth Date | AddressEX: 10001 | Kathy Brown | 09 | 09 | 1980 | 123 Hawaii beach....And I want to make an autoIT that automatic update the data.I have tried several times with another $oSelect but the birth date not change Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 4, 2009 Share Posted June 4, 2009 This is a form with select option.I have a list of text file sort like thisID| Name | Birth Date | AddressEX: 10001 | Kathy Brown | 09 | 09 | 1980 | 123 Hawaii beach....And I want to make an autoIT that automatic update the data.I have tried several times with another $oSelect but the birth date not change You didn't answer the question. I'll try again:What's not working? Getting the object reference, or setting the value? Exactly what error do you see in the console if you put _IEErrorHandlerRegister() at the top and run it from SciTE? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
AlecKieu Posted June 5, 2009 Author Share Posted June 5, 2009 Hi bro, It's not setting the value, Other field like text box it working fine. Link to comment Share on other sites More sharing options...
DaleHohm Posted June 5, 2009 Share Posted June 5, 2009 If you don't know what the SciTe console is, please say so. Otherwise do what is requested if you expect to get help. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
AlecKieu Posted June 5, 2009 Author Share Posted June 5, 2009 I know about it, but there is no error message.It's not setting the value in select box. This is my code to make change in select box$oBirthMonth = _IEFormElementGetObjByName($oForm, "birthmonth")_IEFormElementOptionselect($oBirthMonth , $pBirthMonth )$oBirthYear = _IEFormElementGetObjByName($oForm, "birthyear")_IEFormElementOptionselect($oBirthYear , $pBirthYear )Please can you help by make an html form like this and try for me.with: IDNameBirth DateAddress........Thank you! Link to comment Share on other sites More sharing options...
AlecKieu Posted June 6, 2009 Author Share Posted June 6, 2009 (edited) >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\TooL\Dest\FormUpdate.au3" >Exit code: 0 Time: 18054.200 Edited June 6, 2009 by AlecKieu Link to comment Share on other sites More sharing options...
DaleHohm Posted June 6, 2009 Share Posted June 6, 2009 If you want to see those functions work, run (don't just read) the examples in the helpfile. Then figure out what makes your code different. You should create your own stand-alone example to test with and if you continue to have trouble it will be something you can post here for more help. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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