Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Code Samples
  New Posts New Posts RSS Feed - Another of my favorites
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedAnother of my favorites

 Post Reply Post Reply
Author
Message
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Topic: Another of my favorites
    Posted: March 15 2006 at 4:28pm
Since my carrier tracking program received such rave reviews, I thought that I would share another little (and I mean little) trick that I use all the time.

I'm not an accountant and never became proficient with a 10 key. I use the Windows calculator all the time. I found that I hated the have to switch from the keyboard to the mouse and then click Start>Run>calc, or worse, try and find it in the program list.

Try this instead.

*

ESC = CHAR(27)
STX = CHAR(02)
*
CMD = ESC:STX:'<':"C:\WINDOWS\System32\CALC.EXE":CR
PRINT CMD


Compile and catalog it, then entering CALC at the TCL prompt pops up the Windows calculator.

I have also managed to incorporate this into the order entry system so that at the product input prompt and the bottom line prompts, the CSR's can enter CALC and get the calculator. They use it all the time.

Come on folks, I can't be the only one. Let's get this forum rocking and turn it into a vast repository of Accuterm knowledge! Pete has given us the tool. It's up to us to wring everything out of it that we possibly can!
Back to Top
pcmjoe View Drop Down
Beta Tester
Beta Tester


Joined: February 05 2004
Location: United States
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote pcmjoe Quote  Post ReplyReply Direct Link To This Post Posted: June 01 2006 at 2:58am
That is a great and easy utility! However, when I do this I get the dos cmd window as well as the calculator. Any info on how to prevent the cmd window from appearing???
Thanks
Joe
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: June 01 2006 at 7:32am
I haven't had that problem with it, so I don't have an answer to your problem.

Maybe Pete knows?
Back to Top
pcmjoe View Drop Down
Beta Tester
Beta Tester


Joined: February 05 2004
Location: United States
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote pcmjoe Quote  Post ReplyReply Direct Link To This Post Posted: June 02 2006 at 3:37am
I took another look at the program and found my problem. The 'CR' variable had not been defined so I quickly entered another line in the program but assigned it to CHAR(12) which Form Feed instead of CHAR(13) which is Carriage Return. Problem solved!!!
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: June 02 2006 at 11:39am
Oops, I forgot to add that line in when I posted the code (I usually just have an include that defines all those variables). I'm glad that you were able to figure it out. Enjoy!
Back to Top
Elsifer View Drop Down
Newbie
Newbie


Joined: August 10 2006
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Elsifer Quote  Post ReplyReply Direct Link To This Post Posted: August 10 2006 at 3:40am
Is there a way to return the number you come up with in Calc to the calling program?  That could be huge!
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: August 10 2006 at 5:58am
Hi All -

To return the value back to AccuTerm you would need to copy it to the clipboard. Looks like Calc will copy the answer using Ctrl+C without first selecting the data. You can either use Edit->Paste in AccuTerm to copy the answer back to the host program, or you can automate this by calling ATGETCLIP in your host program to return the clipboard contents. ATGETCLIP is one of the sample subroutines that is included with AccuTerm - look in the ...\Atwin\Samples\Pickbp folder.

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.