Search found 3451 matches

by JRL
Wed Mar 15, 2006 2:48 pm
Forum: Technical / Scripting
Topic: Proper use of "upper"?
Replies: 6
Views: 5770

Thanks Me_again that works. Using the concept you supplied I've added a line and made the problem resolution more generic. The following does the same thing without any need to know the length of the string. Let>prefix=x Let>suffix=inventory Concat>prefix,suffix Let>prefix={upper(%prefix%)} MidStr>p...
by JRL
Tue Mar 14, 2006 6:56 pm
Forum: Technical / Scripting
Topic: Proper use of "upper"?
Replies: 6
Views: 5770

Proper use of "upper"?

Ran into this issue this morning. It's probably something I'm missing. The ERP software I work with has workorder numbers that are in two parts, job number and job number suffix. The job number always has 6 characters and the suffix always has 3 characters. Even though the title is "job number" the ...
by JRL
Fri Mar 10, 2006 6:53 pm
Forum: Technical / Scripting
Topic: Max CPU Usage
Replies: 8
Views: 8821

Is CPU usage the problem? If yes then look for a loop running wild. A small wait... something like Wait>0.01 in an otherwise untethered loop can cut CPU usage from 90% down to 2% See: http://www.mjtnet.com/forum/viewtopic.php?t=2358&highlight=cpu+loop Or.. Is it the database that's causing the probl...
by JRL
Thu Mar 09, 2006 11:30 pm
Forum: Beginners
Topic: Using Variable to display input fields in Dialog Box
Replies: 1
Views: 3123

Try this: DeleteFile>c:\~newbox~.scp ASK>Do you want to Show the Text ?,showtext If>%showtext%=YES Let>text=Display the Text Else Let>text= Endif Dialog>Dialog1 Caption=Dialog1 Width=445 Height=250 Top=234 Left=253 Label=%text%,176,48,true Button=exit,328,168,75,25,2 Button=Continue,40,168,75,25,3 E...
by JRL
Thu Mar 09, 2006 10:30 pm
Forum: Technical / Scripting
Topic: Windows uptime help
Replies: 7
Views: 8114

One simple plan would be to write the time and date to a file as the computer boots up, then write a macro that reads the file and compares it to the "current" time and date. For Example: Put the following lines in a .bat file and put that file in the startup folder. echo | more | time | find "curre...
by JRL
Fri Mar 03, 2006 5:01 pm
Forum: Technical / Scripting
Topic: Detect Image Data on Windows Clipboard plus Save and Restore
Replies: 18
Views: 26402

jpuziano, I've been following this post with interest. Waiting to see what you and Marcus work out. I am not a programmer and know very little about how graphic images are processed within the operating system. (I can use copy and paste.) I've been surprised by Marcus' responses regarding the diffic...
by JRL
Thu Mar 02, 2006 10:06 pm
Forum: General Discussion
Topic: Remove reading Blank line
Replies: 4
Views: 6056

Sorry for being indecisive. I thought I'd misread your post the first time, so I edited the response. Curious, what version of MS are you using? I've got version 8.0 and I could not cause double spacing from a list box even though I feel I've had this problem in the past and resolved it with WLN_NOC...
by JRL
Thu Mar 02, 2006 9:02 pm
Forum: General Discussion
Topic: Remove reading Blank line
Replies: 4
Views: 6056

Use "nothing" Iffileexists>C:\FAXRouter\emaillist.txt Let>listselect1= Let>z=1 Label>readlist1 ReadLn>C:\FAXRouter\emaillist.txt,z,catagory1 If>%catagory1%=##EOF##,gotlist1 Let>z=z+1 If>%catagory1%=,readlist1 ConCat>listselect1,%catagory1% ConCat>listselect1,%CRLF% Goto>readlist1 Label>gotlist1 Else...
by JRL
Fri Feb 24, 2006 5:38 am
Forum: Technical / Scripting
Topic: command line 128 char limit
Replies: 6
Views: 6327

Its been a while since I've had to deal with Win95 and never had a copy of Win98 but It seems like 128 characters was the command line limit. Quick search in Google Groups and there are apparently config.sys settings that can extend the character length limit but I would think that would apply only ...
by JRL
Tue Feb 21, 2006 8:35 pm
Forum: Technical / Scripting
Topic: Can you display and update real time within a button?
Replies: 4
Views: 6026

I don't think you want to do this with a modal dialog. Here is an example with a non-modal dialog. Click the button to close. GetTime>ttime Dialog>MyDialog Caption= Time Width=100 Height=80 Top=CENTER Left=CENTER Max=0 Min=0 Close=0 Resize=0 Button=ttime,27,16,75,25,2 EndDialog>MyDialog Show>MyDialo...
by JRL
Fri Feb 17, 2006 10:34 pm
Forum: Technical / Scripting
Topic: Changing Dialog Labels Programmatically Thx JRL & Marcus
Replies: 6
Views: 6418

It took me a while searching the forums but I finally found the post that taught me this little trick.

The thanks should go to Marcus.

http://www.mjtnet.com/forum/viewtopic.p ... t=mydialog
by JRL
Fri Feb 17, 2006 4:30 pm
Forum: Technical / Scripting
Topic: CreateDir issue....
Replies: 5
Views: 5319

SW, Support may be able to give a more complete answer, but I don't know any other reason for VAREXPLICIT to exist. This situation that you are describing is resolved by VAREXPLICIT. Without setting VAREXPLICIT to 1 "CR" is immediately interpretted as Carriage Return. It doesn't matter that it will ...
by JRL
Fri Feb 17, 2006 1:37 pm
Forum: Technical / Scripting
Topic: Changing Dialog Labels Programmatically Thx JRL & Marcus
Replies: 6
Views: 6418

MSBUTTON2 is not defined in the dialog... where does it come from? It is one of those nice tidbits provided by the fine folks at MJTnet. I can't explain "where it comes from" any more than I can explain why "Dialog>MyDialog" creates a dialog box. You'd have to ask Marcus. However, I can tell you wh...
by JRL
Fri Feb 17, 2006 5:20 am
Forum: Technical / Scripting
Topic: Changing Dialog Labels Programmatically Thx JRL & Marcus
Replies: 6
Views: 6418

jpuziano, Thanks for the compliment. As for your post, you could use a button. Let>msEdit1=10 Dialog>MyDialog Caption=can the blinking cursor be suppressed? Width=239 Height=81 Top=CENTER Left=CENTER Max=0 Min=0 Close=0 Resize=0 Label=Countdown,8,24 Label=seconds left,126,24 Button=%msEdit1%,72,16,4...
by JRL
Fri Feb 17, 2006 5:07 am
Forum: Technical / Scripting
Topic: CreateDir issue....
Replies: 5
Views: 5319

"CR" is a system variable for "Carriage Return". Try setting VAREXPLICIT=1. You then need to place %s around called variables so "CR" without %s will be interpretted as text. Let>Var=Create x270 Download let>ValidChar=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890 len>Var,lenVar let>...
cron
Sign up to our newsletter for free automation tips, tricks & discounts