Search found 3455 matches

by JRL
Fri Aug 05, 2005 4:52 pm
Forum: Technical / Scripting
Topic: xing out but script still running
Replies: 2
Views: 4609

Picking the "X" sets the dialog result to 2. Therefore, add a line:

If>result=2,exit

Where "exit" is a label at the end of the script.

Hope this makes sense and is helpful,'
Dick
by JRL
Sat Jul 30, 2005 2:07 pm
Forum: Technical / Scripting
Topic: simple dialog problem
Replies: 2
Views: 4713

Catbreath, The proper name of the variable is "Dialog1.Name" . Your script should work if you change the message line. Dialog>Dialog1 Caption=Dialog2 Top=192 Width=170 Left=16 Height=109 Edit=Name,24,16,121,Something I wrote. Button=In a Message,40,40,75,25,1 EndDialog>Dialog1 Show>Dialog1,result If...
by JRL
Sat Jul 30, 2005 5:54 am
Forum: Technical / Scripting
Topic: More dialog help.....
Replies: 7
Views: 8574

OK Daniel, here's another shot at the task.... This sample will give you four rows of three fields with the first column accepting four characters then auto tabbing to the second column which will accept 5 characters then auto tabbing to the third column which will accept 6 characters then auto tabb...
by JRL
Thu Jul 28, 2005 3:00 am
Forum: Technical / Scripting
Topic: More dialog help.....
Replies: 7
Views: 8574

daniel, This was taken straight from the help files and modified. Not well thought out, I'm sure this could be made more efficient but the basic concept is here. Try this: Dialog>Dialog1 Caption=Non-Modal Dialog Top=113 Width=264 Left=16 Height=113 Button=Update,16,8,75,25,5 Button=Exit,16,48,75,25,...
by JRL
Thu Jul 21, 2005 2:13 pm
Forum: Technical / Scripting
Topic: The option explicit and using arrays???
Replies: 4
Views: 6027

Thank you support for clearing this up. This is the third thread that I'm aware of in the past week on this same subject. Carsten's posting is the first one to mention VAREXPLICIT which should have been the obvious solution in the other threads. Personnally I knew VAREXPLICIT existed, but had never ...
by JRL
Wed Jul 20, 2005 6:55 pm
Forum: Technical / Scripting
Topic: WriteLn doesnt seem to recognise arrays
Replies: 5
Views: 6697

is there another way around it? Don't know.... but its a pretty simple fix. Only one line. When solutions are that easy I don't usually waste much energy looking for alternatives. is this considered a bug in the program? Again, Don't know... bug vs feature must be one of the oldest arguments in sof...
by JRL
Wed Jul 20, 2005 4:45 pm
Forum: Technical / Scripting
Topic: WriteLn doesnt seem to recognise arrays
Replies: 5
Views: 6697

CatBreath, Recently discussed this topic here: http://www.mjtnet.com/usergroup/viewtopic.php?t=2067 Basically, in certain circumstances using Macro Scheduler, you need to pass the arrayed value to a more static variable before you can use it. I don't know any hard and fast rules for determining thos...
by JRL
Wed Jul 20, 2005 1:20 pm
Forum: General Discussion
Topic: problem to use if with And and OR...?
Replies: 6
Views: 8381

You don't need or want the quotes around the computer's name. Try: If>%COMPUTER_NAME%=PC1234 MessageModal>%COMPUTER_NAME% Endif On the other hand, if you were using complex if statements as in your original posting, the quotes are necessary. Quoting form the Macro Scheduler help for complex expressi...
by JRL
Mon Jul 18, 2005 5:30 pm
Forum: Technical / Scripting
Topic: how can I detect,if a network driver is installed on my PC?
Replies: 5
Views: 8318

Not sure I'm understanding your question. What is it that you want to accomplish? From a DOS prompt, if you type "ipconfig/all" you will get a listing of pertinent data regarding your network connection. If this is what you're looking for, you could call this from Macro Scheduler and write the info ...
by JRL
Wed Jul 13, 2005 10:53 pm
Forum: Technical / Scripting
Topic: wait while excel loads file
Replies: 11
Views: 18424

Rob, Just set it up and tried it and it works fine for me. But in the testing I came accross a couple of things that might be problems. 1) You have a macro you're executing so obviously your file has a macro, how is your Excel security set up for opening files with macros? Do you need to account for...
by JRL
Wed Jul 13, 2005 9:41 pm
Forum: Technical / Scripting
Topic: wait while excel loads file
Replies: 11
Views: 18424

Rob, In my Excel the file name is in the title bar with Excel. It looks something like "Microsoft Excel - Filename.xls". What would happen if you changed the last part of the script to: //run trim columns macro //Don't know if this step is necessary but it might be Let>openfile=file_names_%k% WaitWi...
by JRL
Wed Jul 13, 2005 4:42 pm
Forum: Technical / Scripting
Topic: I/O Error
Replies: 3
Views: 5412

Sounds more like a OS error to me. What does the script do? I/O error would imply that some input/output device is involved such as a com port ,a parallel port a USB port, keyboard, mouse, monitor, etc...

Hope this helps,
Dick
by JRL
Wed Jul 13, 2005 4:36 pm
Forum: Technical / Scripting
Topic: calculating values from a text file
Replies: 6
Views: 7376

B.W. This is also in response to the thread found here: http://www.mjtnet.com/forum/viewtopic.php?p=8412#8412 I can duplicate your error. Running the script exactly as posted within MS and as an EXE I can cause the error but it seems to be consistent. this is what I found. If C:\test.txt contains on...
by JRL
Wed Jul 13, 2005 4:44 am
Forum: General Discussion
Topic: Mystery - running in Dev Vs Exe file
Replies: 5
Views: 7889

Hi Bob, Michael and Black Wisdom I agree that sometimes a variable needs to be defined twice when a sequential variable is involved. I submitted this sample earlier today in response to a different question. It ran fine within Macro Scheduler. I tested it before posting. I will see what happens when...
by JRL
Wed Jul 13, 2005 3:26 am
Forum: Technical / Scripting
Topic: GetFileList> Does Not Return An Alphabetical Listing
Replies: 6
Views: 9022

Michael, No, I don't think Getfilelist will give you an alphabetized list. However, you can work around it with DOS. your concise eloquent line: GetFileList>\\Emfile0009c02\strve-f03$\BFS\SATELLITE\NOC Requests\Bendigo NOC requests\%the_year%\Urgent Account Recs\*.csv,file,%CRLF% can be replaced by ...
Sign up to our newsletter for free automation tips, tricks & discounts