Questions tagged [getmessage]

48 questions
1
vote
1 answer

Windows message 9 from GetMessage?

EDIT: Delete code I'd pasted here. An error in my code was causing the behavior described (missing a break in a switch statement). In a switch statement that handled the messages from GetMessage, I tossed in the integer values for a couple of…
jmccracken
  • 53
  • 8
1
vote
1 answer

GetMessage() function is calling itself infinitely (not coming out of loop)

I am implementing similar type of thing- I have some message box in the else part of the code below..what I get on debugging is that - I have same message box again and again and it doesn't end (which makes my program crash and I need to restart my…
Sss
  • 1,519
  • 8
  • 37
  • 67
1
vote
1 answer

Win32 - GetMessage from another thread

According to this thread: Can the HWND from CreateWindow/CreateDialog be GetMessage'd from another thread?, it seems that I can't use GetMessage in another thread using the main thread's HWND. I'm simply trying to grab the value inside an edittext…
ShrimpCrackers
  • 4,388
  • 17
  • 50
  • 76
1
vote
0 answers

How to hook and use WH_GETMESSAGE in AutoIt

Can someone give an example on how to hook in WH_GETMESSAGE into AutoIt to look for all system/app window messages on the desktop, and do something if a window is moved, and how to store the handle from the window that sent the message?
Anthony Miller
  • 15,101
  • 28
  • 69
  • 98
0
votes
2 answers

Invalid window handle after GetMessage() loop

For some reason I get "Invalid window handle" error direct after GetMessage() loop ends but I'm not even passing a HWND to it so how come I get this error? :s MSG Message; while(GetMessage(&Message, NULL, 0, 0) != 0) { …
Traxmate
  • 105
  • 1
  • 6
0
votes
1 answer

Is it safe to call PeekMessage/GetMessage from a DirectShow filter FillBuffer() call?

I have a DirectShow filter written in Delphi 6 using the DSPACK component library. It is a push source video filter that receives its source frames from an external cooperating process that I also wrote. When the worker thread that calls my…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
0
votes
1 answer

Message text from GetMessageW or NtUserGetMessage

I have a process that is spawned as a background process, that for some reason seems to throw up a message box in the background. So the process hangs, and I can't get the message. Can anyone tell me how I can get the text in this message via…
Override
  • 258
  • 1
  • 5
  • 12
0
votes
1 answer

How do I get around the limitation of having to place super constructor in the first line?

public NoWheelsException(Car[] carArray){ String holder = ""; for (int i=0; i
0
votes
2 answers

How To Detect Mouse wheel Scrolling by Any Function in User32.dll in C#

I am trying to detect user activity by "keyboard and mouse" on any program in Windows. I detect Keyboard activity and mouse click by GetAsyncKeyState() in user32.Dll". I detect Mouse Movement by System.Windows.Forms.Cursor.Position; I am searching…
0
votes
0 answers

How do I handle win32 events from another thread?

So i wanted to handle the win32 event callbacks from a separate thread so that i can handle other stuff in the background I've tried std::thread but the declaration GetMessage(LPMSG,HWND,UINT,UINT) will only work with a window that is on the current…
Samuel
  • 315
  • 3
  • 14
0
votes
0 answers

GetMessage does not receive WM_QUIT when closed from taskbar

I came across weird problem. I have C++ (WinAPI) application and if I close it via [X] window button, everything works correctly - window is closed, application is ended. But when I close the application from the taskbar button context menu, the…
bigmuscle
  • 419
  • 1
  • 6
  • 16
0
votes
1 answer

Get error message from a throw error NodeJS

I need to insert a log error in my db with the error. mysql.query(sql_log, [sucess], function (err, result) { if (err){ mysql.rollback(function() { throw err; }); } }); I need get err.message
Leandro Matilla
  • 911
  • 4
  • 14
0
votes
0 answers

How GetKeyState works exactly?

I have been struggling with understand how GetKeyState operating. I have done endless google searching and haven't yet managed yet to understand exactly how it works According to MSDN: The key status returned from this function changes as a thread…
0
votes
3 answers

Gmail API .NET: Get full message

How do I get the full message and not just the metadata using gmail api? I have a service account and I am able to retrieve a message but only in the metadata, raw and minimal formats. How do I retrieve the full message in the full format? The…
jpo
  • 3,959
  • 20
  • 59
  • 102
0
votes
3 answers

getMessage() on Exception object does not provides null

With a code like this public static void main(String[] args) { Exception one = new Exception("my cause"); System.out.println("A) " + one.getMessage()); System.out.println(); Exception two = new Exception(one); …
Deviling Master
  • 3,033
  • 5
  • 34
  • 59