Jump to content
Sign in to follow this  
jimmer

Can PixelSearch be used on Minimized Window?

Recommended Posts

jimmer

Also, if it can be done? Could someone give me a basic code on how to?

Share this post


Link to post
Share on other sites
Insolence

Don't think so... maybe a DLLCall can.

Come to think of it I saw GetPixel (I think) yesturday on MSDN, but I'm not sure how to specify hwnd's.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
jimmer

As you were told... it was not possible though? =O

edit: what's a DLLCall? or MSDN or hwnd? :">

Edited by jimmer

Share this post


Link to post
Share on other sites
Insolence

hwnd is short for 'Window Handle', the specific ID of a window regardless of its title.

DLLCall is an AutoIT function able to use Dynamic Link Libraries internal functions, like the actual command windows uses for mouse clicks, or drawing things on the screen.

MSDN is a huge database Microsoft has of it's API (aplication protocol interface, I think). Which is basically a huge help file :lmao:

I'm researching this right now, if I can figure this out then this will make my f'ing day.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
Insolence

Bump*

Anyone know if GetPixel can be used on a minimized window?

OR

Is GetPixel faster then PixelGetColor in AutoIT?


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
Insolence

Bump****


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
layer

Come to think of it I saw GetPixel (I think) yesturday on MSDN, but I'm not sure how to specify hwnd's.

to specify hwnd's it depeneds... some things say: hWnd; HWND.. and osme say things like hDC; DEVICE CONTEXT... not exactly what they say but, u know, if they say HDC u have to do something like this

$dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle)

; SOME DLLCALL FUNCTION HERE

$realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0,  "int", $dc[0])

FootbaG

Share this post


Link to post
Share on other sites
Insolence

Which I did do.

Wanna try this out Layer? I can't get it to work, maybe you can.

Also I think the second array element ($dc[1] for example) stores the DC.

EDIT -- Included what I've done so far.

Test_Drawer.au3

Edited by Insolence

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
layer

definatley i do! but i have to do it tomorrow :lmao: i have a bit of a project im working on right now, which i am enjoying because its an AutoIt project... but tomorrow, ill take a look at it o:)


FootbaG

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.