English
Forum

AutoItX3.dll - PixelSearch Funktionsaufruf

 

Christian
Schneider
Hi,

I stand unfortunately time again on Kriegsfuß with of/ one .dll. this time is it The AutoItX3.dll.
i want The function AU3_PixelSearch Call.
CompileMarkSeparation
CLS
Declare autodll&
autodll&=UseDll(AutoItX3.dll)
importFunc(autodll&,AU3_PixelSearch,PixelSearch)
Pixelsearch(???????????)
FreeDLL autodll&
Waitk

How should now the suitable appeal looks? The Doku says:

AU3_API void WINAPI AU3_PixelSearch(long nLeft, long nTop, long nRight, long nBottom, long nCol, /*default 0*/long nVar, /*default 1*/long nStep, LPPOINT pPointResult);


I come simply not further. Dll and Help hang on the Posting on.

Greeting Christian

186 kB
Hochgeladen:02/23/09
Downloadcounter237
Download
306 kB
Hochgeladen:02/23/09
Downloadcounter185
Download
 
XProfan 11| Vista(64) SP2
02/23/09  
 



Einfachst
CompileMarkSeparation - if not klappen ought to Please report.

jolly - such function wished I first neulig in a DLL pack for XProfan - vlt. fetch I the to.
 
02/23/09  
 




Christian
Schneider
OK, I had my trouble Perhaps something accurate describe should

beforehand to that short understanding: the of me used ImportFunc has still of principle since The same function How Externals (foreseen of it the The function not directly called becomes) or?

The Part the even fehlte:

If I The function aufrufe, z.B. as now tested with
CompileMarkSeparation
external(pfad$,AU3_PixelSearch,100,100,400,400)
>
dismisses itself the Interpreter (AccessViolation xy...).
 
XProfan 11| Vista(64) SP2
02/23/09  
 



The Parameter in type and amount must very eingehalten go - faith this is not the case what whom crash explain could.
 
02/23/09  
 




Christian
Schneider
have right, Have a Parameter To little uses. I thought The last 3 wären optional. though remaining the Result the same.
CompileMarkSeparation
I know in the momentum unfortunately neither I meaningfully change could.
 
XProfan 11| Vista(64) SP2
02/23/09  
 



AU3_PixelSearch(long nLeft, long nTop, long nRight, long nBottom, long nCol, long nVar, long nStep, LPPOINT pPointResult)

I count 8 Parameter!

(with so nativen Call there windows-technical conditioned optionale Parameter not.)
 
02/23/09  
 




Christian
Schneider
OK, with Return Value (the indeed integrally meaningfully is ;) ) are it then 8.
I werd then so again a little bit rumprobieren.
 
XProfan 11| Vista(64) SP2
02/23/09  
 




Christian
Schneider
be still bis zu before. go in the meantime of it from the it on the Return Value lying (LPPOINT pPointResult -> Returns a 2 element aray containing the pixels coordinates)

is the now one Pointer on a strukturierte Memory-Variable, one aray or on something völig other with the I not at all rechne?
 
XProfan 11| Vista(64) SP2
02/23/09  
 



Perhaps The address one x*y*byte grossen Speichers, z.B. To reservieren by
CompileMarkSeparation
declare speich#
dim speich#,50*50
AU3_PixelSearch(0,0,49,49,$0000FF,1,1,speich#)re>
 
02/23/09  
 




Christian
Schneider
me weg slow for good The ideas from. have so quite everything attempts. all Variablentypen, as Pointer, CDECL...
be for each Tipp grateful. Codes to that post Have I unfortunately no, or. I know not which I for take ought to. others functions the dll have so did i tested, these walk. as Fehlerquelle suspect I as always whom Return Value (because the function solely therefore from the by me lauffähigen distinguish).
 
XProfan 11| Vista(64) SP2
02/24/09  
 




Jörg
Sellmeyer
i'd it Yes so suppose but one kurzer Test shows, that too the knallt:
CompileMarkSeparation
Cls
Declare Test#
Dim Test#,8
Var a& = Test#
Print External(AutoItX3.dll,AU3_PixelSearch,4, 4, 4, 4, $0000FF, 0, 1, a&)
oder noch wahrscheinlicher
Print External(AutoItX3.dll,AU3_PixelSearch,4, 4, 4, 4, $0000FF, 0, 1, Addr(a&))
Dispose Test#
WaitI
a>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/24/09  
 



Perhaps. The DLL first of all by UseDLL invite.
 
02/24/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

23.009 Views

Untitledvor 0 min.
Normann Strübli06/09/20
Walter12/31/18
Peter Max Müller12/19/17
E.T.12/12/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie