Sign in to follow this  
Followers 0
truecolor

search a kind of single-step-modus

5 posts in this topic

#1 ·  Posted (edited)

Hello,

I´m new here and a AutiIt-newbie ... but very inspired.

(to begin with a sorry ´cause my following germish)

I wrote my first script with a lot of mouse- and sleep-commands

e.g.

MouseClick("left", 35, 35, 1)

Sleep(1000)

MouseClick("left", 39, 307, 1)

MouseClick("left", 215, 115, 1)

and so on.

The combination of coordinates and sleep-times didn´t harmonize in that script. So I had to watch, how my first script-run uninterruptedly damaged one by one of my opened word-documents (damn).

It is possible to run the script as a single-step-mode, so that (with minimized damage) I can find the bad code in a long list of commands?

Best regards ... tc

Edited by truecolor

Share this post


Link to post
Share on other sites



You can use Opt ( "TrayIconDebug", 1 )


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

You can use Opt ( "TrayIconDebug", 1 )

Thanks, but I need a way to stop/pause the script-run before the next instruction begins.

btw. i can´t find the the "tray icon tip"

Share this post


Link to post
Share on other sites

A simple way could be using MsgBox between each step. Not only will it pause the script until you click "Ok" but you can have it display valuable information (such as the current value of a variable)


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
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
Sign in to follow this  
Followers 0