Jump to content

Recommended Posts

Posted

So, next obvious question (and something developers would surely ask you) is what icon file? Upload it so they can see it.

Very likely your icon is not icon at all, or it's invalid or maybe even in unsupported format.

♡♡♡

.

eMyvnE

Posted (edited)

I PM to You my Icon

EDIT:

attached file - icon

work_black.ico

Edited 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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Strange

Just out of curiosity I changed the file icon.
Nothing is changed - still a mistake.
 
But then I clicked "Compile for System" and pointed out "x64"
Then again, the "Convert"
 
This time there was no problem.
file c:Usersuser~AU3test2.exe    exist
and is correctly compiled.

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
I repeatedly marked and removed the selection x64, and then compiled.
 
Each time the effect is the same:
Convert option works well only when the x64 option was selected

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

If your script has #NoTrayIcon directive then remove it. If it doesn't have that directive then add it. Then check if compilation succeeds or fails in both cases.

If it would fail then add some call to InputBox() function if your script doesn't have it already or remove it if it does. Then check compilation.

If in either of those cases you get successful compilation with that icon then it's clear what the problem is ...and how to solve it.

Edited by trancexx

♡♡♡

.

eMyvnE

Posted (edited)
First I did a test like yesterday to see if the current initial conditions are the same as yesterday.
Everything works the same way.
 
Now I'm using # NoTrayIcon
I used comment and compile.
Result: no change.
 
Just check the InputBox
but it will take some time.
Edited 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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 8/26/2013 at 8:36 AM, trancexx said:

If it would fail then add some call to InputBox() function if your script doesn't have it already or remove it if it does.

 

I'm not sure if properly done the job (how your speech is not clear to me).
So I will say what I did.

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
Because a lot of times I used the InputBox function but in different file my UDF, I decided to see if the file KK_Weryfikator_Spraw_Obfuscated.au3 has the same problem.
Yes exactly the same problem.
 
Edit: So I started to test again, this time with the file   KK_Weryfikator_Spraw_Obfuscated.au3
 
I used a Comment:
;~ #NoTrayIcon
 
compile and still the same problem.
 
 
 
Started to search for all InputBox
$sMyInput = InputBox ('Title', 'text', 'Default')

I changed it this way:

$sMyInput =''
;~ $SMyInput = InputBox ('Title', 'text', 'Default')
 
I carry out a test build
but before that I changed the destination file at  C:Usersuser~AU3test5.exe
 
The result is still negative in the case of when "x64" is not selected
and positive when I check this option.
Edited 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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Uhm, ok so don't complicate this. Compile some simple script, like this:

#pragma compile(icon, .\work_black.ico) ; don't forget to set correct icon
;~ #pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")

... and see if you get any troubles.

When I say compile I mean run Aut2Exe yourself, don't use wrapper. I just checked and latest wrapper looks kind of messy. It has few obvious mistakes in logic it uses for after-compilation. Avoid using it for now.

♡♡♡

.

eMyvnE

Posted

Test 1: AutoIT 3.3.8.1

#pragma compile(icon, .\work_black.ico) ; don't forget to set correct icon
;~ #pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3"

+>13:06:28 Starting AutoIt3Wrapper v.2.1.2.26 SciTE v.3.3.2.0 ;  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (3.3.9.5)  from:C:Program Files (x86)AutoIt3
+>13:06:29 AU3Check ended.rc:0
>Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\Aut2Exe\aut2exe.exe  /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3" /out "C:Usersuser~AU3hypbjtt.exe" /nopack /comp 2
+>13:06:30 Aut2exe.exe ended.L:TOOLsMacroWORK--ICONSC:Usersuser~AU3hypbjtt.exe. rc:0
+>13:06:30 Created program:L:TOOLsMacroWORK--ICONSTest_tracexx.exe
>Exit code: 0    Time: 2.443
 

 

TEST 2: AutoIT 3.3.8.1

#pragma compile(icon, .\work_black.ico) ; don't forget to set correct icon
#pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3"

+>13:06:52 Starting AutoIt3Wrapper v.2.1.2.26 SciTE v.3.3.2.0 ;  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
- Ignoring all #pragma Compile(out, YourFileName) because AutoIt3 version: 3.3.8.1 doesn't support it!
>Running AU3Check (3.3.9.5)  from:C:Program Files (x86)AutoIt3
+>13:06:53 AU3Check ended.rc:0
>Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\Aut2Exe\aut2exe.exe  /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3" /out "C:Usersuser~AU3zxxyhdn.exe" /nopack /comp 2
+>13:06:54 Aut2exe.exe ended.L:TOOLsMacroWORK--ICONSC:Usersuser~AU3zxxyhdn.exe. rc:0
+>13:06:54 Created program:L:TOOLsMacroWORK--ICONSTest_tracexx.exe
>Exit code: 0    Time: 2.151
 

 

TEST 3: AutoIT 3.3.9.19

#pragma compile(icon, .\work_black.ico) ; don't forget to set correct icon
;~ #pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")

MessageBox: 

Aut2Exe Error

Error: Unable to add resources.

C:Usersuser~AU3bkultll.exe
 
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3"

+>13:07:41 Starting AutoIt3Wrapper v.2.1.2.26 SciTE v.3.3.2.0 ;  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (3.3.9.19)  from:C:Program Files (x86)AutoIt3Beta
+>13:07:42 AU3Check ended.rc:0
>Running:(3.3.9.19):C:\Program Files (x86)\AutoIt3\Beta\aut2exeaut2exe.exe  /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3" /out "C:Usersuser~AU3bkultll.exe" /nopack /comp 2
!>13:08:04 Aut2exe.exe ended errors because the target exe wasn't created, abandon build. (C:Usersuser~AU3bkultll.exe)rc:9999
>Exit code: 0    Time: 22.751
 

 

 

TEST 4: AutoIT 3.3.9.19

#pragma compile(icon, .\work_black.ico) ; don't forget to set correct icon
#pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3"

+>13:08:55 Starting AutoIt3Wrapper v.2.1.2.26 SciTE v.3.3.2.0 ;  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
> #pragma Compile(out, YourFileName) and/or #pragma Compile(x64, true/false) found: 
-    Ignoring all #AutoIt3Wrapper_OutFile* and #AutoIt3Wrapper_Compile_both #directives!
>Running AU3Check (3.3.9.19)  from:C:Program Files (x86)AutoIt3Beta
+>13:08:55 AU3Check ended.rc:0
>Running:(3.3.9.19):C:\Program Files (x86)\AutoIt3\Beta\aut2exeaut2exe.exe  /in "L:TOOLsMacroWORK--ICONSTest_tracexx.au3" /out "C:Usersuser~AU3gwypckv.exe" /nopack /comp 2
+>13:08:56 Aut2exe.exe ended.L:TOOLsMacroWORK--ICONSC:Usersuser~AU3gwypckv.exe. rc:0
!>13:08:56 Problem copying file from: C:Usersuser~AU3gwypckv.exe To :
>Exit code: 0    Time: 2.375
 

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Ehh, so once again - do not run AutoIt3Wrapper.

Did you set correct icon? I've set it to .work_black.ico, it doesn't mean that icon exists for you.

♡♡♡

.

eMyvnE

Posted

see attached JPG

post-10673-0-93364700-1377516285_thumb.j

post-10673-0-08917100-1377516291_thumb.j

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Whether these two JPG files for now clarified doubts?

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

That picture shows that there is file named Test_trancexx.exe. What creates that? 3.3.8.1? Forget 3.3.8.1.

Anyway, compile this now:

#pragma compile(icon, .\work_black.ico)
#pragma compile(out, .\Test_trancexx.exe)
;~ #pragma compile(x64, true) ; uncomment when you want x64

MsgBox(0, "", @AutoItExe)

Just load Aut2Exe with it and don't set "Destination" and "Icon". Aut2Exe will do that for you when it reads pragmas.

Edited by trancexx

♡♡♡

.

eMyvnE

Posted
MessageBox
OK
Error: Unable to add resources.
L:TOOLsMacroWORK--ICONSTest_trancexx.exe

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 8/26/2013 at 12:26 PM, trancexx said:

Just load Aut2Exe with it and don't set "Destination" and "Icon". Aut2Exe will do that for you when it reads pragmas.

I confirm

Au3exe do what you say: reads pragmas., and set "Destination" and "Icon"

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

When I uncomment

;~ #pragma compile(x64, true) ; uncomment when you want x64
 

everything is fine

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

  On 8/26/2013 at 12:41 PM, trancexx said:

Excellent. Now compile this:

;~ #pragma compile(icon, .\work_black.ico)
#pragma compile(out, .\Test_trancexx.exe)
;~ #pragma compile(x64, true) ; uncomment when you want x64

InputBox("", "")
 

If it'd be successful upload Test_trancexx.exe like you did icon.

 

 

MessageBox:

Aut2Exe Error

OK
Error: Unable to add resources.
L:TOOLsMacroWORK--ICONSTest_trancexx.exe

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

and again

  On 8/26/2013 at 12:43 PM, mlipok said:

When I uncomment

;~ #pragma compile(x64, true) ; uncomment when you want x64
 

everything is fine

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 Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
×
×
  • Create New...