Jump to content

Recommended Posts

Posted

Welcome to AutoIt and the forum!

Don't know how this wrong code made its way into the tutorial. There are no @@ macros and the #include statement is missing the name of the file to include.
Please try:

#include <MsgBoxConstants.au3>
MsgBox($MB_OK, "Tutorial", "Hello World")

You always find the most accurate information in the help file.

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Solution
Posted
  On 5/28/2022 at 5:02 AM, water said:

There are no @@ macros ...

Expand  

The @@Macros are used (as far as I know) to format texts in the .chm file. They are not, as @water already wrote,  valid statements in the AutoIt source code.

; wrong syntax :
@@SyntaxHighlighting@@ #include MsgBox($MB_OK, "Tutorial", "Hello World!") @@End@@

They may not have been removed for display as an HTML page in the browser 🤔.

  On 5/28/2022 at 5:02 AM, water said:

You always find the most accurate information in the Help file.

Expand  

True :).

@kirb :

To open the AutoIt Help in the SciTE Editor press F1 (Caution : the script must have been saved at least once ! ).

If the cursor is located on a valid AutoIt command, help will be displayed directly for this. Otherwise, a general overview will be displayed. Here you can also find the mentioned 'helloworld' tutorial with the correct syntax.

Tutorial.jpg.b5eabe2707916e316ccf47929f0eb082.jpg

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

  • Developers
Posted
  On 5/28/2022 at 7:55 AM, Musashi said:

The @@Macros are used (as far as I know) to format texts in the .chm file.

Expand  

Correct....  the build scripts will take the code and put it into SciTE and the export it as HTML to get for proper syntax highlighting/coloring. ðŸ˜Ž
@kirb Just ignore those. ;) 

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

 

  On 5/28/2022 at 8:14 AM, Jos said:

Correct....  the build scripts will take the code and put it into SciTE and the export it as HTML to get for proper syntax highlighting/coloring. ðŸ˜Ž

Expand  

Just for curiosity : Like @water, I would be interested to know, why the name of the included file is missing in HTML (but it's not of major importance :)).

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

  • Developers
Posted (edited)

Looking at the details I am wondering whether the correct version is copied to the Website as we have a  html and web_html subdir. The current build copies html while web_html seems to contain a proper version of the file.

@jpmdo you know this by any chance?  (I haven't been modding with these for a very long time ;) ) 

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

  • Developers
Posted
  On 5/28/2022 at 9:59 AM, Musashi said:

I would be interested to know, why the name of the included file is missing in HTML

Expand  

The source is

#include <MsgBoxConstants.au3>

... so the browser will try to interpret the "<....>"  part but not show it. Have a look at the opened page's source. ;) 

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
  On 5/28/2022 at 10:26 AM, Jos said:

Looking at the details I am wondering whether the correct version is copied to the Website as we have a  html and web_html subdir. The current build copies html while web_html seems to contain a proper version of the file.

@jpmdo you know this by any chance?  (I haven't been modding with these for a very long time ;) ) 

Expand  

no modification since a very long time

the .chm is correct so ...

  • Developers
Posted (edited)
  On 5/29/2022 at 5:42 AM, jpm said:

It look like the web_html has not been uploaded but the ;html was

Expand  

Yep ... that was my point indeed ;) 
So we just need to adapt the upload part of the buildscript to use the appropriate subdir I guess.

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

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
  • Recently Browsing   0 members

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