Dan Waters
dwaters at usinternet.com
Sun Jul 16 10:48:43 CDT 2006
Thanks Marty - Next time I'll use it! Dan Waters -----Original Message----- Subject: Re: [AccessD] SendObject Do you mean this, if you scroll way down the page to the Giant's big boot you will find this and the command line parameters. ' Microsoft Visual Basic (VB/VBA) Sample ' Declare Windows' API functions Private Declare Function RegisterWindowMessage _ Lib "user32" Alias "RegisterWindowMessageA" _ (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "user32" _ Alias "FindWindowA" (ByVal lpClassName As Any, _ ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Any) As Long Private Sub SomeProc() Dim wnd As Long Dim uClickYes As Long Dim Res As Long ' Register a message to send uClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") ' Find ClickYes Window by classname wnd = FindWindow("EXCLICKYES_WND", 0&) ' Send the message to Resume ClickYes Res = SendMessage(wnd, uClickYes, 1, 0) ' ... ' Do some Actions ' ... ' Send the message to Suspend ClickYes Res = SendMessage(wnd, uClickYes, 0, 0) End Sub Dan Waters wrote: >Rocky - can you describe more about this: > > Developers can automate its behavior by sending special messages > via standard Windows API functions or even very simple command line > switches. > >I haven't heard of this till now. > >Thanks! >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com