Sign in to follow this  
Followers 0
jihof4

Helping yourself ham similar PixelGetColor

14 posts in this topic

#1 ·  Posted (edited)

Hi there!

I have one role you would like to ask questions: Can you help themselves first on the color-coded commands transmitted without calling up the scanner window is not???

I was just invited to be on Windows 7, but with Windows XP implementation did not work very well so intelligent writing this today hope you can support about 1 for proving certain command (can use the DLL) to blood test or scan codes are not???

Thank you very much !!!

Edited by jihof4

Share this post


Link to post
Share on other sites



It looks like you are not a native English speaker. What you posted is hard/impossible to understand, sorry.

Can you please use Google translate or something similar to translate from your mother language to English?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I'm having a little problem about taking on the color-coded window

I want to spread the color code on the window (not the PixelGetColor, may be a DLL), but do not want to call up that window to scan the sample code, I hope you help me

Edited by jihof4

Share this post


Link to post
Share on other sites

I come from Vietnam should be speaking English is not good, hope you sympathy!

I'm having a problem on Windows XP quickly spreading code, I want a command similar spread PixelGetColor color code but do not want to call up that window.

Looking for people to help me

Share this post


Link to post
Share on other sites

I'm really sorry but I still don't get it.

Can you please post the code you have tried so far?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Func xl($x,$y,$cuaso)
$handle = WinGetHandle($cuaso,"")
$hDC = _WinAPI_GetWindowDC($handle)
$iColor = DllCall("gdi32.dll","int","GetPixel","int",$hDC,"int",$x,"int",$y)
$sColor = Hex($iColor[0],6)
_WinAPI_ReleaseDC($handle, $hDC)
Return StringRight($sColor,2)&StringMid($sColor,3,2)&StringLeft($sColor,2)
EndFunc

It does not work well on Windows XP

Looking forward to your help themselves

Share this post


Link to post
Share on other sites

Unfortunately I can't help with this. This stuff is way over my head.

Maybe some other users can jump in.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

It is true that it does not work when the window is minimized, but you can help it works when we open a web browser and overwrite the active window is not?

Thank you

Share this post


Link to post
Share on other sites

Can you help me ????

Share this post


Link to post
Share on other sites

My understanding of minimized windows is that they do not refresh while minimized as windows does not sent 'paint' commands to them.

(Hence why the windows 7 tiles show the last frame of a minimized video ... even though the video is still playing).

@jihof4 - if you want to get a pixel color of a minimized window - there will be no difference between detecting the pixel just before the window is minimized and the color you will detect while it is minimized.

For example - if the pixel was yellow just before the window is minimized - it will be yellow while minimized ... even if the window's code changes the pixel to blue while minimized. The pixel will only become blue when the window is un-minimized.

Share this post


Link to post
Share on other sites

Can you give a specific code is not?? And it will work well on window XP

Share this post


Link to post
Share on other sites

Have a play with either:

  • PixelGetColor
  • PixelSearch
They both have the ability to replace your post #6 code with something that detects colors on non-minimized window.

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