AC130 Posted August 25, 2012 Author Share Posted August 25, 2012 That's all big nothing. I don't believe a word you are saying, as far as I can see you tried nothing.I won't say there aren't bugs on our side, I'll just say you are terrible with all this. Hell, you don't even know how to this simple forum interface (hint: code tags). You either have visual disturbances and use screen reader of some sort that can't read in-between code tags or you are just little short.Learn some language basics and then come back and ask questions.Good luck learning.Is all this necessary? I'm not even the only one having this problem. Link to comment Share on other sites More sharing options...
AC130 Posted August 25, 2012 Author Share Posted August 25, 2012 And, I'm not bashing AutoIt. I'm saying I've tried every possible declaration and it still won't work.Public Declare Function AU3_PixelSearch Lib "AutoItX3" (ByVal nLeft As Integer, ByVal nTop As Integer, ByVal nRight As Integer, ByVal nBottom As Integer, ByVal nCol As Integer, Optional ByVal nVar As Integer = 0, Optional ByVal nStep As Integer = 1, Optional ByVal LPPOINT As IntPtr = Nothing) As IntegerPrivate Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.ClickDoAU3_PixelSearch(1, 1, 1024, 768, &H0)LoopEnd SubError: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.If I'm doing something wrong, then show me. How can you say I don't know what I'm doing if you don't even know me? I sure as hell know how to call a damn function, hince why ALL THE OTHER FUNCTIONS WORK FINE. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 26, 2012 Share Posted August 26, 2012 (edited) You can't send nothing. I highly doubt that the point is an optional parameter. Edited August 26, 2012 by Richard Robertson Link to comment Share on other sites More sharing options...
AC130 Posted August 27, 2012 Author Share Posted August 27, 2012 You can't send nothing. I highly doubt that the point is an optional parameter.You're right, it isn't, but I've tried every other possible declaration...Public Declare Function AU3_WinGetHandle Lib "AutoItX3" (ByVal Title As String, ByVal Text As String, ByVal szText As String, ByVal BufferSize As Integer) As IntegerPublic Declare Function AU3_PixelSearch Lib "AutoItX3" (ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer, ByVal Color As Integer, ByVal Shade As Integer, ByVal Skip As Integer, ByVal Handle As IntPtr) As IntegerPrivate Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.ClickDim szHandle As Char = CChar(CStr(256))Dim Handle = AU3_WinGetHandle("Untitled - Notepad", "", szHandle, 128)AU3_PixelSearch(1, 1, 1024, 768, &H0, 0, 1,CType(Handle, IntPtr))End Sub Error: The runtime has encountered a fatal error. The address of the error was at 0x6f063688, on thread 0x1954. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. Link to comment Share on other sites More sharing options...
AC130 Posted August 27, 2012 Author Share Posted August 27, 2012 I've made progress... Turns out you don't use the Shade/Step/Handle parameters. It will result in the errors above, so this is the only thing I've gotten to work: Public Declare Function AU3_PixelSearch Lib "AutoItX3" (ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer, ByVal Color As Integer) As Integer However, I think there may be a problem with the Color parameter. I've tried normal colors such as &HFDF3C8,&HFFFFFF, &HFFCCCC, and they all resulted in some sort of P/Invoke error. I then tried &H0 and no errors occured - at all. Any ideas? Link to comment Share on other sites More sharing options...
JohnOne Posted August 27, 2012 Share Posted August 27, 2012 The idea is PixelSearch does not work, it never has. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted August 28, 2012 Share Posted August 28, 2012 The idea is PixelSearch does not work, it never has.That's not true.Did anyone ever reported bug for this function? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 28, 2012 Share Posted August 28, 2012 That's not true.Did anyone ever reported bug for this function?Whether or not it was reported, not many people use AutoItX, and only a subset of those users will use PixelSearch. Link to comment Share on other sites More sharing options...
trancexx Posted August 29, 2012 Share Posted August 29, 2012 Whether or not it was reported, not many people use AutoItX, and only a subset of those users will use PixelSearch.If there are no bug reports then very likely there are no bugs....I just checked AutoItX PixelSearch and there is a bug in it. It works but can cause crash depending on success of search. Nobody uses this function, I won't fix it for nobody. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
AC130 Posted August 29, 2012 Author Share Posted August 29, 2012 I don't even care anymore... Just patch it eventually, please. I would like to use it sometime or later. Link to comment Share on other sites More sharing options...
JohnOne Posted August 31, 2012 Share Posted August 31, 2012 That's not true.Did anyone ever reported bug for this function?I don't know if a bug was reported officially, I wouldn't even know how to report a bug.But I have seen it mentioned over years of threads that it does not work.I have had success with it when code was compiles in VS 2008 in both C# and C++But the same code crashes when compiles in VS 2010.Also, when it does work, x = y and y = x Personally I'd like to see it fixed, as I do like to have some ready made autoit funcs because my hand rolled onesare crude and slow. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted August 31, 2012 Share Posted August 31, 2012 I don't know if a bug was reported officially, I wouldn't even know how to report a bug.But I have seen it mentioned over years of threads that it does not work.I have had success with it when code was compiles in VS 2008 in both C# and C++But the same code crashes when compiles in VS 2010.Also, when it does work, x = y and y = x Personally I'd like to see it fixed, as I do like to have some ready made autoit funcs because my hand rolled onesare crude and slow.It's simple to report a bug. You go here, read what's inside the red box, scroll down a bit, add title (summary), fill in description field, add your nick name or whatewer, and you are done. Then some of the devs reads that, redicule you if necessary (for fun but really only if needed) and take care of the ticket.It works when it finds the collored spot.Considering you are not nobody, I guess it needs fixed. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JohnOne Posted August 31, 2012 Share Posted August 31, 2012 Considering you are not nobodyThat's the nicest thing anyone has ever said to me I'm welling up here. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AC130 Posted August 31, 2012 Author Share Posted August 31, 2012 Nobody uses this function, I won't fix it for nobody.Considering you are not nobody, I guess it needs fixed.What excellent customer service. Link to comment Share on other sites More sharing options...
JohnOne Posted August 31, 2012 Share Posted August 31, 2012 And what a cute comment from someone who does not even care. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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