Jump to content

Help With DllCall


Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...