Jump to content

Compiling error


Recommended Posts

Hi community

I am somehow used to code autoit apps for now, but recently encountered a new kind of problem as I was trying to add a picture in .EXE output file. I don't want some extra files added with Fileinstall method

I allready saw some thread dealing about this error, but I can't clearly know what to do, it looks confusing to me

Here's a code tuned as less as possible to fit my needs, that has been taken fom another thread

 

#Region                                 ; Directives created by AutoIt3Wrapper_GUI
#AutoIt3Wrapper_Icon=C:\Users\toto\Documents\Bot\N+1\Captain2.ico
#AutoIt3Wrapper_Outfile=C:\Users\toto\Documents\Bot\N+1\N+1.exe
#AutoIt3Wrapper_Compression=0
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Language=1036
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Tidy_Stop_OnError=n
#AutoIt3Wrapper_Res_File_Add=C:\Users\toto\Pictures\Search2.jpg, RT_RCDATA, JPG_1, 0
#EndRegion                              ; Directives created by AutoIt3Wrapper_GUI

#include <GUIConstantsEx.au3>
#include <ResourcesEx.au3>

$hGUI = GUICreate("Test", 500, 500)

$cPic = GUICtrlCreatePic("", 10, 10, 480, 480)
_Resource_SetToCtrlID($cPic, "JPG_1")

GUISetState()

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            _Resource_DestroyAll()
            Exit
    EndSwitch
WEnd

While compiling , I got this error

Error: Failed to get script data from end of target file.  Skipping resource update.rc:2

I use AutoItdebugger 0.45.1.0 as graphic envirnoment
I have installed a full Scite4Autoit

The icon specified for the wrapper works correctly but the picture never appears

Any help appreciated

Link to comment
Share on other sites

42 minutes ago, Subz said:

What is the last parameter ", 0"?

Do not know, I just copy pasted it as it's mentioned in the example I have read
I have tried with or without and it's the same

 

7 minutes ago, Jos said:

Please show the full SciTE4AutoIt3 outputpane information when this happens.

Jos

Fore sure, here it is. For evident confidentiality I replaced my user login with 'toto'

>C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe /ShowGui /in "C:\Users\toto\Documents\Bot\N+1\N+1 - Copie.au3" /prod /Autoit3Dir "C:\Program Files (x86)\AutoIt3"
+>15:03:06 Starting AutoIt3Wrapper v.2.1.0.33    Environment(Language:040C  Keyboard:0000040C  OS:WIN_8/  CPU:X64 OS:X64)
-> No changes made..
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3
+>15:03:10 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "C:\Users\toto\Documents\Bot\N+1\N+1 - Copie.au3" /out "C:\Users\toto\Documents\Bot\N+1\N+1.exe" /nopack /icon "C:\Users\toto\Documents\Bot\N+1\Captain2.ico" /comp 0 /x64
+>15:03:11 Aut2exe.exe ended.rc:0
>15:03:11 Performing the Program Resource Update steps:
!>15:03:11 Error: Failed to get script data from end of target file.  Skipping resource update.rc:2
+>15:03:11 Created program:C:\Users\toto\Documents\Bot\N+1\N+1.exe

Link to comment
Share on other sites

  • Developers

 

1 hour ago, Nicolas57 said:

Starting AutoIt3Wrapper v.2.1.0.33 

Looks like you haven't kept up with the updates for SciTE4AutoIt3 so I am not surprised you get issues with resource updating part of AutoIt3Wrapper.
This is a 2012 released version, at which time AutoIt3 v3.3.8.1 was out. :)

Jos

Edited by Jos
Typos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

48 minutes ago, Jos said:

 

Looks like you haven't kept up with the updates for SciTE4AutoIt3 so I am not surprised you get issues with resource updating part of AutoIt3Wrapper.
This is a 2012 released version, at which time AutoIt3 v3.3.8.1 was out. :)

Jos

OK, sorry

Going to update it and be back here, thank you Jos

 

Edited by Jos
Typos
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...