PnD Posted June 21, 2021 Share Posted June 21, 2021 Hi all, With IE, I can use the following code to Open a html file invisible and use IE to call execWB to print that file without any GUI poping up as well. The whole process looks so smoothly and professionally in term of user interaction with this method. $oIE= _IECreate ("C:\Test\ShippingLabelV3.html",0,0) $oIE2.execWB(6,2) Would you have any suggestion that we can achieve the same goal with either Firefox or Chrome in WebDriver? Your feedback is much appreciated. Link to comment Share on other sites More sharing options...
Danp2 Posted June 22, 2021 Share Posted June 22, 2021 You can run the web browser in headless mode so that the browser window isn't shown. You can use _WD_Window or _WD_PrintToPDF to generate a PDF version of the web page. Have you searched for a solution for actually printing the page? I imagine that you aren't the first person to attempt it. 😀 PnD 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 22, 2021 Author Share Posted June 22, 2021 (edited) Hi Danp2, Thank you for your suggestion. I never thought about the _WD_PrintToPdf. So I tried this _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") _WD_PrintToPdf($oFF,"C:\BER\TEst.pdf) but it does not create any test.pdf file. I believe that I did something wrong with this line _WD_PrintToPdf($oFF,"C:\BER\Test.pdf"). Do you have any idea? (The browser did open the html file successfully ) Edited June 22, 2021 by PnD Link to comment Share on other sites More sharing options...
Danp2 Posted June 22, 2021 Share Posted June 22, 2021 The function doesn't create a file. It returns a string containing the raw PDF file. You could write this to a file or perhaps pass it directly to a printer. There's a simple example on the forum of the correct way to pass options in the 2nd parameter. For full details on the available options, you have to go back to the Webdriver specs. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 22, 2021 Author Share Posted June 22, 2021 Hi Danp2, Thank you for your guidance. I searched over the forum and found this thread that seems to be relevant to our topic However, before I could even give this one a try, I encountered an issue with _WD_PrintToPdf where the log said: _WD_IsLatestRelease: True _WD_IsLatestRelease ==> Success _WD_Startup: OS: WIN_10 WIN32_NT 19041 _WD_Startup: AutoIt: 3.3.14.5 _WD_Startup: WD.au3: 0.4.0.4 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: msedgedriver.exe _WD_Startup: Params: --verbose --log-path="C:\Autoit Webdriver\msedge.log" _WD_Startup: Port: 9515 __WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"binary": "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe", "excludeSwitches": [ "enable-automation"],"args":["--user-data-dir=C:\\Users\\phong.nguyenduc\\AppData\\Local\\Microsoft\\Edge\\User Data\\", "--profile-directory=Default"], "useAutomationExtension": false}}}} __WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"91.0.... _WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"msedge","browserVersion":"91.0.864.54","ms:edgeOptions":{"debuggerAddress":"localhost:58111"},"msedge":{"msedgedriverVersion":"91.0.864.54 (c789bf186b966721dc5a5b881c7f11b1934f0f0f)","userDataDir":"C:\\Users\\phong.nguyenduc\\AppData\\Local\\Microsoft\\Edge\\User Data\\"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:extension:largeBlob":true,"webauthn:virtualAuthenticators":true},"sessionId":"c34e13fbd5b775fb23f6b5477c68f8b2"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/c34e13fbd5b775fb23f6b5477c68f8b2/url; $sData={"url":"http://www.google.com"} __WD_Post: StatusCode=200; ResponseText={"value":null}... _WD_Navigate: {"value":null} __WD_Post: URL=HTTP://127.0.0.1:9515/session/c34e13fbd5b775fb23f6b5477c68f8b2/print; $sData={} __WD_Post: StatusCode=500; ResponseText={"value":{"error":"unknown error","message":"unknown error: PrintToPDF is only supported in headless... __WD_Post ==> Webdriver Exception: {"value":{"error":"unknown error","message":"unknown error: PrintToPDF is only supported in headless mode\n (Session info: MicrosoftEdge=91.0.864.54)","stacktrace":"Backtrace:\n\tOrdinal0 [0x00007FF6ECC5A072+4431986]\n\tOrdinal0 [0x00007FF6EC90D883+972931]\n\tOrdinal0 [0x00007FF6EC9161DD+1008093]\n\tOrdinal0 [0x00007FF6EC989713+1480467]\n\tOrdinal0 [0x00007FF6EC963056+1323094]\n\tOrdinal0 [0x00007FF6EC975131+1397041]\n\tOrdinal0 [0x00007FF6EC962ECF+1322703]\n\tOrdinal0 [0x00007FF6EC9389FA+1149434]\n\tOrdinal0 [0x00007FF6EC939A5F+1153631]\n\tOrdinal0 [0x00007FF6EC9CBEFD+1752829]\n\tOrdinal0 [0x00007FF6EC9CA492+1746066]\n\tOrdinal0 [0x00007FF6ECB48F24+3313444]\n\tOrdinal0 [0x00007FF6ECC79D09+4562185]\n\tOrdinal0 [0x00007FF6ECC1112E+4133166]\n\tOrdinal0 [0x00007FF6ECC10684+4130436]\n\tOrdinal0 [0x00007FF6ECC104D5+4130005]\n\tOrdinal0 [0x00007FF6ECC2A8CF+4237519]\n\tBaseThreadInitThunk [0x00007FFFEB357034+20]\n\tRtlUserThreadStart [0x00007FFFEB8A2651+33]\n"}} _WD_Window: {"value":{"error":"unknown error","message":"unknown error: PrintToPDF is only supported in headless... _WD_Window ==> Webdriver Exception: HTTP status = 500 _WD_PrintToPDF ==> Webdriver Exception +>13:16:54 AutoIt3.exe ended.rc:0 +>13:16:54 AutoIt3Wrapper Finished. >Exit code: 0 Time: 8.517 and this is just my simple code for testing, and both of them are generating the same error logs above. _WD_Navigate($oFF,"http://www.google.com") sleep(1000) $a=_WD_PrintToPdf($oFF) ConsoleWrite($a) or _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") $a= _WD_PrintToPdf($oFF) ConsoleWrite($a) I know this may be too much to ask for, but would you help share with me your experience on how to parse it directly to a printer assuming that I can be able to get the string successfully from the function _WD_PrintToPdf? Link to comment Share on other sites More sharing options...
Danp2 Posted June 22, 2021 Share Posted June 22, 2021 12 minutes ago, PnD said: PrintToPDF is only supported in headless mode This is a limitation of the Chromium-based browsers. Hopefully the will resolve it at some point. Check out the function header for _WD_PrintToPDF for a link to the open issue. 16 minutes ago, PnD said: I searched over the forum and found this thread that seems to be relevant to our topic I don't believe that this is needed. You should be able to write the string to a file using standard Autoit functions. 18 minutes ago, PnD said: how to parse it directly to a printer Unfortunately, this isn't something that I've needed to do yet. Simplest solution would be to output it to a file and then print the file with ShellExecute. PnD 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 22, 2021 Author Share Posted June 22, 2021 Thanks Dan! At this point, I may just have to stick around with IE for quite sometime when printing these stuffs until they came up the the non-headless mode solution. Thank you a lot for your guidance though. Link to comment Share on other sites More sharing options...
Danp2 Posted June 22, 2021 Share Posted June 22, 2021 FWIW, it should work with FIrefox. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 22, 2021 Author Share Posted June 22, 2021 Hi Dan I did the test with Firefox and _WD_PrintToPdf actually did produce the string. However, the file just lost its color format in which it turns to Black and White only. The rest of the format such as Front Size and Frame looks identical to the original file. _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") $a= _WD_PrintToPdf($oFF) MsgBox(0,0,$a) FileDelete("C:\BER\test.pdf") FileWrite("C:\BER\test.pdf",$a) ShellExecute("C:\BER\test.pdf","","","Print",@SW_HIDE) Is this something abnormal? Link to comment Share on other sites More sharing options...
Danp2 Posted June 22, 2021 Share Posted June 22, 2021 No idea. Have you tried using ShellExecute to print the original HTML file? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 22, 2021 Author Share Posted June 22, 2021 Hi Dan, ShellExecute would work ok with the original html file except that I have to Send ({Enter}) to the pop-up Print Windows to print which defeats the purpose of doing it silently. Since I am printing black and white anyway, the ShellExcecute will print pdf without any Print Windows perfectly. It just that when Filewrite a string generate from _WD_PrintToPdf to a pdf file, somehow the colors were just removed as showed in the picture above as well. Link to comment Share on other sites More sharing options...
Danp2 Posted June 23, 2021 Share Posted June 23, 2021 I'd have to do some testing to determine if that's just how the webdriver print functionality works or if somehow the color is being accidentally removed by me. PnD 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mLipok Posted June 23, 2021 Share Posted June 23, 2021 Did you try to print HTML to pdf manually via browser ? 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...
Danp2 Posted June 23, 2021 Share Posted June 23, 2021 FWIW, I ran some quick tests and found that there wasn't any color loss in the PDFs created with _WD_PrintToPDF. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PnD Posted June 23, 2021 Author Share Posted June 23, 2021 13 hours ago, mLipok said: Did you try to print HTML to pdf manually via browser ? Hi mLipok, Yes, I called the file directly via _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") maybe it's the reason why the color lost? Link to comment Share on other sites More sharing options...
mLipok Posted June 23, 2021 Share Posted June 23, 2021 (edited) No... I mean do not use WD . Open this file manually in browser and print to pdf manually. Check what is going on with colors. In such case Are they properly printed to pdf ? Edited June 23, 2021 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...
PnD Posted June 23, 2021 Author Share Posted June 23, 2021 56 minutes ago, mLipok said: No... I mean do not use WD . Open this file manually in browser and print to pdf manually. Check what is going on with colors. In such case Are they properly printed to pdf ? I see what you mean. Interestingly, I try both Chrome and Firefox per your suggestion, and the color is showing again as long as the "Print backgrounds" option is checked on both browsers. With Print Background checked Print backgrounds is unchecked Link to comment Share on other sites More sharing options...
mLipok Posted June 23, 2021 Share Posted June 23, 2021 (edited) Exactly... Now @Danp2 turn Edited June 23, 2021 by mLipok PnD 1 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...
Danp2 Posted June 23, 2021 Share Posted June 23, 2021 Nope @mLipok . Time for y'all to use your GoogleFu and find the answer yourself. 😄 P.S. I posted a link earlier to the W3C specs. That may help you identify a way to control the print options. PnD, TheDcoder and mLipok 2 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mLipok Posted June 24, 2021 Share Posted June 24, 2021 @PnD try: _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") $a= _WD_PrintToPdf($oFF,'{"isCssBackgroundEnabled": True}') or: _WD_Navigate($oFF,"file:///C:/BER/PackingSlipV1.html") $a= _WD_PrintToPdf($oFF,'{"background": True}') 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