Jump to content
Sign in to follow this  
daxstec

How to deal with window handle? WinGetHandle()

Recommended Posts

daxstec

Next Problem...

I am looking for the answer second day.. The problem is: I use a WinGetHandle function and everything is okey but I think that a window handle is a point A(x,y) but I do not know how to interpret eg. 0xB070C i know that is hexadecimal but what next? My aim is: to move a cursor of mouse about some corrdinance(distance) with respect to window handle.

Thank you very much for hints!

Share this post


Link to post
Share on other sites
somdcomputerguy

Perhaps the WinGetPos() function can be used here.. Get what I'm saying? I want to help but my brain isn't making words of my thoughts yet (read: not enough coffee yet!)

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
daxstec

OK, thank you, I deal with WinGetPos().

Btw. do you know how to interpret a result given by WinGetHandle() ?

Share this post


Link to post
Share on other sites
AdmiralAlkex

OK, thank you, I deal with WinGetPos().

Btw. do you know how to interpret a result given by WinGetHandle() ?

What do you mean "interpret"? A handle is a handle.

Share this post


Link to post
Share on other sites
daxstec

OK, handle is a handle- right, but handle is a hex number and the number is something like a 'pointer' but i do not know if eg. i want to move cursor about some distance with respect to the handle.

Share this post


Link to post
Share on other sites
Melba23

daxstec,

A Windows handle is a unique ID (in a special format) allocated to every control that Windows uses and needs to keep track of. It has absolutely nothing to do with position - it is purely a unique ID. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
daxstec

So I was wrong... thank you for your answer ;) Could you help me with ;) from the post I conclude that it works but on my computer does not :)

Regards !

Share this post


Link to post
Share on other sites
Melba23

daxstec,

My pleasure again. ;)

I have responded to the other thread - although in a rather bemused fashion. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
somdcomputerguy

The title that you use with WinGetHandle, use with WinGetPos.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
daxstec

Yes, I use this function.

THanks !

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.