| View previous topic :: View next topic |
| Author |
Message |
vjkumar
Joined: 28 Feb 2008 Posts: 2
|
Posted: Thu Feb 28, 2008 5:32 pm Post subject: Send {Enter} as soon as Print dialog is displayed |
|
|
Hi,
I'm new here & have been looking into the docs. for sending an {Enter} event as soon as the Print dialog is shown. (OS : Windows)
From my app. when the user clicks on a button, a printing sequence is initiated which automatically brings up the PRINT dialog box & then the user has to click on OK to proceed with printing. I want to send an {Enter} event as soon as the dialog box is shown so that the user need not click on the OK button to start printing.
Any help with scripting for the above requirement will be very helpful.
tia
JK |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 502
|
Posted: Thu Feb 28, 2008 6:11 pm Post subject: |
|
|
| Code: |
SetTimer, Timer, 200
Timer:
IfWinExist, Print
Send, {Enter}
Return
|
_________________
HTH...
 |
|
| Back to top |
|
 |
vjkumar
Joined: 28 Feb 2008 Posts: 2
|
Posted: Sat Mar 01, 2008 8:26 am Post subject: |
|
|
You made my day . It really helped.
Thank you very much.
-- JK |
|
| Back to top |
|
 |
|