Jump to content
fullheap

ask help: translate 3 line autoit3 to python

Recommended Posts

 

1.  the original function from dll  .


char *  combine (char * x ,char * y ){

    strcat(x ,y);
    return  x;
}

call this  in python  is easy 

x =ctypes.c_char_p("a".encode()) 

y = ctypes.c_char_p("b".encode())

c_char_p(dll.combine(x,y)).value

I how to do in autoit3

Share this post


Link to post
Share on other sites
Global $Vcode ;
Global $ModuleHandle=DllOpen("XGSoftOCR.dll");
$result = DllCall($ModuleHandle, "bool", "OCR_GetCode","str",“a.png","str",Ptr($Vcode))

I want to call the OCR_GetCode function in python with ctypes  ,how to do  ..  please help me .tks 

Share this post


Link to post
Share on other sites

I wanna  solve  this problem   ..so  I wrote  some simple c functions  and  generated a dll  file.     I tried to call these funcs  from the dll  with python and autoit  ....  

Share this post


Link to post
Share on other sites

You have yet to answer Jos' question. How is this different from the last thread? Why python instead of pure AutoIt. Explain in detail what you are trying to accomplish so people can assist.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Posted (edited)

@argumentum How is this gaming related?  

@fullheap Are you looking to call the dll function, or just replicate the string (character) concatenating function?

Edited by spudw2k

Share this post


Link to post
Share on other sites

And for the others commenting, you have two Moderators asking questions of the OP regarding the legitimacy of the thread. That should signal to you, even without it specifically being called out, to stay out of the thread for the time being.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...