Jump to content
Sign in to follow this  
2000a

display current script line number

Recommended Posts

Is it possible to display the line number of the script at execution. Similar to Opt('TrayIconDebug', 1)... If not then, can I store Opt('TrayIconDebug', 1) into a variable?

For example:

1 Run(...)

2 Winwait (...)

3 $Line = ...

4 MsgBox(0, 'Current Script Line', 'Current Script Line is: ' & $Line) ;$Line = 4

Any help is appreciated. thanks

Share this post


Link to post
Share on other sites

Is it possible to display the line number of the script at execution.  Similar to Opt('TrayIconDebug', 1)... If not then, can I store Opt('TrayIconDebug', 1) into a variable?

For example:

1 Run(...)

2 Winwait (...)

3 $Line = ...

4 MsgBox(0, 'Current Script Line', 'Current Script Line is: ' & $Line) ;$Line = 4

Any help is appreciated.  thanks

<{POST_SNAPBACK}>

use the Scite editor you have a wonderful addition/suppresion of debug command.

Even tracing with ConsoleWrite :lmao:

Share this post


Link to post
Share on other sites

I want the line number to display on a messagebox somewhere in the script. I don't need this while writting the script on SciTE.

Is there a way of getting the text from "Opt('TrayIconDebug', 1)" and putting it in a varaiable? It displays in the trayicon at executions...

$myVar=Opt('TrayIconDebug', 1) ???

many thanks.

Share this post


Link to post
Share on other sites

I guess that it is not possible to get the text from the tooltip (system tray) that is set by: Opt('TrayIconDebug', 1)...

Thank you anyways. AutoIt3 is great.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...