Sign in to follow this  
Followers 0
tamandt

Doesnt always work?

2 posts in this topic

#1 ·  Posted (edited)

Ok so i have this script that i need to wait until all protection is enabled, and then close the application. This works great on my vista machine. On an XP desktop and on a XP Virtual machine it does not.

It works good on everything up until the pixel check.... the pixel loop never detects the color???

Also any suggestions on improvements would be appreciated...

Not all the code is important but the full code is at the bottom... The relative code is here:

;Wait for shield to be green
Do
$var = PixelGetColor(200, 150)
Until $var = 16777215

Sleep(500)
WinClose("SpywareBlaster")oÝ÷ Øw«zËax[¥Êy«­¢+ØIÅեɵ¥¸()%9½Ð%͵¥¸ ¤Q¡¸(%á¥Ð)¹%()%¹Íѱ±MÁåÝÉ ±ÍÑÈ ¤()Õ¹%¹Íѱ±MÁåÝÉ   ±ÍÑÈ ¤(%IÕ¸ ÅÕ½ÐìÀäÈìÀäÈí¡°ÀäÈíÕÑ¥±¥Ñ¥ÌÀäÈíÑÕ¹ÕÀÀäÈí ±ÍÑÈÀäÈíÍÁåÝɹáÅÕ½Ðì¤($($í%¹Íѱ°]¥¹½ÝÌ($%]¥¹Ñ¥ÙÑ ÅÕ½ÐíMÑÕÀ´MÁåÝÉ ±ÍÑÈÅÕ½Ðì¤($%]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíMÑÕÀ´MÁåÝÉ    ±ÍÑÈÅÕ½Ðì¤($%M¹-ÁÑ¥Ù ÅÕ½ÐíMÑÕÀ´MÁåÝÉ    ±ÍÑÈÅÕ½Ðì¤($%M¹ ÅÕ½Ðíí¹ÑÉõíQõíUÁõí¹ÑÉõí¹ÑÉõíMÁõí¹ÑÉõí¹ÑÉôÅÕ½Ðì¤($%]¥¹]¥Ð ÅÕ½ÐíMÑÕÀ´MÁåÝÉ    ±ÍÑÈÅÕ½Ðì°ÅÕ½Ðí¥¹¥Í ÅÕ½Ðì¤($%M¹ ÅÕ½Ðíí¹ÑÉôÅÕ½Ðì¤(($í
½¹¥ÕÉ]¥¹½ÝÌ($%]¥¹Ñ¥ÙÑ ÅÕ½ÐíMÁåÝÉ   ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%M¹-ÁÑ¥Ù ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%M±À ÌÀÀÀ¤($%M¹ ÅÕ½ÐííQõí¹ÑÉôÅÕ½Ðì¤($($íM±ÐUÁÑ5½($%]¥¹Ñ¥ÙÑ ÅÕ½ÐíMÁåÝÉ ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%M¹-ÁÑ¥Ù ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈQÕѽɥ°ÅÕ½Ðì¤($%Õѽ%ÑMÑ=ÁÑ¥½¸ ÅÕ½Ðí5½ÕÍ
½½É5½ÅÕ½Ðì°À¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÜÀ°ÈØÀ°Ä°Ä¤($%M¹ ÅÕ½ÐííQõí¹ÑÉõí¹ÑÉôÅÕ½Ðì¤($($íUÁѹ¹±]¥¹½Ü($í
±¥¬ÕÁÑÌÅÕ¥¬±¥¹¬($%]¥¹Ñ¥ÙÑ ÅÕ½ÐíMÁåÝÉ  ±ÍÑÈÅÕ½Ðì¤($%]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíMÁåÝÉ ±ÍÑÈÅÕ½Ðì¤($%M¹-ÁÑ¥Ù ÅÕ½ÐíMÁåÝÉ ±ÍÑÈÅÕ½Ðì¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÈÔÀ°ÔÈ԰İĤ($í±¥¬¡¬½ÈÕÁÑÌÕÑѽ¸($%]¥¹Ñ¥ÙÑ ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈÅÕ½Ðì¤($%]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíMÁåÝÉ ±ÍÑÈÅÕ½Ðì¤($%M¹-ÁÑ¥Ù ÅÕ½ÐíMÁåÝÉ ±ÍÑÈÅÕ½Ðì¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÈÜÔ°ÈÔÀ°Ä°Ä¤($í]¥Ð½È½¬ÕÑѽ¸°±¥¬½¸µ¥¸Íɸ($($$%M±À ÈÀÀ¤($%U¹Ñ¥°
½¹Ñɽ±
½µµ¹ ÅÕ½ÐíMÁåÝÉ    ±ÍÑÈÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐíQ¡Õ¹ÉIPÙUÍÉ
½¹Ñɽ±àÅÕ½Ðì°ÅÕ½Ðí%ÍY¥Í¥±ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÈÜÔ°ÌÄÀ°Ä°Ä¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÈÔ°ÄÀÀ°Ä°Ä¤($($í
±¥¬¹±±°($%M±À ÄÀÀÀ¤($%5½ÕÍ
±¥¬ ÅÕ½Ðí1ÐÅÕ½Ðì°ÈÔÀ°ÐàÀ°Ä°Ä¤(($%M±À ÄÀÀÀ¤($í]¥Ð½ÈÍ¡¥±Ñ¼É¸($($$$ÀÌØíÙÈôA¥á±Ñ
½±½È ÈÀÀ°ÄÔÀ¤($%U¹Ñ¥°ÀÌØíÙÈôÄØÜÜÜÈÄÔ($$($%M±À ÔÀÀ¤($%]¥¹
±½Í ÅÕ½ÐíMÁåÝÉ  ±ÍÑÈÅÕ½Ðì¤()¹Õ¹ìôôÐí%¹Íѱ±MÁåÝÉ  ±ÍÑÈ
Edited by tamandt

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think I remember PixelGetColor()'s not always being that same across differnt videocard/monitor combos. You might try using PixelSearch() which allows for a shade variation.

(edit: also make sure the resolutions are the same!)

Edited by evilertoaster

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0