AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send {Enter} as soon as Print dialog is displayed

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vjkumar



Joined: 28 Feb 2008
Posts: 2

PostPosted: Thu Feb 28, 2008 5:32 pm    Post subject: Send {Enter} as soon as Print dialog is displayed Reply with quote

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
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 502

PostPosted: Thu Feb 28, 2008 6:11 pm    Post subject: Reply with quote

Code:

SetTimer, Timer, 200
Timer:
IfWinExist, Print
   Send, {Enter}
Return

_________________

HTH...

Back to top
View user's profile Send private message
vjkumar



Joined: 28 Feb 2008
Posts: 2

PostPosted: Sat Mar 01, 2008 8:26 am    Post subject: Reply with quote

You made my day Smile . It really helped.
Thank you very much.

-- JK
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group