Jump to content

AutoIt v3.3.15.4 Beta


Jon
 Share

Recommended Posts

  • Jon featured and pinned this topic

@Jon could you please also update this resource:

https://www.autoitscript.com/autoit3/files/beta/autoit/docs/

 

Thanks in advance

mLipok

 

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:

Spoiler

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

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

about - Fixed #3682: GuiCtrlCreatePic() with h=0 and w=0.

I use the following with the current release 33.14.5 which produces the right-hand  graphic below:

#AutoIt3Wrapper_Res_File_Add="icons\shark.png", RT_RCDATA, shark, 0

#include <ResourcesEx.au3>

Global $Pic = GUICtrlCreatePic('', -1, -1) ; logo
_Resource_SetToCtrlID($Pic, 'shark')
GUICtrlSetPos($Pic, 205, 70, 140, 140)

One other thing I should point out is that I use, #AutoIt3Wrapper_Res_HiDpi=Y
which means my positioning line is actually, GUICtrlSetPos($Pic, 205 * $iScale, 70 * $iScale, 140 * $iScale, 140 * $iScale)
where $iScale is relative to the screen scaling. (150% scaling = a 1.5 multiplication factor) Maybe this is where my issue lies.

No matter what I change I always get the same size (visible) pic using the beta. (to small).
I am able to confirm that 140x140 pixels are allocated to the graphic but for whatever reason,
the visible pic does not fill that space.

The png is natively 140x140 but I cannot make it display in that size. (screen positioning is no issue)

Below, the larger graphic is correct. The smaller graphic is from the Beta which does allocate the 140x140 pixels to the graphic, it just doesn't fill the allocated space.

1.jpg 2.jpg

Edited by Shark007
add info
Link to comment
Share on other sites

Hi Jon,
To me, the pic issue with "set width and height to 0" is solved now in Beta 3.3.15.4, after you closed Trac ticket #3682 about 29 hours ago. The issue was fully described in this link . Here are the results that I just tested : what didn't work in beta 3.3.15.3 (where the pic was always resized to 150x150) works now in beta 3.3.15.4 (where the pic is displayed with its original coords : 271 x 399)

#include <GuiConstantsEx.au3>

$hGui = GUICreate("163 - AutoIt " & @AutoItVersion, 300, 435)
GUICtrlCreatePic(@ScriptDir & "\163 - Original pic.jpg", 1, 1, 0, 0)
GUISetState()

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete($hGui)

1256203412_Itworksagainin3.3_15.4.jpg.4d4c65e9b965a80e7bbd95ad94ba34b9.jpg

Good job and many thanks for this incredible AutoIt scripting language :thumbsup:

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Is there a consensus on the Map variable type? Is it sticking around?

I know the help file has the giant experimental feature warning, but it's been a thing for a while and I'm just wondering if there's been any more solid decisions made on whether it's staying or not.

I've personally been avoiding it because I didn't want the rug pulled from under me when it gets deprecated. 😅

Link to comment
Share on other sites

1 hour ago, Melba23 said:

therks,

Jon managed to get the known Map bugs fixed in the new Beta and no-one has come up with any new problems of note yet.  I think you could safely assume that the functionality will be included in the next release - but as always, no promises.

M23

Thanks Melba. I wouldn't expect any promises, I get how fickle development can be. 

Link to comment
Share on other sites

  • 2 weeks later...

@VIP  Tested it (on Beta 3.3.15.4) and working for me :

>Running:(3.3.15.4):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "C:\Applications\AutoIt\ZZTemp\Temp6.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
"C:\Applications\AutoIt\ZZTemp\Temp6.au3" (5) : ==> Variable used without being declared.:
$test = 0
^ ERROR
->09:30:25 AutoIt3.exe ended.rc:1

Beside Opt ("MustDeclareVars", True) is not run by Au3Check.exe but by AutoIt3.exe

Edited by Nine
Link to comment
Share on other sites

  • Developers

Show an script you have issues with and all the SciTE console output for the correct and the wrong version.

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

Link to comment
Share on other sites

2 hours ago, VIP said:

Scite run Au3Check.exe not  AutoIt3.exe  thank!

False ! Scite runs both (first au3check then autoit3).  But Opt is performed by autoit3.  For proof, in Scite, you can disable au3check (just go in compile and uncheck au3check) and you still got the error message from autoit3...

Link to comment
Share on other sites

  • Developers
1 hour ago, Nine said:

False ! Scite runs both (first au3check then autoit3). 

True, but only when the full package is installed. ;) 
... either way: I first need the requested information so we understand the issue correctly! :) 

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

@Nine You don't seem to understand what I mean.

I don't care about autoit3.exe. It has the sole task of serving testing and debugging.

Autoit3.exe does not check the script, it executes the script sequentially until it detects an error and stops right there. That is, only 1 error is detected.
The syntax error checking does not execute Autoit3.exe.
The Autoit3.exe execution was done by the full Scite to execute the AutoIt3Wrapper.au3 script and it still executes in the end: Au3Check.exe <my script.au3>

With the new version of Au3Check with the below script it does not detect errors and warnings.
If you compile or run the test. will immediately fail! A very serious omission!

Opt("MustDeclareVars", 1) ;0=no, 1=require pre-declaration
AutoItSetOption("MustDeclareVars", 1)  ;0=no, 1=require pre-declaration

$Var1 = 0
$Var2 = 'Value 2'
$Var3 = 'Value 3'

MsgBox($Var1, $Var2, $Var3)


 

Regards,
 

Link to comment
Share on other sites

  • Developers
5 hours ago, Jos said:

Show an script you have issues with and all the SciTE console output for the correct and the wrong version.

Jos

First part is there ....the rest is still missing and I need those details before I can have a proper look!

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

  • Jon unpinned this topic

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