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 

Print Dialog Help

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



Joined: 28 Sep 2007
Posts: 37

PostPosted: Thu Dec 11, 2008 9:50 pm    Post subject: Print Dialog Help Reply with quote

I have a script that runs and sends an "Enter" key to automatically print when a Print dialog window pops up. I'm wondering if there is a way to move the default location of the window so it doesn't pop up in the middle of the screen. Does anybody know if there is a way to do this? Or, is there any other way to suppress the dialog window?

Currently, the script I'm using is:
Code:
#SingleInstance ignore
Loop
{
   ifWinExist ahk_class Tfspform.UnicodeClass
   {
      WinWaitActive, Print, ,
      {
         Send, {Enter}
      }
   }
}
Back to top
View user's profile Send private message
Frankie



Joined: 02 Nov 2008
Posts: 2850

PostPosted: Thu Dec 11, 2008 9:54 pm    Post subject: Reply with quote

You mean like WinMove?

Quote:
WinMove, X, Y
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run
Back to top
View user's profile Send private message
n00ge



Joined: 28 Sep 2007
Posts: 37

PostPosted: Thu Dec 11, 2008 11:52 pm    Post subject: Reply with quote

Thanks but that isn't really what I was looking for. It still loads in the same place and then moves. Is there a way to change the default location for where the window opens?
Back to top
View user's profile Send private message
Display posts from previous:   
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