Posted by Godfather on July 29, 2008I am trying to make an application that loads a swf file in it. I think I got it down right; I made a TShockwaveFlash box and placed the htp into "Movie" field. Anyways, that's not really the problem I'm having. I don't know how to make it so that Delphi checks an x,y location on the screen and if the x,y area has gotten 10% brighter it simulates a button click. I think I may have gotten my button click thing right but I'm not sure about the whole 10% brighter thing and if I need to actually type out the x,y location in the getpixel thing.
if (R=R+10) or (G=G+10) or (B=B+10) then
// Simulate a key press
keybd_event(VK_NUMPAD4,0xcb,0 , 0);
// Simulate a key release
// do nothing (don't know what to put here for doing nothing though)...
This is what I have so far. Is it correct and am I missing anything?