Total players online: 12



Take the Tour | Site Map

It is currently Sun Jan 20, 2019 7:41 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AutoIT problem
PostPosted: Wed Jan 09, 2019 3:16 pm 
Offline
Script Kiddie
Script Kiddie

Joined: 01/09/2019 10:25
Posts: 1
Hello,

I'm trying to access the uo.dll directly from AutoIt with below script. But I'm not getting any result from dll. Do you know what is wrong in this code? I'm starting with this so I copied this code here in this forum.

Code:
  1. ; get a handle to use
  2. $UODLL = DllOpen("C:\autoit\uo.dll")
  3. $UO = DllCall($UODLL,"int","Open")
  4. $UOHandle = $UO[0]
  5.  
  6. ; UO.CliNr = 1
  7.  
  8. DllCall($UODLL,"int","SetTop","int",$UO[0],"int",0)
  9. DllCall($UODLL,"int","PushStrVal","int",$UO[0],"str","Set")
  10. DllCall($UODLL,"int","PushStrVal","int",$UO[0],"str","CliNr")
  11. DllCall($UODLL,"int","PushInteger","int",$UO[0],"int",1)
  12. DllCall($UODLL,"int","Execute", "int",$UO[0])
  13.  
  14. ; Result = UO.CliTitle
  15.  
  16. DllCall($UODLL,"int","SetTop","int",$UO[0],"int",0)
  17. DllCall($UODLL,"int","PushStrVal","int",$UO[0],"str","Get")
  18. DllCall($UODLL,"int","PushStrVal","int",$UO[0],"str","CliTitle")
  19. DllCall($UODLL,"int","Execute","int",$UO[0])
  20. $Result = DllCall($UODLL,"str","GetString","int",$UO[0],"int",1)
  21.  
  22. ; display UO.CliTitle
  23.  
  24. MsgBox(0,@error,$Result[0])


Thanks


Top
  Profile 
 Post subject: Re: AutoIT problem
PostPosted: Fri Jan 11, 2019 12:53 am 
Offline
Legendary Scripter
Legendary Scripter

Joined: 01/07/2008 12:51
Posts: 1701
Location: Kelowna, BC

I'm probably way off but wouldn't you want to use the uoselector unit in the UODLL, with the GetTitle command? Not really sure what CliNr is but I don't see it anywhere in the uo.dll code. I think the best person to answer this is Cheffe though, maybe he will see it.

_________________
Sig.


Top
  ProfileShow poster's scripts in the public script library 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.