Jump to content

GuiRegisterMsg Confusion


 Share

Recommended Posts

Alright, There has been one particular function that i still can't seem to understand.

GUIRegisterMsg()

How exactly does GUIRegisterMsg work? Where do you get the constant that you use when you call the function, such as these constants from the example: (Which is so complex it is rather hard to follow)

Global Const $WM_DRAWITEM           = 0x002B
Global Const $WM_COMMAND            = 0x0111oÝ÷ Ø    l£rv¬z÷«ÊÞ¡ûaz·z·§qç_ºw-ì²Ö«·­Øb²ì¢g­)àrZ,y«­¢+ØÀÌØí¹9½Ñ¥å
½ô    ¥ÑM¡¥Ð ÀÌØíÝAÉ´°Äؤ(ÀÌØí¹%ô   ¥Ñ¹ ÀÌØíÝAÉ´°ÁàÀÀÀÁ¤(ÀÌØí¡
ÑÉ°ôÀÌØí±AÉ´

Is this information necessary? I don't know how or where to apply it.

It would really help if somebody were to walk me through the use of this function. Perhaps explain the logic. I just can't seem to understand the helpfile examples. :)

Thanks

Edited by Paulie
Link to comment
Share on other sites

Where do you get the constant that you use when you call the function, such as these constants from the example: (Which is so complex it is rather hard to follow)

Global Const $WM_DRAWITEM           = 0x002B
Global Const $WM_COMMAND            = 0x0111oÝ÷ Ûú®¢×ërìµ©í±ªÞ~§v)íì"Ú0±ªbXoÝ÷ Ø-+"ú+«b¢yÞqë,j¼v÷öÙ'£hÂðêÞ¶©¦¢·ú®¢×Ô¡ût߬j¶¦×ªÞ¶êç²Ø^D7â®Ëu鸭²í奪Úë^­·¢
Z²Ç¶­+@Ý7ëÚ­©´ÇM4ÐQE·­º¹ì¶9cV¬·^Û(~Ø^XðÊZ­©µêÛz)५,yÛhÔázÇ­ë¬yÛhëf¢·¢ú+«b¢wë¢kazg¬±¨ÞÅ©©è¸Ë Á«-¡ê®jU(F9cr¢ì(ºW`zÛaxr9èÚ­©­¡ø§v­¶ªÚr׫¶®±êé­ë,yÚ®¢×·
.ÚÞjYréiû(æèw,­ëhÁ©dëa® Ø^ºÇ¨~Øb±û§rب÷«ªl{ej)íéh'ë-q©÷öÛzkhºw^®ËZÛaz¥¥ø¥yìZ^³ájy,þ«¨µá! Ë^¬Ë jYhĄ̂ºÚuܨºº0g¬±¨©ÝêÅ¢·±jjez'ÈÁ©íyÛhr'Únëm¢|²Þ²Ç¢¶§ÊØb¥±ëajÜ(ºW`zw«j×XÀ0À
g¬±¨#
.×h²¶§X¤zØb±«­¢+Ù±½°
½¹ÍÐÀÌØí]5}
=559ôÁàÀÄÄÄ((ÀÌØí¡]¹ôU%
ÉÑ ÅÕ½Ðí¡±±¼Ý½É±ÅÕ½Ðì°ØÐÀ°ÐàÀ¤(ÀÌØíѸôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí!±±¼]½É±ÌÌìÅÕ½Ðì°À°À¤)U%I¥ÍÑÉ5Í ÀÌØí]5}
=559°ÅÕ½Ðí5å
1½ÍÕ¹ÅÕ½Ðì¤)U%MÑMÑÑ ¤()Ý¡¥± Ĥ)]¹()Õ¹5å
±½ÍÕ¹ ÀÌØí¡]¹°ÀÌØíÕ5Í°ÀÌØíÝAÉ´°ÀÌØí±AÉ´¤(5Í ½à À°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðíe½ÔÁÉÍÍÑ¡ÕÑѽ¸¸¸¸½½åÌÌìÅÕ½Ðì¤(á¥Ð)¹Õ¹oÝ÷ Ø2¢çÇ!Ú'ßÛaj÷+ax"Ø^Â¥zZ(§}Ó«b±·jëBz¬µê̲Zëj·¨~ØZ´w«z+Þr©'µç^Å©©ëajÛ¬zɮةæî¶Ú'±«­¢+Ù±½°
½¹ÍÐÀÌØí]5}
=559ôÁàÀÄÄÄ((ÀÌØí¡]¹ôU%
ÉÑ ÅÕ½Ðí¡±±¼Ý½É±ÅÕ½Ðì°ØÐÀ°ÐàÀ¤(ÀÌØíѸôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí   ÕÑѽ¸ÄÅÕ½Ðì°À°À¤(ÀÌØíѸÈôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí   ÕÑѽ¸ÈÅÕ½Ðì°ÄÀÀ°À¤)U%I¥ÍÑÉ5Í ÀÌØí]5}
=559°ÅÕ½Ðí5å
½µµ¹Õ¹ÅÕ½Ðì¤)U%MÑMÑÑ ¤()Ý¡¥± Ĥ)]¹()Õ¹5å
½µµ¹Õ¹ ÀÌØí¡]¹°ÀÌØíÕ5Í°ÀÌØíÝAÉ´°ÀÌØí±AÉ´¤(ìÀÌØí±AÉ´Ý¥±°½¹Ñ¥¸Ñ¡½¹Ñɽ°Ñ¡ÐÝÌÁÉÍ͸¸¸(¥ ÀÌØí±AÉ´ôôU%
ÑɱÑ!¹± ÀÌØíѸ¤¤Q¡¸(5Í ½à À°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðíe½ÔÁÉÍÍÕÑѽ¸ÄÅÕ½Ðì¤(±Í¥ ÀÌØí±AÉ´ôôU%
ÑɱÑ!¹± ÀÌØíѸȤ¤Q¡¸(5Í   ½à À°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðíe½ÔÁÉÍÍÕÑѽ¸ÈÅÕ½Ðì¤(¹%(á¥Ð)¹Õ¹

This example makes use of the $lParam parameter.. this parameter contains the HWND(window handle) of the control that was pressed. As you can see I am using GUICtrlGetHandle() because AutoIt doesn't return the window handle.. it returns the ID of the control.

Hopefully this helped you a little?

Edited by chris95219
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...