Alexxander Posted May 1, 2014 Share Posted May 1, 2014 hi all how can i make the gui at the right down corner of the screen ? so what ever the screen resulotion or the pc is it will be always on the right down corner Link to comment Share on other sites More sharing options...
Moderators Solution JLogan3o13 Posted May 1, 2014 Moderators Solution Share Posted May 1, 2014 Something like this, based on the size of your gui? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("Test", 300, 300, @DesktopWidth - 300, @DesktopHeight - 300) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() Alexxander 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Alexxander Posted May 1, 2014 Author Share Posted May 1, 2014 Something like this, based on the size of your gui? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("Test", 300, 300, @DesktopWidth - 300, @DesktopHeight - 300) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() perfect thanks Link to comment Share on other sites More sharing options...
Bearpocalypse Posted May 2, 2014 Share Posted May 2, 2014 I use something like this in several of my scripts. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 261, 164) ;Gets the Control ID of the taskbar. $aTaskbar = WinGetPos("[CLASS:Shell_TrayWnd]", "") ;Gets the position and size of $MainForm $aWin = WinGetPos($Form1) ;moves the form above the clock on the task bar. WinMove($Form1, "", @DesktopWidth - $aWin[2] - 4, @DesktopHeight - $aWin[3] - $aTaskbar[3] - 4) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now