Jump to content

Recommended Posts

  • Developers
Posted (edited)
  On 8/7/2014 at 12:01 PM, jchd said:

Jos,

AFAICT in AutoIt3Wrapper v.14.727.1229.0 the #AutoIt3Wrapper_AutoIt3 directives permanently overrides the default program for subsequent runs (production or beta) until another #AutoIt3Wrapper_AutoIt3 directive is encountered. Well unless I missed something. I tried passing the value "" and nothing but to no avail.

Wasn't it your intention to change the program invoked only for the current run?

:think: Guess I am not very clear-headed this evening as I am not sure about this question either.

#AutoIt3Wrapper directives are telling AutoIT3wrapper what you want it to perform each time AutoIt3Wrapper is ran.

There is only one directive that runs one time which is " #AutoIt3Wrapper_Add_Constants=y" which is changed to "#AutoIt3Wrapper_Add_Constants=n" after one run.

So this particular directive tells AutoIt3Wrapper where it can find the AutoIt3.exe  program and will override the default Prod or Beta directory setting for the Run operation.

When using #AutoIt3Wrapper_AutoIt3Dir, you override the directory used for AutoIt3.Exe or Aut2Exe.exe.

Jos

Edited by Jos

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

Posted

Well it is the first time I used that directive and I believed it was a temporary override, just like the documentation clearly says.

So if I understand you well, using once this directive overrides the filepath forever. I guess the setting is hosted in some .ini or so. Can you tell me how I can revert to the default setting, with distinct filepaths for production and beta, 32- and 64-bit.

  Reveal hidden contents

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)

Posted (edited)
First, this is a file encoding to identify problems. When my source files and #include the UDF file encoding is 936, SciTE4AutoIt-> Tools-> SyntaxCheck Prod debug output is: 
 
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "D:testcp936.au3"

+>15:11:39 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0   Keyboard:00000804  OS:WIN_81/  CPU:X64 OS:X64    Environment(Language:0804)
+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersxxxAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersxxxAppDataLocalAutoIt v3SciTE 
! ***************************************************************************************************************
! * Input file is UTF8 without BOM encoded, Au3Stripper do not support UNICODE and will be skipped.      *
! * The file SHOULD BE encoded as UTF8 with BOM to continue processing by AutoIt3Wrapper.                       *
! *    #####################################################################################################    *
! * ##### AutoIt3Wrapper will not show a GUI or update the script to avoid any damage to your scriptfile. ##### *
! *    #####################################################################################################    *
! * When your file isn't a UTF8 file without BOM then please report this to me for review.                      *
! ***************************************************************************************************************
>Running AU3Check (3.3.12.0)  from:C:Program Files (x86)AutoIt3  input:D:testcp936.au3
+>15:11:42 AU3Check ended.rc:0
+>15:11:42 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.66

 

 
In addition, if the source file and #include UDF file encoding is UTF8withBOM, the debug output is: 
 
  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "D:testutf8withBOM.au3"

+>14:40:44 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0   Keyboard:00000804  OS:WIN_81/  CPU:X64 OS:X64    Environment(Language:0804)
+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersxxxAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersxxxAppDataLocalAutoIt v3SciTE 
>Running AU3Check (3.3.12.0)  from:C:Program Files (x86)AutoIt3  input:D:testutf8withBOM.au3
! Au3check doesn't support input files encoded as UTF8 with BOM: D:testincludeutf8withBOMinclude.au3
"D:testutf8withBOM.au3"(4,33) : error: GetMSDMKey(): undefined function.
Local $sProductKey = GetMSDMKey()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:testutf8withBOM.au3 - 2 error(s), 0 warning(s)
!>14:40:48 AU3Check ended. Press F4 to jump to next error.rc:2
+>14:40:48 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 3.695
 

 

 
 
If the primary file encoding is UTF8withBOM, #include UDF file encoding is UTF8 without BOM, everything is OK.
 
 
 
The file SHOULD BE encoded as UTF8 with BOM to continue processing by AutoIt3Wrapper.   BUT
 Au3check doesn't support input files encoded as UTF8 with BOM
 
 
Edited by listee
  • Developers
Posted
  On 8/7/2014 at 9:37 PM, jchd said:

Well it is the first time I used that directive and I believed it was a temporary override, just like the documentation clearly says.

So if I understand you well, using once this directive overrides the filepath forever. I guess the setting is hosted in some .ini or so. Can you tell me how I can revert to the default setting, with distinct filepaths for production and beta, 32- and 64-bit.

The Directive set the default only for the script containing this specific directive so the override is permanent for just this script.

You can change defaults in the AutoIt3Wrapper.ini file which is located in either the AUtoIt3Wrapper program directory or "%localappdata%AutoIt v3SciTEAutoIt3Wrapper".

Jos :)

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

  • Developers
Posted (edited)

  On 8/8/2014 at 7:17 AM, listee said:
If the primary file encoding is UTF8withBOM, #include UDF file encoding is UTF8 without BOM, everything is OK.

 
The file SHOULD BE encoded as UTF8 with BOM to continue processing by AutoIt3Wrapper.   BUT
 Au3check doesn't support input files encoded as UTF8 with BOM

 

 

This is correct. AU3CHECK does NOT support any UTF encoded files. AutoIt3Wrapper has a workaround for this limitation of au3check, but only for the main script, by copying it to a temp file before processing, But again: this is only for the Main script.

It is what it is until somebody puts the effort in to fix au3check.

Jos

Edited by Jos

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

Posted (edited)

I don't have any AutoIt3Wrapper.ini file in my whole disk subsystem. I also searched AutoIt3Wrapper.* < 1Mb modified after 07/21 (well before I tried the directive) and none showed up. I didn't find anything relevant in the registry either. So I wonder where the setting can live, but indeed, it persists for the few sources where I used the directive.

Edited by jchd
  Reveal hidden contents

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)

  • Developers
Posted

What exactly is happening? AutoIt3Wrapper points to a wrong directory?

If so could you show me the SciTE outputpane info when this happens?

One other thought: Have you changed au3.properties?

We can take this off-line in PM when you wish.

Jos

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

Posted

Jos,

Did you change any settings that removed the replace in buffers button, when doing a search and replace?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Developers
Posted
  On 8/9/2014 at 10:56 AM, guinness said:

Did you change any settings that removed the replace in buffers button, when doing a search and replace?

I have tried to update the SciTEGlobal.properties with some of the new stuff as that was not done for quite a while.

Checking for this option I seem to have reset it back to the default:

#find.replace.advanced=1

Just remove the # in front in SciTEGlobal.properties as I will do the same in my version for the next release.

Jos

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

Posted

I saw that property but missed the octothorpe.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Jos, I finally found the cause. This is a source file I use to test snippets for answering questions and it holds several sources appended separated by Exit. I didn't notice that one of the scripts I recently pasted there had that line hanging somewhere "deep inside":

#AutoIt3Wrapper_Version=b

Having that commented out fixed the problem. Sorry for bothering you, that was sneaky.

  Reveal hidden contents

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)

  • Moderators
Posted

guinness,

 

  Quote

octothorpe

My word of the week! :D

"Hash" & "pound sign" is what I knew it as - but that is forever changed thanks to you! :thumbsup:

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:

  Reveal hidden contents

 

Posted

Haha, I knew it as that too, until an American Professor told me "No, it's an octothorpe!".

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Developers
Posted

  On 8/9/2014 at 12:10 PM, Melba23 said:

guinness,

 

My word of the week! biggrin.png

"Hash" & "pound sign" is what I knew it as - but that is forever changed thanks to you! thumbsup.gif

M23

Thought it was just me that never heard of octothorpe before and also only this character as hash and pound sign.

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

Posted

Learned something today too!

Looking further there are more Unicode characters ambiguously similar but they are all dedicated to distinct contexts:

U+0023    #   octothorp(e) (often used to denote "number" in us / en)

U+22D5   ⋕   is equal and parallel to (mathematical relationship)

U+2317      Viewdata square (used in Viewdata transmission)

U+266F    ♯   sharp (musical notation)

  Reveal hidden contents

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)

Posted

I just downloaded the latest non-beta of Scite4AutoIt3 zip and found inside of it a SciTEUser.properties file, that file needs to not be there otherwise it will overwrite my user preferences. Actually on second look, it appears that there are a couple of more files in there that probably shouldn't be, au3.UserUdfs.properties, au3.keywords.user.abbreviations.properties, au3UserAbbrev.properties and maybe userabbrev.properties. These all appear to be files that the user should use to set certain personal preferences, I could be mistaken about the last 3 or 4, but not about the first one.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

How can I change the path of execution (marked in bold)?:

  Quote

>Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\Aut2Exe\aut2exe.exe  /in "D:DropboxAutoIt v3 - ProjectsRemoteDesktopMain.au3" /out "C:UsersUsuárioAppDataLocalAutoIt v3Aut2exe~AU3jjqazwy.exe" /nopack /icon ".ResourcesIconWeb.ico" /comp 0
+>13:19:19 Aut2exe.exe ended.C:UsersUsuárioAppDataLocalAutoIt v3Aut2exe~AU3jjqazwy.exe. rc:0

The reason: I'm using a SSD HD and I want to spare the life of him.

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

  Reveal hidden contents

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Posted

Good question.

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

  • Developers
Posted

  On 8/11/2014 at 8:32 PM, BrewManNH said:

I just downloaded the latest non-beta of Scite4AutoIt3 zip and found inside of it a SciTEUser.properties file, that file needs to not be there otherwise it will overwrite my user preferences. Actually on second look, it appears that there are a couple of more files in there that probably shouldn't be, au3.UserUdfs.properties, au3.keywords.user.abbreviations.properties, au3UserAbbrev.properties and maybe userabbrev.properties. These all appear to be files that the user should use to set certain personal preferences, I could be mistaken about the last 3 or 4, but not about the first one.

When using the zip file it is assumed to run portable and that means these files are in the right place for running it in that mode.

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

  • Developers
Posted
  On 8/14/2014 at 4:26 PM, JScript said:

How can I change the path of execution (marked in bold)?:

The reason: I'm using a SSD HD and I want to spare the life of him.

JS

That is the default tempdir value. this can be changed in autoit3wrapper.ini by setting tempdir=

Jos

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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