Paulie Posted August 18, 2007 Share Posted August 18, 2007 (edited) 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 August 18, 2007 by Paulie Link to comment Share on other sites More sharing options...
cppman Posted August 18, 2007 Share Posted August 18, 2007 (edited) 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 August 18, 2007 by chris95219 Miva OS Project Link to comment Share on other sites More sharing options...
James Posted August 18, 2007 Share Posted August 18, 2007 Ahh.. That makes sense, I was just going to ask this. So its a bit like GuiSetOnEvent() only a bit better, and a bit harder. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now