Jump to content

Recommended Posts

Posted (edited)
  On 2/20/2023 at 9:19 PM, OJBakker said:

I have one addition with the function part, the handling of use of the keyword 'default'.

Expand  

Hi @OJBakker, thanks for your suggestion. I think it's a good idea and I will add a function example for the usage of 'default' ðŸĪ .

  On 2/20/2023 at 9:48 PM, Nisteo said:

But in help file I found this:

Not ("string1" == "string2")

 

Expand  

Hi @Nisteo, thanks for the hint ðŸĪ . I was referring to this wiki page article, but in the help file here for "Operators" I can not find NOT <> which is good. I will remove this "Not equal combinative" variant from the cheat sheet. Otherwise it's confusing a bit, you're right.

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted
  On 2/12/2023 at 3:17 PM, AutoBert said:

but don't forget the '#' :

Expand  

As you wished for @AutoBert, a "Comments" section is also included in the Cheat Sheet 😅ðŸĪŠ . See this post.

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted (edited)

@OJBakker, I extend the function section by a example of the usage of the Default keyword. Thanks again for your suggestion.
@Nisteo, I removed "Not <>", like I wrote before. Cheat Sheet is up-to-date.

If there are no more recommendations, ideas etc., I will publish the AutoIt (en) Cheat Sheet at the end of the week.
See this post for the links to the Cheat Sheet.

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted (edited)

Thanks @Nisteo, I checked it with VSCode and found unfortunately the same result and behavior 😔 .
I cannot adjust this in any way. It's the way cheatography build their frontend/website.

An working alternative is: Copy-paste from the PDF Version of the Cheat Sheet 😀 .

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted

Remarks:

  • Please put the links to the website/pdf in the first post, so people can actually find it without searching the entire thread.
  • Logical Operators (And, Or, Not, evaluating conditions) are not Binary operators (BitAnd, BitOr, etc, acting on values/bitmasks)!
  • Modulus "not %" is confusing (see previous point), and it's not an actual example of usage like all the others; maybe: Mod<tab>Modulus<tab>Mod(val1, val2)
  • the Select example does not emphasize the difference from Switch; the former evaluates conditional expressions (dynamic, slow), the latter specific (ranges of)  values (hardcoded, fast)
  • In Comparison Operators, ci and cl are difficult to distinguish, maybe use capitals (CI/CL)?
Posted

Hi @RTFC,

these are great remarks, thank you ðŸĪ . I will adjust several things and will comment some of your statements as I have to explain a little bit further (but later).

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted
  On 2/22/2023 at 10:20 AM, RTFC said:

Please put the links to the website/pdf in the first post, so people can actually find it without searching the entire thread.

Expand  

Done ✔

  On 2/22/2023 at 10:20 AM, RTFC said:

Logical Operators (And, Or, Not, evaluating conditions) are not Binary operators (BitAnd, BitOr, etc, acting on values/bitmasks)!

Expand  

You're right. The description/explanation in the wiki tutorial is wrong.

  On 2/22/2023 at 10:20 AM, RTFC said:

Modulus "not %" is confusing (see previous point), and it's not an actual example of usage like all the others; maybe: Mod<tab>Modulus<tab>Mod(val1, val2)

Expand  

Done ✔

  On 2/22/2023 at 10:20 AM, RTFC said:

the Select example does not emphasize the difference from Switch; the former evaluates conditional expressions (dynamic, slow), the latter specific (ranges of)  values (hardcoded, fast)

Expand  

Improved it by the help file example âœ”

  On 2/22/2023 at 10:20 AM, RTFC said:

In Comparison Operators, ci and cl are difficult to distinguish, maybe use capitals (CI/CL)?

Expand  

Done ✔

 

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted

My 2 cents worth ;)

Au3Check and Au3Stripper are extra utilities to enhance coding.
I would describe them in a separate section (if possible with a different color) and add a description to the block of each tool like "Au3Check - Checks the script for syntax errors".
So coders can distinguish between the core language and extra tools.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

As always, a valuable assessment from you @water, even if it's only 2 cents 😁 .

  On 2/23/2023 at 6:46 PM, water said:

[...] a separate section (if possible with a different color) and add a description to the block of each tool [...]

Expand  

I could change the color of this section/block (it's now a red one) and I could add a description ✔ .
Thank you @water ðŸĪ .

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted
  On 2/22/2023 at 12:43 PM, SOLVE-SMART said:

The description/explanation in the wiki tutorial is wrong.

Expand  

I tried to update the tutorial but noticed that

  • The information in the Operators section is just a duplication of the help file
  • The tables are badly formatted (by using HTML and not the wiki markups), other formatting is comkpletely wrong (e.g. precedence of operators)
  • The coding of the examples do not adhere to the standards (hungarian notation etc.) described in other tutorials
  • last but not least: The tutorial is described as "cheat sheet" ;)

If I find some spare time I will

  • Remove duplicated information. The help file is the bible of AutoIt. As we do not want to update information in multiple places I will just insert a link to the help file.
  • Update the examples so they adhere to our standards
  • Update formatting

What do you think?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)
  On 2/23/2023 at 10:46 PM, water said:

What do you think?

Expand  

In case you have some spare time @water, it would be wonderful if you would do this 😊 .
Thank you very much!

ðŸ’Ą I will double check and adjust the links in the Cheat Sheets which probably could refer to the wrong sites (tutorial etc.).

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
  • 2 weeks later...
Posted

Hi and thank you @kurtykurtyboy 😀 .

I had a similar suggestion (and discussion about it) in the german AutoIt forum, regarding Const. Let me try to explain.

The content which is in the Cheat Sheet is (hopefully) well thought out.

I agree with your question about what is useful (Static, Const etc.) and what not, so thank you 👍 .
The problem I see is that it's hard to differ between which should be in and what not. In case I would add Static and Const, I also should add several other things.
Maybe Dim, Enum etc.?! Or I should explain the usage of Arrays a bit more, because it's really essential to AutoIt (in my opinion). But then I would also have to add more information to the other data types and so on. That's why I tried to set a concrete cut.

A common Cheat Sheet (for other programming language) is not longer then two or three pages (I mean the PDF version). So in case I add several more things, I will break the "best practices" and I am would still be unsure about what also should be in and what not 😅 .

ðŸ’Ą More details information of the language can and should be read from the documentation/reference (in my opinion). The Cheat Sheet is just a quick overview and should drive curiosity to know more about the language.

Anyway, thanks again @kurtykurtyboy. How would you personally handle such a Cheat Sheet? I am totally open to change my view of point by good recommendations/suggestions and reasons 😇 .

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
  • 1 year later...
Posted (edited)

I found this cheat sheet very convenient when I started learning AutoIt some time ago. It really helped simplify the scripting process, especially given these complex syntactic features.

By the way, if you want to explore more resources on scripting languages, I recently came across a great site: https://notesonline.com which, during the training, will be able to help you create quite convenient notes. Try to simplify your life as much as possible. It's always useful to have different sources to expand your toolkit, isn't it?

Edited by Linbeardy

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