Página 1 de 1
How to send a hotkey to an application
Publicado: Vie Jul 06, 2012 3:39 pm
por Guest
Can Xailer send a Hotkey, for example an Ctrl S or a Ctrl C, to an application?
Assuming that you have the window handle or title in a variable, how do you do this?
How to send a hotkey to an application
Publicado: Sab Jul 07, 2012 6:40 pm
por juanc
Part of the solution:
Local oShell := CreateObject( "WScript.Shell" )
//
oShell:SendKeys( "sample" )
Tested with windows xp.
"DGauss" <galois[at]nycap[dot]rr[dot]com> escribió en el mensaje
news:4ff6ea8a$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Can Xailer send a Hotkey, for example an Ctrl S or a Ctrl C,
> to an application?
>
> Assuming that you have the window handle or title in a
> variable, how do you do this?
>
>
How to send a hotkey to an application
Publicado: Dom Jul 08, 2012 6:36 pm
por Guest
Yeah, it looks like there's no easy way, other than to execute an
external COM.
Thanks for the Shell sample Juan, I think I'll go the AutoIt route.
How to send a hotkey to an application
Publicado: Lun Jul 09, 2012 10:50 am
por ignacio
DGauss escribió el vie, 06 julio 2012 15:39Can Xailer send a Hotkey, for example an Ctrl S or a Ctrl C, to an application?
Assuming that you have the window handle or title in a variable, how do you do this?
You can use the windows API function SendMessage() to send a WM_CHAR message to a specific window (control) knowing its handle. BTW, focus should also be given (WM_SETFOCUS) prior to that.
Regards,
How to send a hotkey to an application
Publicado: Lun Jul 09, 2012 9:16 pm
por juanc
You can also use AutoIt like this:
Local oKey := CreateObject( "AutoItX3.Control" )
with functions oKey:Send(), oKey:WinList(), oKey:WinExist() and
oKey:WinActivate()
"DC" <
NoSpamPlease@nycap.rr.com> escribió en el mensaje
news:4ff9b715$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Yeah, it looks like there's no easy way, other than to execute an external
> COM.
>
> Thanks for the Shell sample Juan, I think I'll go the AutoIt route.
>
How to send a hotkey to an application
Publicado: Mar Jul 10, 2012 1:42 am
por Guest
Ah, cool. You can use SendMessage directly from an Xailer app? That's
great, thanks Ignacio.