Jump to content

Recommended Posts

Posted

Hello,

I'm new to AutoIt and I'm having a problem when I launch a "record". This problem has probably already been addressed but I haven't been able to solve it.

To provide more precision, I launch AU3Record manually and not from a script. (I haven't been able to install it to have it in "Tools" on SciTe).

See the image below, when I go to position myself on a window or on the desktop, the "_WinWaitActivate" command always generates an error in the script.

Any solutions?

 

Thanks in advance

image.png.acd9baf2c312588c043521c36e246164.pngimage.png.8c46ded44d0ccbf81dd5cc82996e0b14.png

 

  • Developers
Posted
13 minutes ago, DravennMX said:

I'm new to AutoIt and I'm having a problem when I launch a "record".

mmm..  au3record isn't distributed for quite some time now, so you have been goofing around yourself....  right?
...   

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 have successfully executed my code with F5 from Scite. When I run the code below, I get the error message that I posted above.

When I manually modify the code by writing "WinActivate" instead of "_WinWaitActivate", it works again.

But every time I record with AU3record, it records "_WinWaitActivate".

 

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.16.1
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
_WinWaitActivate("Program Manager","")
MouseMove(435,428)
MouseDown("left")
MouseMove(436,428)
MouseUp("left")
MouseMove(908,364)
MouseDown("left")
MouseMove(910,362)
MouseUp("left")
MouseMove(512,680)
MouseDown("left")
MouseMove(509,680)
MouseUp("left")
MouseClick("left",689,688,1)

 

 

 

PS:image.thumb.png.fa4fe194f32ab11f3f0216f2ae1905b5.png

Posted
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.16.1
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
_WinWaitActivate("Program Manager","")
MouseMove(435,428)
MouseDown("left")
MouseMove(436,428)
MouseUp("left")
MouseMove(908,364)
MouseDown("left")
MouseMove(910,362)
MouseUp("left")
MouseMove(512,680)
MouseDown("left")
MouseMove(509,680)
MouseUp("left")
MouseClick("left",689,688,1)

 

  • Developers
Posted
13 minutes ago, DravennMX said:

When I manually modify the code by writing "WinActivate" instead of "_WinWaitActivate", it works again.

That is because you are not running the originally created code but only a portion of it.

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

_WinWaitActivate is not a standard function.

Replace it with something like this:

WinActivate("Program Manager","")
if WinWaitActive("Program Manager","",5) then
    msgbox(0,"Error", "Program Manager not active")
    exit
endif

Posted

Merci pour vos réponses.

Mon problème n’est pas de corriger manuellement ce code.

 

J’aimerais que l’outil AU3record ne me donne pas le « _Winwaitactivate » lorsque je fais un enregistrement.

Je veux l’utiliser pour activer les fonctions Windows et simuler des clics de souris, je ne comprends pas qu’il ne s’assure pas d’exécuter le code « _Winwaitactivate ».

Y a-t-il une solution, un paramètre à activer ? 😕

  • Developers
Posted

This is an English forum!
 

2 minutes ago, DravennMX said:

J’aimerais que l’outil AU3record ne me donne pas le « _Winwaitactivate » lorsque je fais un enregistrement.

As stated: Au3record is not supported anymore so any changes are yours to make!

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