SRL Archive - Help

Color Finding not working


caused

2012-05-23 19:18:43

Hey.

I'm trying to write some aids for Diablo III.

But when the Client window is in foreground All Color Finding Functions are not working(gets stuck at the function), while if simba is in foreground they do work.

Is there a workaround for this issue ?

~caused

caused

2012-05-23 19:38:41

Oh, and if i set the desktop as client, everything works great :x….

caused

2012-05-24 05:22:31

Okay, if anyone has a Solution, please post :)

Abu

2012-05-24 12:37:27

From: caused

When the Client window is in foreground All Color Finding Functions are not working(gets stuck at the function), while if simba is in foreground they do work.


I'm not sure I understand.

You're saying SMART won't find colours when it is in the foreground, but it will when Simba is in the foreground alongside it?

caused

2012-05-24 13:29:25

From: abu_jwka
I'm not sure I understand.

You're saying SMART won't find colours when it is in the foreground, but it will when Simba is in the foreground alongside it?


I'm wrting stuff for Diablo III.

And if that is in the foreground and a Color finding function is executed, the script just holds until something else is in foreground.

Brandon

2012-05-24 13:35:45

The window probably hides its handle or nullifies its inner DC handle.. I know a ton of games do this. You can drag the crosshairs to the window itself and it will get a DC for simba to work with but if dragged on the Windows's canvas aka where the character is, it will not be able to get a handle..

See GetWindowFromPoint on MSDN.. I believe this is what Simba uses

masterBB

2012-05-24 14:08:52

Wizzup mentioned something about simba not being able to be used on any directX or openGL program.