Sign in to follow this  
Followers 0
Guest raven

view current script line / debug scripts

21 posts in this topic

I realize v3 is still beta, but as it is getting closer to the stable release I thought I'd just mention that I miss the way v2 displayed where it was in the script, by showing the line number & the actual script line, when you double clicked the tray icon.

Is anything like this implemented in v3 yet (or will it be soon?). being able to see where Autoit is in the script, is pretty vital for debugging.

I spent all day today migrating and improving a v2 lotus notes client configuration script and it was a nightmare :whistle:

Share this post


Link to post
Share on other sites



I use TrayTip("title", "text", timeout, [options]) a lot now in my debugging of script problems.

I miss that status window as well.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Yeah, that works I guess. Since I did it on a Win98 machine I put in a number of;

ProgressSet(0,"checkpoint 1","")

ProgressSet(0,"checkpoint 2","")

...

around where I guessed the problem would be, and worked it out from there

but it really feel like something that AutoIt should handle internally. Much less

messy.

Share this post


Link to post
Share on other sites

I just started getting into AutoIt3 and it's great, all except for that window being gone, PLEASE OH PLEASE bring it back. It's really tough to know where a script got stuck at, especially when you are using it to roll out software.

Share this post


Link to post
Share on other sites

I upload to Jon an update that show in a balloon the line # /Statement when double-clicking on the AutoIt icon.

That's a very minimal version of the complete debug stuff I did with David.

I hope Jon will integrate that before the full Debug promise for after the beta.

Kind of nonreg with AutoIt V2

Cheers :whistle:

Share this post


Link to post
Share on other sites

Thanks for the info, and I can appreciate the "Never let it hang" motto, hehe, but I don't see why this feature *should* be left out. I just used AutoIt2 to script Microsoft Great Plains (huge financial piece of software) here at work and it saved HOURS AND HOURS AND HOURS of work. God Bless AutoIt! Unfortunately, myself not being very "scripty" I made some careless errors and the script hung a few times. It was awfully convenient to be able to pull up the tray icon and see my mistake. I'm sorry I'm not a developer and can't contribute the code to put it back in, but I SURE WOULD appreciate having it. The few scripts I've created so far have been flawless thanks to the SetRunAs option, how nice it was to roll out a program to a bunch of non-admin users without having to log them out and back in, and by using the ControlLeftClick on the buttons, instead of MouseClick, X, Y, man this program is a Godsend! If at all possible, please restore the capability that was in V2 to see it, or go with the last post and do a balloon tip, if you say, right click on the A, instead of left clicking to pause it. Am I the only person who REALLY wants to keep this feature?

Share this post


Link to post
Share on other sites

I believe the balloon tip is in the "unstable" version as an AutoItSetOption.

:whistle:

you almost right. Jon put the traytip version not the balloon one B)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I don't think the balloon stuff works on all OSes.  I could have dreamt that though.

You are correct, Jon. Ballon Tips are only available on Windows 2000 or later. That is also why the TrayTip function I wrote had to derive its own structure from NOTIFYICONDATA; the members of that structure I needed to create a balloon tip coming out of the tray icon are not present unless WINVER is >= 500. The same holds true when trying to create a balloon tip instead of a tooltip anywhere else on the screen, too. Edited by Valik

Share this post


Link to post
Share on other sites

You AutoIt guys are nothing short of geniuses, let me tell you! I'm a PC Support guy that does software installs all day long. I have created a function that does the winwait, blocks input, winactivate, winwaitactive, then does a controlleftclick, and enables input again. I'm telling you, I'm proud of myself, hehe. But you guys are The Bomb! On this subject, the balloon tip or tray tip is cool, and would definitely be sufficient, but if you're having trouble with it, why not do it the same way you did it before? Was there a downside to doing it that way? Thanks again for a phenominal, job and life changing, heavenly piece of freeware. I'm a big fan, hehe, if you can't tell.

Share this post


Link to post
Share on other sites

controlleftclick

Just an FYI...

controlleftclick doesn't work anymore in the next version!!.. (The current unstable version now has the command "controlclick" where you can select the left ot right mouse click.)

hit that problem myself today :whistle:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Just an FYI...

controlleftclick doesn't work anymore in the next version!!.. (The current unstable version now has the command "controlclick" where you can select the left ot right mouse click.)

hit that problem myself today  B)

ControlClick ( "title", "text", "classnameNN" [, button] [, clicks]] )

The button to click, "left", "right" or "middle". Default is the left button.

so it should be ok if you use "left" in the 4th parameter :whistle:

Share this post


Link to post
Share on other sites

jpm.. yes i know but i downloaded the latest unstable made a few minor changes to a script i use for a while .... compiled it and it hit this invalid command "controlleftclick"

It wasn't a big issue ... but something to check out when you recompile a existing script !!


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

if you download the latest unstable, it is normal that ControlLeftClick is rejected because now it is ControlClick

Edited by jpm

Share this post


Link to post
Share on other sites

ewwww. this one is gonna hurt... off to Find/Replace throughout my script folder...

B)

Will hurt for sure... but talking about hurting...what about the "hanging" all day ?? . doesn't that hurt ?? :whistle:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Not so bad the "left" is optional so just find ControlLeftClick and Replace with ControlClick - left click is assumed if not specified.

And it means you can do context senstive menus (right click) on many things. :whistle:

Share this post


Link to post
Share on other sites

Not so bad the "left" is optional so just find ControlLeftClick and Replace with ControlClick - left click is assumed if not specified.

And it means you can do content senstive menus (right click) on many things. :whistle:

agree... no problem for me... just shared this info that its something to check when recompile! ...

like Larry said... just a search replace on all your scripts...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Or as a temporary solution, you could wrap ControlClick in the name ControlLeftClick and include that function wherever you need to. That would avoid rewriting...

Share this post


Link to post
Share on other sites

Hey guys, thanks for the info, I believe I had read the controlleftclick going away in another forum post, but that was a long time ago, so I didn't think it still applied. I know this is a bit offtopic, but I wanted to share a piece of sofware with you Masters of the Scripting Universe if you haven't already heard of it: beyondexec: http://www.beyondlogic.org/consulting/remo.../BeyondExec.htm

It is (IMHO) ultimate companion to AutoIt. I used it to execute an autoit script on a slew of training room machines that set the autoadminlogon registry key and then used the psshutdown utility to reboot all the PCs. They automatically logged in as an admin user, and then I used beyondexec again to kickoff a script that installed Microsoft Source Safe on the whole lot. I edit all my scripts with Crimson Editor, it is the best freeware text editor (again, IMHO). Anyway, about this hanging stuff. I assume the "unstable" version WILL be the next version once it's deemed "stable", is that correct? So am I to assume that there will be some way to know what line of code AutoIt is processing whether it be the tray, a balloon tip, or like the old status window?

Thanks again to you guys, you should've seen the twinkle in my eye when I watched a room full of PCs nearly in sync installing software automatically while I leaned back in my chair to pat myself on the back, hehe. :whistle:

Share this post


Link to post
Share on other sites

Well I downloaded the latest "unstable" version and it has the tray tip showing the line it's processing, absolutely PERFECT, just what I had in mind, unobtrusive and straight to the point. Guess there's no need for this thread any more, unless I'm wrong in assuming what's in this version WON'T make it to the final product.

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