AutoHotkey Community

It is currently May 27th, 2012, 11:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: August 10th, 2005, 12:03 pm 
Offline

Joined: June 6th, 2005, 11:22 pm
Posts: 63
Hello Chris,
I hope this is the right place to put this issue.

I am trying to use checksums (crc, md5) to compare files for changes and to check copies.
I read the discussion in the forum about checksums and I understand your point about the size of the code of AHK.
I think a tiny tool would do fine too.

Now there is my question:
How do I pass a value from a checksum-tool on to AHK without having to use a text file or clipboard?
Can AHK read the standard output of other programs or can I write a tool myself that sends its values to AHK ?

Such an interface or plugin-interface could solve the problem with the size of the code of AHK.
All kinds of Values could be exchanged between AHK and secondary help-tools or plugins.
You could write plugins yourself if people have rare requests about funktions they would like to use.

The other thought I had was, to build and organize AHK in several modules for each funktion or sets of funktions, wich will be loaded, or compiled to an exe file, only if needed by the scripts that are to be run.

I am not very familiar with the normal way of solving these things.
But I would like to stay with AHK for a wile longer untill I begin to work with C++ or something else.
Thank you very much for your explanation and help.

PS: the post of the guest with the same title can be deleted. Thanks

_________________
Die Großen haben den Überblick und die Kleinen den Durchblick.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2005, 12:13 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Quote:
PS: the post of the guest with the same title can be deleted. Thanks
Done

There is a tool by corrupt that does this sending from the stdout to ahk. I think it is called something like "command line retrieve". Please search the forum.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2005, 12:58 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
CMDret
If you run into any problems trying to use it I would be glad to help if I can :) .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2005, 1:42 pm 
Offline

Joined: June 6th, 2005, 11:22 pm
Posts: 63
Hello corrupt,
Your script is great !!! It gives me new ideas how to solve my tasks.
I was just trying to understand it.
Untill now I could only work with your examples.
I tried somthing like:
CMD := "Telnet 192.168.0.12"
but got nothing back ...

It would be wonderful if you could help me to use it. My first application would be to check the settings of a Router :-).

;======================================================================

However I have no idea how to solve the problem with the checksum.
I tested dscrc.exe from http://www.slavasoft.com/fsum/index.htm
Look, I plan to write a sychnonization tool that fits my needs better than the stuff outside which I tried to use.
AHK covers most of the funktions exept the possibility to compare files independently of their sizes and dates.

dscrc.exe writes its output to a file or to clipboard. I would rather like to send the output of dscrc.exe to a variable in AHK to be able to write lists myself and to use it more effective for check single files without having to write a list of checksums first ...
If I use the clipboard as bridge I can't use it wile that prosses is running and that means I couln't work at the same time ...

I could write a checksum tool together with my brother cause he is able to use C++.
But before we do that I would like to know how I can communicate with AHK directly.
I am new to all that but maybe a checksum-DLL with several algorithms would do fine just like you use it.
I found one yesterday but its no freeware. -> QuickHash.dll library

Well I like your approach to outsource some functions to keep AHK tiny.
Ok so far.

I hope you understand my situation now :-).
I appreciate your help !!
Thanks

_________________
Die Großen haben den Überblick und die Kleinen den Durchblick.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2005, 4:24 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
You can use one of the ciphers already posted in the forum to build a CBC-MAC (cipher block chaining message authentication code). It is a cryptographically secure checksum. The cipher can be coded entirely in AHK, like TEA, where you can find the CBC-MAC script, too, or use Corrupt's external DLL, like Rajat's script. Windows 2000/XP also provides DLL calls to encryption functions. In any case, there is no problem with getting the result in AHK.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2005, 10:18 pm 
Offline

Joined: June 6th, 2005, 11:22 pm
Posts: 63
Hello,
honestly I do not understand much right now about encryption.
And maybe I do not get your point about the scripts in the posts.
I tried to understand them but without success :-(.

I only need a short identification number of a file. However it should be sufficient for identification of several ten thousands of files.

But I do not want it to be possible to retrieve the file from the encrypted line again.
Furthermore is the performance of the code more important.

I would love to use AHK code but I do not know how to adapt it to my needs.
I would need some help on that one :-).

Thank you very much in advance.

_________________
Die Großen haben den Überblick und die Kleinen den Durchblick.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2005, 1:03 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Laszlo wrote:
or use Corrupt's external DLL

Not mine... ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2005, 12:09 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Teddy, I posted an intro and a script. Hope it helps.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2005, 5:23 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
...and a very simple CRC script, entirely in AHK. This way you don't have to worry about interfacing to external programs, but the script is, of course, much slower than a compiled program.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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