mLipok Posted September 18, 2013 Share Posted September 18, 2013 (edited) change this Local $oUsername = _IEFormElementGetObjByName($oForm, "User") ConsoleWrite('IsObj($oUsername) = ' & IsObj($oUsername) & ' ObjName = ' & String(ObjName($oUsername)) & ' $oUsername.type = ' & $oUsername.type & @CRLF) Local $oPassword = _IEFormElementGetObjByName($oForm, 'Password') ConsoleWrite('IsObj($oPassword) = ' & IsObj($oPassword) & ' ObjName = ' & String(ObjName($oPassword)) & ' $oPassword.type = ' & $oPassword.type & @CRLF) _IEFormElementSetValue($oUsername, $Username, 1) _IEFormElementSetValue($oPassword, $Password, 1) to this: Local $oUsername = _IEFormElementGetObjByName($oForm, "User") ConsoleWrite('IsObj($oUsername) = ' & IsObj($oUsername) & ' ObjName = ' & String(ObjName($oUsername)) & ' $oUsername.type = ' & $oUsername.type & @CRLF) ConsoleWrite('$oUsername : outerhtml:' & @CRLF & _IEPropertyGet($oUsername, 'Outerhtml') & @CRLF) Local $oPassword = _IEFormElementGetObjByName($oForm, 'Password') ConsoleWrite('IsObj($oPassword) = ' & IsObj($oPassword) & ' ObjName = ' & String(ObjName($oPassword)) & ' $oPassword.type = ' & $oPassword.type & @CRLF) ConsoleWrite('$oPassword : outerhtml:' & @CRLF & _IEPropertyGet($oPassword, 'Outerhtml') & @CRLF) ConsoleWrite('$oUsername : Setting Value' & @CRLF) _IEFormElementSetValue($oUsername, $Username, 1) ConsoleWrite('$oPassword : Setting Value' & @CRLF) _IEFormElementSetValue($oPassword, $Password, 1) ConsoleWrite('Setting Value: END') & @CRLF) EDIT: small correct in script EDIT: try this and of course post console output, WARNING: Be careful not to send any sensitive data Edited September 18, 2013 by mlipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 (edited) Here's the console output >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" /UserParams +>11:02:00 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>11:02:00 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 oFrame.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->11:02:26 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 26.016 Edited September 18, 2013 by Speleologist Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 (edited) I think the problem is with this: _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') look here: '?do=embed' frameborder='0' data-embedContent>> and change your scirpt from that: _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') to that: _IE_test_ImgCollection($oIE) _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') and give back an output from _IE_test_ImgCollection($oIE) Edited September 18, 2013 by mlipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 Here we go: expandcollapse popup>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" /UserParams +>12:07:51 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>12:07:51 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 oFrame.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END ! _IE_test__VersionInfo($oIE): "appcodename" = Mozilla ! _IE_test__VersionInfo($oIE): "appminorversion" = 0 ! _IE_test__VersionInfo($oIE): "appname" = Microsoft Internet Explorer ! _IE_test__VersionInfo($oIE): "appversion" = 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E) --> IE.au3 V2.4-0 Information from function _IE_VersionInfo, version V2.4-0 (Release date: 20071231) ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(4) = 20071231 "Release Date(YYYYMMDD)" ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(5) = V2.4-0 "Display Version(E.g. V2.1 - 0)" ! _IE_test__VersionInfo($oIE): @OSArch = X86 ! _IE_test__VersionInfo($oIE): @OSLang = 0409 ! _IE_test__VersionInfo($oIE): @OSType = WIN32_NT ! _IE_test__VersionInfo($oIE): @OSVersion = WIN_XP ! _IE_test__VersionInfo($oIE): @OSBuild = 2600 ! _IE_test__VersionInfo($oIE): @OSServicePack = Service Pack 3 ! _IE_test_ImgCollection: IsObj($oIE) = 1 ! _IE_test_ImgCollection: IsObj($oImgs) = 1 ! _IE_test_ImgCollection: $oImgs "Type" = DispHTMLElementCollection ! _IE_test_ImgCollection: $iImgsCount = 0 C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->12:08:01 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 10.746 This shows no images, but the action completes: The page that is loaded after clicking the image loads, but the script also exits. I tried putting in a MsgBox as the next line, but this does not display. Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 now this: _IE_test_ImgCollection($oFrame) _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 Using $oFrame (as above: expandcollapse popup>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" /UserParams +>13:08:41 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>13:08:41 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 oFrame.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END ! _IE_test__VersionInfo($oIE): "appcodename" = Mozilla ! _IE_test__VersionInfo($oIE): "appminorversion" = 0 ! _IE_test__VersionInfo($oIE): "appname" = Microsoft Internet Explorer ! _IE_test__VersionInfo($oIE): "appversion" = 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E) --> IE.au3 V2.4-0 Information from function _IE_VersionInfo, version V2.4-0 (Release date: 20071231) ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(4) = 20071231 "Release Date(YYYYMMDD)" ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(5) = V2.4-0 "Display Version(E.g. V2.1 - 0)" ! _IE_test__VersionInfo($oIE): @OSArch = X86 ! _IE_test__VersionInfo($oIE): @OSLang = 0409 ! _IE_test__VersionInfo($oIE): @OSType = WIN32_NT ! _IE_test__VersionInfo($oIE): @OSVersion = WIN_XP ! _IE_test__VersionInfo($oIE): @OSBuild = 2600 ! _IE_test__VersionInfo($oIE): @OSServicePack = Service Pack 3 ! _IE_test_ImgCollection: IsObj($oIE) = 1 ! _IE_test_ImgCollection: IsObj($oImgs) = 1 ! _IE_test_ImgCollection: $oImgs "Type" = DispHTMLElementCollection ! _IE_test_ImgCollection: $iImgsCount = 0 C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->13:08:55 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 14.463 and also $oForm expandcollapse popup>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" /UserParams +>13:10:20 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>13:10:21 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\ZenIssues\temp.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 oFrame.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END ! _IE_test__VersionInfo($oIE): "appcodename" = Mozilla ! _IE_test__VersionInfo($oIE): "appminorversion" = 0 ! _IE_test__VersionInfo($oIE): "appname" = Microsoft Internet Explorer ! _IE_test__VersionInfo($oIE): "appversion" = 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E) --> IE.au3 V2.4-0 Information from function _IE_VersionInfo, version V2.4-0 (Release date: 20071231) ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(4) = 20071231 "Release Date(YYYYMMDD)" ! _IE_test__VersionInfo($oIE): _IE_VersionInfo(5) = V2.4-0 "Display Version(E.g. V2.1 - 0)" ! _IE_test__VersionInfo($oIE): @OSArch = X86 ! _IE_test__VersionInfo($oIE): @OSLang = 0409 ! _IE_test__VersionInfo($oIE): @OSType = WIN32_NT ! _IE_test__VersionInfo($oIE): @OSVersion = WIN_XP ! _IE_test__VersionInfo($oIE): @OSBuild = 2600 ! _IE_test__VersionInfo($oIE): @OSServicePack = Service Pack 3 ! _IE_test_ImgCollection: IsObj($oIE) = 1 ! _IE_test_ImgCollection: IsObj($oImgs) = 1 ! _IE_test_ImgCollection: $oImgs "Type" = DispHTMLElementCollection ! _IE_test_ImgCollection: $iImgsCount = 0 C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->13:10:33 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 12.948 So we don't seem to see the image, but the action from clicking on it completes! Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 ok try this expandcollapse popup#include <IE.au3> #include <Array.au3> #include <File.au3> Global $aSites Global $SiteFile = '\\hccarchive02\vol1\logs\if_mig\sites.txt' Global $Username = InputBox('iFolder Server Reports', 'Please enter the iFolder admin account User name', '') Global $Password = InputBox('iFolder Server Reports', 'Please enter the password for the iFolder admin account', '', '*') _FileReadToArray($SiteFile, $aSites) For $i = 1 To $aSites[0] GetReport($aSites[$i]) ; More Stuff Next Func GetReport($Site) $oIE = _IECreate('https://ifolder.' & $Site & '.hertscc.gov.uk/iFolderServer/Admin/Reporting.htm', 0, 1, 1) _IELinkClickByText($oIE, 'Continue to this website (not recommended).') Local $oFrame = _IEFrameGetObjByName($oIE, 'MAINFRAME') ConsoleWrite('IsObj($oFrame) = ' & IsObj($oFrame) & ' ObjName = ' & String(ObjName($oFrame)) & ' Obj.type = ' & $Obj.type & @CRLF) Local $oForm = _IEFormGetObjByName($oFrame, 'mainform') ConsoleWrite('IsObj($oForm) = ' & IsObj($oForm) & ' ObjName = ' & String(ObjName($oIE)) & ' $oIE.type = ' & $oIE.type & @CRLF) Local $oUsername = _IEFormElementGetObjByName($oForm, "User") ConsoleWrite('IsObj($oUsername) = ' & IsObj($oUsername) & ' ObjName = ' & String(ObjName($oUsername)) & ' $oUsername.type = ' & $oUsername.type & @CRLF) ConsoleWrite('$oUsername : outerhtml:' & @CRLF & _IEPropertyGet($oUsername, 'Outerhtml') & @CRLF) Local $oPassword = _IEFormElementGetObjByName($oForm, 'Password') ConsoleWrite('IsObj($oPassword) = ' & IsObj($oPassword) & ' ObjName = ' & String(ObjName($oPassword)) & ' $oPassword.type = ' & $oPassword.type & @CRLF) ConsoleWrite('$oPassword : outerhtml:' & @CRLF & _IEPropertyGet($oPassword, 'Outerhtml') & @CRLF) ConsoleWrite('$oUsername : Setting Value' & @CRLF) _IEFormElementSetValue($oUsername, $Username, 1) ConsoleWrite('$oPassword : Setting Value' & @CRLF) _IEFormElementSetValue($oPassword, $Password, 1) ConsoleWrite('Setting Value: END') & @CRLF) _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') ConsoleWrite('/iFolder/adminconsole/buttons/btnlogin_en.gif: CLICKED') & @CRLF) sleep(2000) Local $oFrame2 = _IEFrameGetObjByName($oIE, 'NAVFRAME') ConsoleWrite('IsObj($oFrame2) = ' & IsObj($oFrame2) & ' ObjName = ' & String(ObjName($oFrame2)) & ' $oFrame2.type = ' & $oFrame2.type & @CRLF) _IELinkClickByText($oFrame2, 'User Accounts') ConsoleWrite('User Accounts: CLICKED') & @CRLF) Sleep(500) Local $oForm2 = _IEFormGetCollection($oFrame, 0) ConsoleWrite('IsObj($oForm2) = ' & IsObj($oForm2) & ' ObjName = ' & String(ObjName($oForm2)) & ' $oForm2.type = ' & $oForm2.type & @CRLF) _IEFormImageClick($oForm2, '/iFolder/adminconsole/buttons/btndisplay_en.gif', 'src') $oTable = _IETableGetCollection($oFrame, 1) ConsoleWrite('IsObj($oTable) = ' & IsObj($oTable) & ' ObjName = ' & String(ObjName($oTable)) & ' $oTable.type = ' & $oTable.type & @CRLF) $aReport = _IETableWriteToArray($oTable, True) _ArrayDisplay($aReport) ; _IEQuit ($oIE) EndFunc ;==>GetReport and after check try to change _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') to that: _IEFormImageClick($oForm, 'btnlogin_en.gif', 'src') after that try to download/install AuotIt 3.3.9.21 BETA an try all again, show the difference in Console Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 OK, done that. Key difference is that with the beta the script doesn't exit at the same point it simply stops processing. Here's the console output. 3.3.8.1 with the full URL of the image >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" /UserParams +>15:24:00 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>15:24:01 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->15:24:12 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 11.949 3.3.8.1 with just the filename >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" /UserParams +>15:46:17 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3 +>15:46:17 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END C:\Program Files\AutoIt3\Include\IE.au3 (638) : ==> The requested action with this object has failed.: While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top.document.readyState = 4 Or $f_Abort) While Not (String($oTemp.top.document.readyState) = "complete" Or $o_object.top^ ERROR ->15:46:34 AutoIt3.exe ended.rc:1 >Exit code: 1 Time: 17.744 3.3.9.21 with the full URL >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" /UserParams +>15:58:57 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) -> Skipping AU3check: Current version doesn't support the AutoIt3 v 3.3.9.5+ syntax. >Running:(3.3.9.21):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END 3.3.9.21 with just the filename >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" /UserParams +>16:03:45 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) -> Skipping AU3check: Current version doesn't support the AutoIt3 v 3.3.9.5+ syntax. >Running:(3.3.9.21):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp2.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 (edited) is there any error message ? or scirpt works well in 3.3.9.21 ? edit: are you check with script from post 27 and AutoIt 3.3.9.21? Edited September 18, 2013 by mlipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 (edited) Yes, this is the script from post 27. In 3.3.9.1 the script fails at the same point, but does not exit. It simply sits there doing nothing! Whoops, no it isn't. Using the wrong tab in Scite! I'll redo! Rushing to check, I got it wrong. i was right first time. It is the post 27 script. Edited September 18, 2013 by Speleologist Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 the script fails at the same point, but does not exit ?? do this: ConsoleWrite('/iFolder/adminconsole/buttons/btnlogin_en.gif: CLICKED') & @CRLF) ConsoleWrite('IsObj($oFrame2) = ' & IsObj($oFrame2) & ' ObjName = ' & String(ObjName($oFrame2)) & ' $oFrame2.type = ' & $oFrame2.type & @CRLF) ConsoleWrite('User Accounts: CLICKED') & @CRLF) ConsoleWrite('IsObj($oForm2) = ' & IsObj($oForm2) & ' ObjName = ' & String(ObjName($oForm2)) & ' $oForm2.type = ' & $oForm2.type & @CRLF) ConsoleWrite('IsObj($oTable) = ' & IsObj($oTable) & ' ObjName = ' & String(ObjName($oTable)) & ' $oTable.type = ' & $oTable.type & @CRLF) show any message in console , in AI 3.3.9.21 Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 ?? Yes, the script is still running. Autoit3.exe shows in the task manager using no CPU time, but nothing further gets executed. do this: ConsoleWrite('/iFolder/adminconsole/buttons/btnlogin_en.gif: CLICKED') & @CRLF) ConsoleWrite('IsObj($oFrame2) = ' & IsObj($oFrame2) & ' ObjName = ' & String(ObjName($oFrame2)) & ' $oFrame2.type = ' & $oFrame2.type & @CRLF) ConsoleWrite('User Accounts: CLICKED') & @CRLF) ConsoleWrite('IsObj($oForm2) = ' & IsObj($oForm2) & ' ObjName = ' & String(ObjName($oForm2)) & ' $oForm2.type = ' & $oForm2.type & @CRLF) ConsoleWrite('IsObj($oTable) = ' & IsObj($oTable) & ' ObjName = ' & String(ObjName($oTable)) & ' $oTable.type = ' & $oTable.type & @CRLF) show any message in console , in AI 3.3.9.21 The script is failing before $oFrame2 is declared, so this will not work! I'm just trying some other tests that I describe shortly. Link to comment Share on other sites More sharing options...
Speleologist Posted September 18, 2013 Author Share Posted September 18, 2013 I'm beginning to wonder whether there is a server side issue. (If so I can't do anything about it as it's a production environment and the servers are Novell iFolder servers with a standard install. For testing I've been using my sites.txt file with only one site. I have just tested with a different site (not accessed before as part of testing). Here's what I get (using the script from post 27 and 3.3.9.21): First time running the script >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp3.au3" /UserParams +>18:11:07 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) -> Skipping AU3check: Current version doesn't support the AutoIt3 v 3.3.9.5+ syntax. >Running:(3.3.9.21):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp3.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END At this point I get the scrip not exiting, but not proceeding any further. Subsequent runs give this: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Robin Sermon\My Documents\temp3.au3" /UserParams +>18:11:07 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000809 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) -> Skipping AU3check: Current version doesn't support the AutoIt3 v 3.3.9.5+ syntax. >Running:(3.3.9.21):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Robin Sermon\My Documents\temp3.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop IsObj($oFrame) = 1 ObjName = HTMLWindow2 Obj.type = HTML Document IsObj($oForm) = 1 ObjName = IWebBrowser2 $oIE.type = HTML Document IsObj($oUsername) = 1 ObjName = HTMLInputElement $oUsername.type = text $oUsername : outerhtml: <INPUT size=40 name=User> IsObj($oPassword) = 1 ObjName = HTMLInputElement $oPassword.type = password $oPassword : outerhtml: <INPUT value="" size=40 type=password name=Password> $oUsername : Setting Value $oPassword : Setting Value Setting Value: END Here the script exits at the error. I'll test in the morning to see if it might be something such as the page is retrieved from the proxy the second time. (I need to look at the proxy.pac file, and the owner has gone home). Group Policy stops me disabling the proxy for testing. Link to comment Share on other sites More sharing options...
mLipok Posted September 18, 2013 Share Posted September 18, 2013 (edited) ok go in to the IE press F12 and press CTRL+B select the image link _IEFormImageClick($oForm, '/iFolder/adminconsole/buttons/btnlogin_en.gif', 'src') chceck outer html (copy from IE console) and paste it here. Edited September 18, 2013 by mlipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Speleologist Posted September 19, 2013 Author Share Posted September 19, 2013 <td height="40" class="head2b" vAlign="bottom"> <input name="<td height="40" class="head2b" vAlign="bottom">" width="86" height="16" type="image" src="/iFolder/adminconsole/buttons/btnlogin_en.gif" border="0" complete="complete" value="Login"/> <tr> Link to comment Share on other sites More sharing options...
mLipok Posted September 20, 2013 Share Posted September 20, 2013 (edited) try something like this: Func _click_test($oIE) $oCollection = _IETagNameAllGetCollection($oIE) For $oTag In $oCollection If $oTag.outerhtml = '<td height="40" class="head2b" vAlign="bottom">' & @CRLF & '<input name="<td height="40" class="head2b" vAlign="bottom">" width="86" height="16" type="image" src="/iFolder/adminconsole/buttons/btnlogin_en.gif" border="0" complete="complete" value="Login"/' Then _IEAction($oTag, 'click') EndIf Next EndFunc ;==>_click_test or Func _click_test($oIE) $oCollection = _IETagNameAllGetCollection($oIE) For $oTag In $oCollection If $oTag.outerhtml = '<input name="<td height="40" class="head2b" vAlign="bottom">' Then _IEAction($oTag, 'click') EndIf Next EndFunc ;==>_click_test Edited September 20, 2013 by mlipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 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