Jump to content

Why AutoIt, and not another language like C# or Python?


aryan-eliza
 Share

Recommended Posts

AutoIT V3 is a freeware basic-like scripting language designed to automate the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movements, and window(control) manipulation to automate tasks in a way that is not possible or reliable with other languages.

Python, being cross-platform, cannot place other Windows remote controls or keystrokes in the general-purpose language. There may be ways to reach Windows-specific calls to do the same, but the code will be much more complex.

C # has the same problem. This targets ".Net" run-time and requires some awkward calls to work. Also, C # is compiled, so the code has to be run, compiled, and then run. This makes the development process more difficult and will take more time.

Link to comment
Share on other sites

4 hours ago, PaulBellamy said:

This makes the development process more difficult and will take more time.

Although true, it also means the resulting binary is more efficient too... though this can be debated for C# ;)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

i don't enjoy object oriented languages, but i can make stuff with c# and i understand python/js to some extent. i learned java in high school and c++ in computer science courses but hated them. what got me into autoit was when i was learning windows batch, i somehow discovered windows-specific scripting languages and it was quick to install and test out and i really liked it

autoit is just an overall nice language, though it's underrated how simple yet powerful it is and many don't even know what it is, but that's alright

Link to comment
Share on other sites

  • 2 months later...

I use it as a quick easy solution (most of the time) . I do C# or others. Python, simply put, security issues.  MutliThreading I would consider C#/C/C++
I think MutliThreading been covered by autoit but i haven't took the time to learn about it.
Which makes C# easier for multithreading solutions. 

Edited by major_lee
Link to comment
Share on other sites

  • Moderators
48 minutes ago, major_lee said:

I think MutliThreading been covered by autoit but i haven't took the time to learn about it.

https://www.autoitscript.com/trac/autoit/wiki/AutoItNotOnToDoList

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

On 3/8/2021 at 4:35 AM, PaulBellamy said:

AutoIT V3 is a freeware basic-like scripting language designed to automate the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movements, and window(control) manipulation to automate tasks in a way that is not possible or reliable with other languages.

Python, being cross-platform, cannot place other Windows remote controls or keystrokes in the general-purpose language. There may be ways to reach Windows-specific calls to do the same, but the code will be much more complex.

C # has the same problem. This targets ".Net" run-time and requires some awkward calls to work. Also, C # is compiled, so the code has to be run, compiled, and then run. This makes the development process more difficult and will take more time.

It can all be done in other languages. It's just a quick and easy solution to use au3. For example. GetCursorPos function (winuser.h) - Win32 apps | Microsoft Docs
From my experience, learning autoit will improve your understanding of how windows works and your capacity to comprehend  C/C#/C++ and the other languages.

Additionally, it takes less then a minute to download autoit. Visual Studios can take hours. Also taking up less space.
 

Edited by major_lee
Additionally
Link to comment
Share on other sites

5 hours ago, major_lee said:

Python, simply put, security issues.

The issue isn't limited to python though, if you are having issues with security in python, you would probably have them in other languages too... unless you mean 3rd party libraries, then it is subjective.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

  • 2 weeks later...
On 5/11/2021 at 11:59 PM, TheDcoder said:

The issue isn't limited to python though, if you are having issues with security in python, you would probably have them in other languages too... unless you mean 3rd party libraries, then it is subjective.

I don't understand your reply, how can I help you?

Link to comment
Share on other sites

@major_lee Was my understanding correct that you said python had security issues?

On 5/12/2021 at 3:50 AM, major_lee said:

Python, simply put, security issues.

 

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...


 

Portugues

English

Desculpa pelos prováveis erros pois esse texto foi traduzido do portugues para o inglês pelo Google

Sorry for the probable errors because this text was translated from Portuguese to English by Google

Título:

Futuro do AUTOIT   com Python

Title:

Future of AUTOIT   with Python

Olá a todos.

Antes de tudo gostaria de deixar bem claro que adoro a linguagem “AUTOIT  ” pois não tem frescura na sua forma de construção.

 

Concordo com todas as vantagens descritas acima,Mas existem alguns problemas de se usar “AUTOIT  ” e isso gostaria de descrever aqui e aceito críticas sobre o que tenho a dizer: 

Hello everybody.

First of all, I would like to make it clear that I love the “AUTOIT  ” language, as it has no frills in its construction.

 

I agree with all the advantages described above, but there are some problems with using “AUTOIT  ” and these I would like to describe here and I accept criticism on what I have to say:

  1. Apesar de ser excelente em aplicações Windows tem a limitação de existir apenas para esse ambiente . Sinto muita falta de um “AUTOIT  ” para Mac e Android ou até mesmo Linux

  2. O outro problema sério que eu tive é de convencer o cliente que o executável de AUTOIT   não é um vírus( Sei que isso não é verdade mas os antivírus entendem que qualquer script feito em AUTOIT   pode ser um provável vírus)

  1. Despite being excellent in Windows applications, it has the limitation of existing only for that environment. I really miss an “AUTOIT  ” for Mac and Android or even Linux

  2. The other serious problem I had is convincing the customer that the AUTOIT   executable is not a virus (I know this is not true but antivirus understands that any script made in AUTOIT   can be a probable virus)

Mas a principal vantagem de se usar AUTOIT   é a velocidade de aprendizado e as suas funcionalidades que são mais intuitivas do que qualquer outra linguagem.

But the main advantage of using AUTOIT   is the speed of learning and its features that are more intuitive than any other language.

Outro assunto

Another topic

Recentemente estou usando o freecad e internamente ele usa a linguagem Python para automatizar e desenvolver novos recursos para esse fabuloso CAD gratuito.

Recently I'm using freecad. Internally it uses the Python language to automate and develop new features for this fabulous free CAD.

Consequentemente estou aprendendo a usar essa linguagem que promete ser de fácil aprendizado.

Consequently I am learning to use this language that promises to be easy to learn.

Como sou um programador das antigas não gosto muito da programação orientada a objeto.  

Entendo a sua praticidade e forma de raciocínio mas como disse “sou programador das antigas” e tem um certo preconceito com orientação a objeto.

Mas não posso negar as vantagens de se pensar em programação dessa forma.

Recentemente encontrei uma biblioteca chamada PyAutoGui

 Essa biblioteca se propõe a automatizar teclado, mouse e tela.

Como eu disse não sou um programador de Python  e não tenho o aprendizado para usar essa biblioteca porém imagino que isso é um problema para o futuro do AUTOIT  

As "I'm an old school programmer" I don't really like object-oriented programming (OOP).

I understand your practicality and way of reasoning but as I said "I'm an old-time programmer" and have a certain prejudice with object orientation (OOP).

But I can't deny the advantages of thinking about programming this way.

I recently found a library called PyAutoGui

  This library proposes to automate keyboard, mouse and screen.

As I said I'm not a Python programmer and I don't have the learning to use this library but I imagine this is a problem for the future of AUTOIT  

Pretendo abrir um novo fórum com o título

I want to open a new forum with the title

Futuro do AUTOIT   com python(biblioteca PyAutoGUI)

Future of AUTOIT   with python(PyAutoGUI library)

No intuito de discutir a possibilidade da grandiosa equipe de programação do AUTOIT   para desenvolver uma nova biblioteca em Python que use toda a capacidade da linguagem AUTOIT   dentro do Python

In order to discuss the possibility of the great AUTOIT  programming team to develop a new Python library that uses the full capabilities of the AUTOIT  language within Python

Realmente tenho muito medo de perder o AUTOIT   para uma concorrência desleal pois  com python as limitações do AUTOIT  podem ser eliminadas devido a multiplataforma da linguagem Python

I'm really afraid of losing AUTOIT  to unfair competition because with python the limitations of AUTOIT  can be eliminated due to the cross-platform of the Python language

Espero sinceramente que esse essa discussão não  desenvolva uma rixa ou controvérsia baseado em alguma vaidade ou ego dos desenvolvedores .

Infelizmente a Microsoft e outras grandes corporações querem transformar o Python em uma linguagem Universal para qualquer computador não importa Qual seja a plataforma e o alto it não pode ficar Fora dessa evolução

I sincerely hope that this discussion does not develop into a rift or controversy based on some developer vanity or ego.

Unfortunately Microsoft and other big corporations want to turn Python into a Universal language for any computer no matter what the platform is and AUTOIT  cannot stay out of this evolution

 

Link to comment
Share on other sites

Having the autoit language on other platforms is not the issue its more the complete ecosystem around it based on internals of windows to interact with gui controls. It will just never be the same on a linux platform.

Powershell looks for scripting nice, cross platform, pre installed, the variabele naming feels like autoitscript. Its just a personal preference probably based on the ages you grew up.

Age 75 probably cobol and rpg

Age 65 probably c an assembler

Age 55 probably c++ and Pascal

Age 50 java

Age younger then 30 probably python

 

Edited by junkew
Link to comment
Share on other sites

PyAutoGui interact only with active/focused windows.

As far as I can see it's only few (usefull) functions, in contrary to AutoIt as is full complex language with possibility of interacting with not focused controls and calling all Win32 API functions so you are almost unlimited in your possibilities.

AutoIt is my main programming language for ALL and my skills in it can be rated as "guru" as somebody stated here sooner in this topic 🙂

so I can use it for ALL my needed tasks ...

But I like Python and its way & future too. I don't develop in it but I like nice readability of its source code (the same for AutoIt) ...

Link to comment
Share on other sites

  • Developers
2 hours ago, junkew said:

Age 75 probably cobol and rpg

Done those too but not 75 as yet 😉

but no way they ever be my preference!

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

Link to comment
Share on other sites

4 hours ago, odaylton said:

As I said I'm not a Python programmer and I don't have the learning to use this library but I imagine this is a problem for the future of AUTOIT 

I cannot really see that as a threat, though I know nothing about a library called PyAutoGui.

I do imagine though, that if it is in the Python language, then that alone will be a deterrent to anyone who prefers the simplicity of AutoIt and its no nonsense language that is more eminently suitable for the average non programming Joe or Julie, that wants to get started with coding as simply as possible.

And AutoIt can already be leveraged by other programming languages using its DLL etc.

Cross-Platform is a big deal to some, but not the huge majority. It would take something significant for that to change in the next ten years.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

5 hours ago, odaylton said:

Future of AUTOIT   with python(PyAutoGUI library)

I've never used AutoIt for click-click, it can, but that is only an aspect.
If other solutions can do the other things AutoIt does, with a similar writing style in a single small file without dependencies .., I'll look into it.

5 hours ago, odaylton said:

I want to open a new forum with the title

so, why didn't you instead of reopening an old thread ?

5 hours ago, odaylton said:

Recently I'm using freecad. Internally it uses the Python language to automate and develop new features for this fabulous free CAD.

..it could have used LUA. Then your advise would be LUA is on the rise ???, what about JAVA ?

5 hours ago, odaylton said:

As "I'm an old school programmer" I don't really like object-oriented programming (OOP).

I was coding with Borland pascal 5.5 when I stared and it had OOP. OOP is not a bad thing.

...In any case, it may suck to have to learn something new, in this case Python. AutoIt is the best there is for what it does, and I'm not talking as a fanatic. I'll code in any language that fits the need.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers
29 minutes ago, argumentum said:

why didn't you instead of reopening an old thread ?

He did, actually 2 other new threads after this post, which I zapped as the discussion already started here and we don't need it spread over 3 threads.

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

1 hour ago, Jos said:

Ele fez, na verdade, 2 outros novos tópicos após esta postagem, que eu zapeei porque a discussão já começou aqui e não precisamos que ela se espalhe por 3 tópicos.

sorry for the recklessness but I didn't know which of the 2 would be the most relevant... could you help me because the topic is very important for the whole community
So I'll continue here...

Link to comment
Share on other sites

as i said in the other post deleted by Jos...

Como sou um programador das antigas não gosto muito da programação orientada a objeto.  

Entendo a sua praticidade e forma de raciocínio mas como disse “sou programador das antigas” e tem um certo preconceito com orientação a objeto.

Mas não posso negar as vantagens de se pensar em programação dessa forma.

Recentemente encontrei uma biblioteca chamada PyAutoGui

 Essa biblioteca se propõe a automatizar teclado, mouse e tela.

Como eu disse não sou um programador de Python  e não tenho o aprendizado para usar essa biblioteca porém imagino que isso é um problema para o futuro do AUTOIT   

Since I'm an old school programmer, I don't really like object-oriented programming.

I understand your practicality and way of reasoning but as I said "I'm an old-time programmer" and have a certain prejudice with object orientation.

But I can't deny the advantages of thinking about programming this way.

I recently found a library called PyAutoGui

  This library proposes to automate keyboard, mouse and screen.

As I said, I'm not a Python programmer and I don't have the knowledge to use this library, but I imagine this is a problem for the future of AUTOIT

No intuito de discutir a possibilidade da grandiosa equipe de programação do AUTOIT    para desenvolver uma nova biblioteca em Python que use toda a capacidade da linguagem AUTOIT    dentro do Python

In order to discuss the possibility of the great AUTOIT programming team to develop a new Python library that uses the full capabilities of the AUTOIT language within Python

Realmente tenho muito medo de perder o AUTOIT    para uma concorrência desleal pois  com python as limitações do AUTOIT   podem ser eliminadas devido a multiplataforma da linguagem Python

I'm really afraid of losing AUTOIT to unfair competition because with python the limitations of AUTOIT can be eliminated due to the cross-platform of the Python language

Espero sinceramente que  essa discussão não  desenvolva uma rixa ou controvérsia baseado em alguma vaidade ou ego dos desenvolvedores .

Infelizmente a Microsoft e outras grandes corporações querem transformar o Python em uma linguagem Universal para qualquer computador não importa Qual seja a plataforma e o alto it não pode ficar Fora dessa evolução

I sincerely hope this discussion does not develop into a rift or controversy based on some developer vanity or ego.

Unfortunately, Microsoft and other large corporations want to transform Python into a universal language for any computer, no matter what the platform and how high it is.

Existem outras bibliotecas, inclusive uma chamada AUTOIT  e não acredito que são os criadores da linguagem que nós tanto amamos

There are other libraries, including one called AUTOIT and I don't believe they are the creators of the language we love so much

Acredito na má intenção dos criadores dessas bibliotecas de que, através da popularidade da nossa linguagem AUTOIT  ganhar alguma fama Dentro da comunidade Python

I believe in the bad intention of the creators of these libraries that, through the popularity of our AUTOIT language, we gain some fame within the Python community.

Apesar desse assunto posso aparecer espinhoso espero que através desse tópico do fórum uma nova discussão sobre os rumos do desenvolvimento da linguagem AUTOIT  sobreviva a toda modernidade da programação multiplataforma 

Although this subject may appear thorny, I hope that through this forum topic a new discussion on the directions of development of the AUTOIT language will survive all the modernity of multiplatform programming

Link to comment
Share on other sites

2 hours ago, argumentum said:

I've never used AutoIt for click-click, it can, but that is only an aspect.
If other solutions can do the other things AutoIt does, with a similar writing style in a single small file without dependencies .., I'll look into it.

so, why didn't you instead of reopening an old thread ?

..it could have used LUA. Then your advise would be LUA is on the rise ???, what about JAVA ?

I was coding with Borland pascal 5.5 when I stared and it had OOP. OOP is not a bad thing.

...In any case, it may suck to have to learn something new, in this case Python. AutoIt is the best there is for what it does, and I'm not talking as a fanatic. I'll code in any language that fits the need.

reopening an old thread ?....

The issue I'm raising is that there are people in the Python World who are using the name and idea of Autoit in Python.
As the fantastic developers of our work environment are very skilled, I think that migrating all this knowledge to a multi-platform option would be great

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