Search found 431 matches

by pgriffin
Fri Nov 09, 2007 2:07 am
Forum: Enhancement Suggestions
Topic: Classes
Replies: 9
Views: 14889

What sort of job requires a macro to be in excess of 10,000 lines? Just curious.
by pgriffin
Fri Nov 02, 2007 11:13 pm
Forum: Technical / Scripting
Topic: Cannot match window names in Vista
Replies: 9
Views: 8507

This may be stating the obvious, but have you tried using the * at the end of a shortened version of the window names you are finding?

So, of the window name appears to be ABCDEF, the use a window name of ABC*

Worth a try.

pgriffin
by pgriffin
Tue Oct 30, 2007 7:16 pm
Forum: General Discussion
Topic: How to get the file name ?
Replies: 2
Views: 4684

There are many different ways to strip off the path from the file name. Here is one example. let>FileAndPath=C:\Folder\Folder\MyFile.txt sep>%FileAndPath%,\,seg let>max=seg_count pos>.,seg_%max%,1,vDot if>vDot>0 sep>seg_%max%,.,fseg let>FileExt=fseg_2 let>TheFile=%fseg_1%.%FileExt% else let>TheFile=...
by pgriffin
Fri Oct 19, 2007 5:33 am
Forum: General Discussion
Topic: challenge with ms doing crazy things
Replies: 2
Views: 4951

before you go to the trouble of an uninstall/re-install. Are you running this script with the Editor window open? If you are, that would potentially interfere with your application (Firefox). You should close the editor and simply assign a hotkey to the macro or select RUN from the Macro Scheduler i...
by pgriffin
Wed Oct 17, 2007 1:42 pm
Forum: General Discussion
Topic: Gray Areas
Replies: 3
Views: 5803

If there is no legal agreement in place and someone decides to post code on an open forum, then I would say they would have a VERY difficult time trying to claim IP rights in a court of law. ...Unless you are a former star football player, in which case you could probably get away with murder.... :w...
by pgriffin
Wed Oct 17, 2007 1:39 pm
Forum: General Discussion
Topic: Using TextPad editor for Log files
Replies: 10
Views: 12236

hmm....Was Bob's first macro written to create posts on MJTNET Forums???

:lol:
by pgriffin
Mon Oct 15, 2007 6:44 pm
Forum: Beginners
Topic: Is there a way to abort a script, within the script itself ?
Replies: 3
Views: 3988

keep it simple whenever possible. No need for the brackets {} in this case. If>WW_RESULT=False goto>EndProgram else goto>WhatIsNext endif label>WhatIsNext ..... label>EndProgram mdl>All done Also, if you want to break execution of the program you might try adding an On_Event for a specific keystroke...
by pgriffin
Sat Sep 22, 2007 12:37 pm
Forum: Beginners
Topic: Copy value from editbox
Replies: 3
Views: 4502

Use View System Windows from the Tools menu to find the name of the Window Containing your edit box and the object name of the edit box itself, then use GetControlText> to read into a variable. No need to use Copy/Paste as long as you are dealing with a Windows app.
by pgriffin
Thu Aug 23, 2007 3:48 am
Forum: Technical / Scripting
Topic: Array Values for Dialog
Replies: 12
Views: 11489

Could you tell us if it matters which of these values from the text file ends up in your edit field? Why not put ALL the values in a ComboBox so you could select the one you want. I think what might be confusing everyone is that it seems random as to what you are trying to accomplish with your dialog.
by pgriffin
Thu Aug 23, 2007 3:30 am
Forum: Technical / Scripting
Topic: Anybody Got a Snippet for Counting the Numer of Times Looped
Replies: 7
Views: 6880

ok, so K-1 should do the trick. Still VBScript is not required for counting records.
by pgriffin
Thu Aug 23, 2007 2:23 am
Forum: Technical / Scripting
Topic: Anybody Got a Snippet for Counting the Numer of Times Looped
Replies: 7
Views: 6880

You have your own answer in your first post. The number of loops through your file until EOF will be contained in the variable k.

No VBScript required.
by pgriffin
Wed Jul 25, 2007 5:48 am
Forum: Technical / Scripting
Topic: Screen Resolution issue
Replies: 4
Views: 5308

with FindImgPos you will need to have the SAME image, including the resolution.
by pgriffin
Sat Jul 21, 2007 2:26 pm
Forum: General Discussion
Topic: Quick Launch Group Default Q
Replies: 2
Views: 4115

Are you thinking of Group Properties? There you can check or leave uncheck the option to include the group in the Quick Launch list. On my system, it is unchecked by default.
by pgriffin
Fri Jul 13, 2007 3:45 pm
Forum: Technical / Scripting
Topic: SetControlText> issue
Replies: 6
Views: 6537

Are you saying that if you use SetControlText> to populate the screen, then use PushButton> , the data is saved correctly?
by pgriffin
Fri Jul 13, 2007 2:10 pm
Forum: Technical / Scripting
Topic: SetControlText> issue
Replies: 6
Views: 6537

Will the Global Shop UI recognize the PushButton> command?

My guess is that it won't make a difference as to your problem, but worth a try so we can eliminate that method.
Sign up to our newsletter for free automation tips, tricks & discounts