Jump to content

display current script line number


2000a
 Share

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

Link to comment
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:

Link to comment
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.

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