Jump to content
Sign in to follow this  
pgrazek

Help With DllCall

Recommended Posts

pgrazek

Hi.. im trying to use the www.screenocr.com DLL into my autoit script.

But im having a really hard time

The function im trying to use is:

TextractExport TextractSuccess Textract(TextractSource&, TextractDest&, TextractDestFormat);

But w/e combinations I try... It just wont work.

I need to create struct for the arguments or what?

I attached one example on C#, if any C# guru can translate this to AutoIt this must be an easy job.

Thanks.

OCRSDK.txt

Share this post


Link to post
Share on other sites
bo8ster

Yes, DllStructCreate is the way to go, the help file has a good example.


Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Share this post


Link to post
Share on other sites
pgrazek

Hi..

I managed to get this working.

Its calling the DLL and then it tells me that the "result" of the OCR is on a given address memory.

e.g. 0x02167AD8

How do I get the actual value of this pointer? (dereference)

I must use NomadMemory passing the AutoIT process as argument?

Share this post


Link to post
Share on other sites
pgrazek

Im trying to use NomadMemory(http://www.autoitscript.com/forum/index.php?showtopic=28351) functions to read AutoIT process memory.

But still no success...

anyone has a better idea?

plz

Share this post


Link to post
Share on other sites
imphat

Hi..

I managed to get this working.

Its calling the DLL and then it tells me that the "result" of the OCR is on a given address memory.

e.g. 0x02167AD8

How do I get the actual value of this pointer? (dereference)

I must use NomadMemory passing the AutoIT process as argument?

I'm looking for something similar.. is there any way for autoIT to direct access its own memory?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.