BlueLED Posted June 13, 2012 Posted June 13, 2012 (edited) Hey all, I've been using AutoIt3 for about 2 days now, (Newbie to Autoit, also) have to say it's rather nice. I am however, having problems getting the AutoIt3Wrapper functions working. I'm wanting to add a custom icon, which I've been able to do via Aut2Exe, but also custom version, copyright etc information. The below script fails to include/update, so I then tried resource editors to check it the icon was at least being included. It's not. Plus all editors I've tried have corrupted the exe, (as I haven't been able to find a way to make it not be packed via UPX) I'm getting no readout errors. "test.ico" is in the same dir as the script. Compiling via Ctrl+F7/Tools > Compile option #include-once #include <WinHTTP.au3> #include <Array.au3> #Region #AutoIt3Wrapper_icon=test.ico #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_LegalCopyright=BlueLED 2012 #EndRegion #include <INet.au3> $source = _INetGetSource("http://someurl.com/time_checker.pl") ;is working (changed from my url for sake of posting) If $source > '1342079249' Then MsgBox(0,"Program is outdated", "Obtain update off BlueLED") ;works as expected Exit EndIf This is what I have so far. Just trying to get the icon and the other resources "in there" first Edit: Am I forgetting to include something that is mandatory for the custom resources to be added, per chance? Any help would be awesome. Much thanks in advance, Blue Edited June 13, 2012 by BlueLED
water Posted June 13, 2012 Posted June 13, 2012 This works fine for me. I specified the complete path for the ico file. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=c:\temp\test.ico #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_LegalCopyright=BlueLED 2012 #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include-once #include <Array.au3> #include <INet.au3> Global $source $source = _INetGetSource("http://someurl.com/time_checker.pl") If $source > '1342059249' Then MsgBox(0, "Program is outdated", "Obtain update off BlueLED") Exit EndIf MsgBox(0, "", "Finished!") My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
BlueLED Posted June 13, 2012 Author Posted June 13, 2012 (edited) Cheers Water.That does seem to work for the icon, but I'm still getting no copyright information etc in the properties :/I should also note I'm using Windows 7 64 bit , but running AutoIt as x86Do I need to run the code through any other programs prior to compiling?I've manually put my values in the file & I see you've got **** Directives created by AutoIt3Wrapper_GUI ****It was my understanding the AutoIt3Wrapper is built into AutoIt3... Edit: I've also included the "#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker" Edited June 13, 2012 by BlueLED
water Posted June 13, 2012 Posted June 13, 2012 What version of AutoIt do you use? RunConsoleWrite(@AutoItVersion & @CRLF) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
AdmiralAlkex Posted June 13, 2012 Posted June 13, 2012 Post the output from the console. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
water Posted June 13, 2012 Posted June 13, 2012 Did you install the full Scite4AutoIt package or just AutoIt and the "lite" version of SciTe? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
BlueLED Posted June 13, 2012 Author Posted June 13, 2012 (edited) (console output 3.3.8.1)I'm pretty certain I installed the full Scite4AutoIt package, but will reinstall it now.I've downloaded the one from http://www.autoitscript.com/site/autoit/downloads/Do I need to download SciTE4AutoIt3.exe from the AutoIT Editor as well (or is this the same?) ? Edited June 13, 2012 by BlueLED
water Posted June 13, 2012 Posted June 13, 2012 Right, you need to download and install the full SciTE package as well. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
BlueLED Posted June 13, 2012 Author Posted June 13, 2012 (edited) Ah, apologies and hugest of thanks everyone It seems I DID need to download the one from AutoIt Editor section.Just downloaded the "full" one and everything works nicely.Cheers One happy Blue.Edit: Do I need the other thing I installed, or is the full SciTE package independent of it? Edited June 13, 2012 by BlueLED
water Posted June 13, 2012 Posted June 13, 2012 Hope we can solve all your future problems and questions so fast and easy My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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