I currently have made a program in AutoIT that has PixelSearch methods inside of it. Anyway, I have a pretty intense GUI that can be annoying to fill out everytime you run it, so I decided I would make a save/load settings button. It turns out that AutoIT handles file reading/writing pretty inefficiently, so writing to the file to "save" settings and reading from the file to "load" settings was out of the question. I decided to make something in C# since the FileStream class is amazing. But, to replace the AutoIT program, I need the function pixelsearch, which basically searches for a certain pixel in a rectangle/point defined. Anyone have an idea how this is created, or if there is one already how it is used?
P.S: Is there also a way that I can save the cursor's location after the user presses a certain button in C#? I was thinking of a mouseEvent of some sort.