Normal Topic QuickMacro vs SelectTreeItem (Read 557 times)
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
QuickMacro vs SelectTreeItem
Jan 10th, 2008 at 3:31pm
Print Post Print Post  
Is there any reason I shouldn't use QuickMacro over SelectTreeItem?

In the following code examples, QuickMacro seems to perform the function exactly the same as SelectTreeItem, and it's slightly less overhead (i.e. no variable needed). Plus, it can be much more versatile, since it can do pretty much anything I can do with the mouse and keyboard.

Code
Select All
QuickMacro("TREE SELECTION Search Update Menu!Navigation!Main Advance Record (Ctrl-F10)") 



Code
Select All
var Success as int
Success = @SelectTreeItem("Search Update Menu!Navigation!Main Advance Record (Ctrl-F10)") 


  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: QuickMacro vs SelectTreeItem
Reply #1 - Jan 10th, 2008 at 4:21pm
Print Post Print Post  
Quote:
Is there any reason I shouldn't use QuickMacro over SelectTreeItem?


Ah! I think I just thought of one -- being able to use a conditional like "If Success = 1" to verify that the tree command was present at the time.

But, I still would like to hear thoughts/comments on this.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: QuickMacro vs SelectTreeItem
Reply #2 - Jan 10th, 2008 at 4:43pm
Print Post Print Post  
I haven't run any timing tests, but I would imagine that the SelectTreeItem call would be much faster than using a macro.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: QuickMacro vs SelectTreeItem
Reply #3 - Jan 13th, 2008 at 4:43am
Print Post Print Post  
Thanks for the reply, Mark.

I ran into one thing that I couldn't get QuickMacro to do. It is when using "File/Save As" or the "Backup Application" command on the command tree. I can get QuickMacro to select one of those options, but it won't put focus in the box where I need to enter the filename.

Do you have any ideas why that would lock up at that point? The same macro commands that work in @Macro, don't work when parsed out line by line, and used by multiple QuickMacro calls. It doesn't seem to be able to get the focus into the dialoque box, in order to enter the filename.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged