AutoHotkey Community

It is currently May 26th, 2012, 11:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: DOS to the rescue
PostPosted: May 20th, 2005, 11:56 pm 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
There's plenty of command line math parsers out there. I found the 1KB calc387.com at ftp://ftp.sac.sk/pub/sac/utilmisc/calc387.zip

And math.ahk compiled into math.exe looks like this, and could be used for pretty much any dos command line utility.

Code:
RunWait,calc387.com %1% > result.txt
FileRead,result,result.txt
MsgBox,%result%


Skrommel


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2005, 2:48 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
This calc387.com is pretty good, indeed. As an alternative, if you use external programs, calc.exe is part of Windows and can be easily controlled by an AHK script. It also knows logical operations, hex, octal and binary numbers, etc., but no parenthesis.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: v4.0
PostPosted: May 21st, 2005, 11:01 am 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
:D Updated to v4.0
- Added support for user defined prefixes to run external programs. Make an ahk-script, compile it and place it together with AutoClip. Typing the name of the script followed by a colon and the parameters runs the script. Example: Typing calc:1+2 displays the result 3.

Skrommel

Calc.ahk uses ftp://ftp.sac.sk/pub/sac/utilmisc/calc387.zip

Code:
;calc.ahk compiled as calc.exe
SetWorkingDir,"%A_ScriptDir%"
RunWait,cmd /c calc387.com %1% > result.txt
FileRead,result,result.txt
MsgBox,%1% =%result%


AutoClip.ahk
:!: Script moved to the top.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 18th, 2005, 3:40 am 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
A user sent me this message:

Quote:
Hi, I had a problem with AutoClip 3.0

I tried out AutoClip 3.0 by storing rtf from MS Word to a clip. It works fine only for the current windows run session, but when I switch off and then start a new windows session, on recalling the clip, all rtf part is lost and only pure text remains, same goes for any images, etc.

Is there any way to retain the rtf coding, etc. every time I start a new windows session?

Thanks in advance.


Anyone else with this problem?

Skrommel


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 31st, 2006, 8:11 am 
Hi, AutoClip v4 is amazing !

however, when it is running the escape key does not work anymore and since i use it a lot, i can't use AutoClip... :(
Is there a modification i can do inside the script ?

Many thanks for your answers!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2006, 12:30 pm 
Offline

Joined: July 30th, 2004, 8:50 pm
Posts: 192
:) Just edit the AutoClip.ini, and remove Escape from the Cancel line.

Skrommel


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2009, 1:25 pm 
Offline

Joined: October 25th, 2009, 6:10 pm
Posts: 17
I'm looking at Autoclip v 4 and I really like the interface.

I would love to have the functionality of some long RTF scraps that I could call from a menu.

However, whenever I load Autoclip, I can't use any of the other hotkeys or autostrings that I have written. I have tried loading it first, loading it last, whatever.

I have rewritten the tray menu sub so that it will load the standard menu as well.

Of course I'm new. However I have searched the forum and read all of the posts on this page.

Thanks for any help.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Miguel, Stigg and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group