iliveyourdream13 wrote on Nov 11
th, 2013 at 1:17pm:
You don't need to check anything, that's your second problem. Your first is not even looking at the issue correctly. Quit trying to program your computer like a 90s windows application screen scraping a terminal and it's easy enough to figure out. You will need the right hardware though, which exists, if you're smart enough to know how to find it.
If you insist on doing the processing to find one image inside another a couple of times a second, best of luck. But, do me a favor and don't pick software development as a career path, ok?
so much words to say nothing useful, thx anyway for trying, you should avoid taking a career path that requires human interaction
just found that the only reason autohotkey cannot capture the image is because of aero, omfg, 2 hours of trying to find why DDO hook crashed for nothing xD
well with that it's done, this is a simple example, you need to have an image saved from a portion of the icon so the image can be checked
GetKeyState, keystate, r <--- this is the key that has to be pushed down for the key sequencing to work
it's done with autohotkey which is an opensource software
remember that aero must be disabled, here is a tutorial that shows how, beware because it's really complex
http://www.howtogeek.com/howto/windows-vista/disable-aero-on-windows-vista/there shouldn't be much question but I will answer any to the best of my ability
cleave = %A_workingdir%\cleave.bmp
gcleave = %A_workingdir%\gcleave.bmp
while 1=1
{
sleep 250
GetKeyState, keystate, r
if keystate = D
{
ImageSearch, OutputVarX, OutputVarY, 0, 0, 2400,2000, %cleave%
if errorlevel = 0
{
send 2
}
ImageSearch, OutputVarX, OutputVarY, 0, 0, 2400,2000, %gcleave%
if errorlevel = 0
{
send 3
}
}
}