LostUser Posted June 20, 2008 Share Posted June 20, 2008 I was initially trying to get the changing text from a control. Which I finally figured out how to do. However, I talked to the person who wrote the program and they said if I can intercept WM_USER messages, then I can get the data I need and it is updated faster than looking at the control. Anyone know how to do this or how to get the information to do this? I am currently scouring the internet but have nothing usable yet. Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools. Link to comment Share on other sites More sharing options...
Kip Posted June 20, 2008 Share Posted June 20, 2008 GUIRegisterMsg() ? MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
LostUser Posted June 20, 2008 Author Share Posted June 20, 2008 GUIRegisterMsg() ?This may be out of my league but I am going to try anyway.So how do I get the message ID from the program? Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools. Link to comment Share on other sites More sharing options...
Kip Posted June 20, 2008 Share Posted June 20, 2008 When you move this gui, MyFunction will be called. Just change $WM_MOVING to $WM_USER #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("bla",100,100) GUISetState() $WM_MOVING = 0x0216 GUIRegisterMsg($WM_MOVING,"Myfunction") While 1 WEnd Func Myfunction($hWnd, $iMsg, $wParam, $lParam) MsgBox(0,"bla","bla") EndFunc MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
LostUser Posted June 21, 2008 Author Share Posted June 21, 2008 When you move this gui, MyFunction will be called. Just change $WM_MOVING to $WM_USER #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("bla",100,100) GUISetState() $WM_MOVING = 0x0216 GUIRegisterMsg($WM_MOVING,"Myfunction") While 1 WEnd Func Myfunction($hWnd, $iMsg, $wParam, $lParam) MsgBox(0,"bla","bla") EndFunc I tried this and it works until I change $WM_MOVING to $WM_USER, then I get an error. I think I understand what you are trying to show after I have read up on the WM_USER information. I need to learn more about these types of things. I just found, however, that the program I am trying to access does not use $WM_USER for the battery data. It is used to send memory pointer information to his battery program while running in memory. Also, while his program does show multiple batteries, it doesn't show multiple batteries in the Static object I was reading so now that's out too. I am looking at this program but it doesn't seem to work quite right or I am missing something. Thanks for your help though. Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools. Link to comment Share on other sites More sharing options...
ChrisL Posted June 21, 2008 Share Posted June 21, 2008 (edited) What exactly do you want to achieve? Maybe it will be easier to start from scrach Edited June 21, 2008 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire 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