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 

Gui position

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



Joined: 08 Oct 2005
Posts: 29
Location: Sri Lanka

PostPosted: Mon Nov 07, 2005 12:31 pm    Post subject: Gui position Reply with quote

Hai,

I searched in Helpfiles and I couldn't find How to position my GUI in screen.
Because this is little different,

I want tp position my GUI in the "Lower Right hand corner" in my Screen
(near the Time clock.)

And when I changing my resolution / or using 15inch or 17inch monitor
The position must be same.

Pls check and answer

Rolling Eyes Nuwan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Laudrin



Joined: 20 Oct 2005
Posts: 56
Location: Germany

PostPosted: Mon Nov 07, 2005 12:46 pm    Post subject: Reply with quote

Hi Nuwan,

as far as I know, you have to retrieve the screen resoultion with SysGet and then use Gui, Show, Xy Xn...

Take a look at http://www.autohotkey.com/docs/commands/SysGet.htm and http://www.autohotkey.com/docs/commands/Gui.htm#Show.

Regards,

Laudrin
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Mon Nov 07, 2005 12:57 pm    Post subject: Reply with quote

I think it's much easier. Very Happy

Autohotkey provides some variables A_ScreenWidth and A_ScreenHeight.
See http://www.autohotkey.com/docs/Variables.htm#Screen for details.
Back to top
AGU
Guest





PostPosted: Mon Nov 07, 2005 1:00 pm    Post subject: Reply with quote

Lower right hand corner would then be:

x-position: A_ScreenWidth - GuiWidth
y-position: A_ScreenHeight - GuiHeight.

Gui, Show, x-position y-position

N'est pas?
Back to top
Laudrin



Joined: 20 Oct 2005
Posts: 56
Location: Germany

PostPosted: Mon Nov 07, 2005 1:15 pm    Post subject: Reply with quote

Nice AGU,

now I learned something from this thread, too. Smile

Regards,

Laudrin
Back to top
View user's profile Send private message
Nuwan



Joined: 08 Oct 2005
Posts: 29
Location: Sri Lanka

PostPosted: Mon Nov 07, 2005 4:12 pm    Post subject: Ok I got it Reply with quote

Mercy...

Nuwan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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