Jump to content

Problems getting AutoIt3Wrapper functions working.


Recommended Posts

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 by BlueLED
Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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 x86

Do 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 by BlueLED
Link to comment
Share on other sites

What version of AutoIt do you use? Run

ConsoleWrite(@AutoItVersion & @CRLF)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

Right, you need to download and install the full SciTE package as well.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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 by BlueLED
Link to comment
Share on other sites

Hope we can solve all your future problems and questions so fast and easy ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...