Jump to content

Compiled Script Doesn't Work The Same


kartune
 Share

Recommended Posts

Hello, when compiling as x86 or 64 from the drop down menu of right clicking the .au3, or using the autoit startmenu compile script, it does not run the same as just running the .au3.  It just gets stuck on one of the functions.   I've tried running as administrator also.  Is there something i need to know when compiling the script for .exe?

 

Thanks!

 

Link to comment
Share on other sites

25 minutes ago, Juvigy said:

Do you know where it hangs? There are several possible reasons like working dirs or some incorrect macro use like @scriptdir or hard coded paths. It may be anything - we need more information.

Hi, thanks for your assistance.  So i troubleshooted and here's what i got:

1)  Identified that it starts to glitch when it's doing an imagesearch, i am using the imagesearch2015.au3.

2)  I've only tried the compiled .exe that i copied into a different directory.  So i figured maybe the compiled version doesnt include the imagesearch2015.au3?  So i tried copying that imagesearch2015.au3 into the same directory to see if that solves the issue, which it did not.

3)  I tried the compiled.exe in the default directory where the original .au3 script is in and this worked just fine.

4)  I then tried copying the original script into the other directory and compiling it there to see if that did anything.  It again has the same issue.

So now i'm thinking you are right about the issue being something about the directory.  Do you have any troubleshooting steps or information you need from me specifically?

 

Thanks again!

Edited by kartune
Link to comment
Share on other sites

Yes: post your code!

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

All of the imagesearch libraries are notoriously finicky to get working. Make absolutely sure that your DLLs are in the correct location, and that you are referencing them accordingly. If they aren't accessible, more often than not the search just doesn't work or hangs. When you compile as well, you need to make sure you also move the DLLs wherever you move the .exe, and to make sure their directories in your code aren't hardcoded to one location.

UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Link to comment
Share on other sites

Hi guys, thanks for your help!  But i figured it out, I had no idea that compiling the script excludes the images needed for the imagesearch.  Once i placed the images in the directory i copied the script to it worked again.  Sorry for any trouble!

Link to comment
Share on other sites

  • Moderators

kartune,

We do not permit multiple accounts and yet I see both kartune and kartune2013 in this thread. Which do you wish to keep.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

On 1/10/2017 at 0:17 PM, Melba23 said:

kartune,

We do not permit multiple accounts and yet I see both kartune and kartune2013 in this thread. Which do you wish to keep.

M23

oh, sorry i didnt realize i even had another.  you could delete either one, i think the login info is saved on my chrome :) thanks

Link to comment
Share on other sites

  • Moderators

kartune,

I will merge the accounts and just kartune will remain.

M23

Edit: And done

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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...