Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with VB and SendMessage
I previously sent commands to QM from Excel VBA macros using:
Sendcom = "C:\Program Files\Quick Macros 2\QMCL.EXE MS ""QMMacroName"" A " & Param1
RetVal = Shell(Sendcom, 1)

But now I switched to Visual Basic 2010. In the QM help is states we can use : SendMessage(hwndQM, WM_SETTEXT, mode, commandline)

But I'm at a loss how to set the hwndQM pointer for Quick Macros???
Use Windows API function FindWindow. With it, use class name "QM_Editor", and no window name (null). The function returns the hwndQM.
Worked perfectly.

Thanks for the quick answer!

Forum Jump:

Users browsing this thread: 1 Guest(s)