AutoHotkey Community

It is currently May 27th, 2012, 3:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Gui position
PostPosted: November 7th, 2005, 1:31 pm 
Offline

Joined: October 8th, 2005, 9:22 am
Posts: 29
Location: Sri Lanka
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

:roll: Nuwan


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 1:46 pm 
Offline

Joined: October 21st, 2005, 12:02 am
Posts: 56
Location: Germany
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 1:57 pm 
I think it's much easier. :D

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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 2:00 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 2:15 pm 
Offline

Joined: October 21st, 2005, 12:02 am
Posts: 56
Location: Germany
Nice AGU,

now I learned something from this thread, too. :)

Regards,

Laudrin


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Ok I got it
PostPosted: November 7th, 2005, 5:12 pm 
Offline

Joined: October 8th, 2005, 9:22 am
Posts: 29
Location: Sri Lanka
Mercy...

Nuwan


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bobbysoon and 23 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group