Sign in to follow this  
Followers 0
BlueLED

Problems getting AutoIt3Wrapper functions working.

10 posts in this topic

#1 ·  Posted (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 by BlueLED

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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

Share this post


Link to post
Share on other sites

What version of AutoIt do you use? Run

ConsoleWrite(@AutoItVersion & @CRLF)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by BlueLED

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0