fullheap Posted July 25, 2020 Share Posted July 25, 2020 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 Link to comment Share on other sites More sharing options...
argumentum Posted July 25, 2020 Share Posted July 25, 2020 read the rules. No gaming stuff. fullheap 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
fullheap Posted July 25, 2020 Author Share Posted July 25, 2020 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted July 25, 2020 Developers Share Posted July 25, 2020 How does this question rime with your previous posted topic? : Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fullheap Posted July 25, 2020 Author Share Posted July 25, 2020 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 .... Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 26, 2020 Moderators Share Posted July 26, 2020 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! Link to comment Share on other sites More sharing options...
spudw2k Posted July 28, 2020 Share Posted July 28, 2020 (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 July 28, 2020 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
argumentum Posted July 28, 2020 Share Posted July 28, 2020 55 minutes ago, spudw2k said: How is this gaming related? Simple: I see a X and a Y in a sentence, and it is a game. 2+2=5. No brainer. Nine 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 28, 2020 Developers Share Posted July 28, 2020 @fullheap, Do not open another topic before you properly answer the questions from the moderation team! Merged. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 28, 2020 Moderators Share Posted July 28, 2020 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now