JGA Posted July 6, 2007 Share Posted July 6, 2007 Hi, Can someone tell me if there is a way to display a dialog box on the right site of the screen using GUICreate ? Thanks Best regards Link to comment Share on other sites More sharing options...
Monamo Posted July 6, 2007 Share Posted July 6, 2007 (edited) I'd suggest using @DesktopWidth when creating:#include <GUIConstants.au3> $iWidth=400 $iHeight=150 GUICreate("Right-edge GUI",$iWidth,$iHeight,(@DesktopWidth-$iWidth)) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WendUseful when creating "sidebar" launchers, so I find myself using it often. - Mo Edited July 6, 2007 by Monamo - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
JGA Posted July 6, 2007 Author Share Posted July 6, 2007 (edited) I'd suggest using @DesktopWidth when creating: #include <GUIConstants.au3> $iWidth=400 $iHeight=150 GUICreate("Right-edge GUI",$iWidth,$iHeight,(@DesktopWidth-$iWidth)) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Useful when creating "sidebar" launchers, so I find myself using it often. - Mo Thanks for your reply Monamo This is my script can it work with in this script ? thanksgui.au3 Edited July 6, 2007 by JGA Link to comment Share on other sites More sharing options...
JGA Posted July 6, 2007 Author Share Posted July 6, 2007 Thanks for your reply MonamoThis is my scriptcan it work with in this script ?thanksThanks for your help Monamo,I need to set the GUI Right top of the screen !thanks Link to comment Share on other sites More sharing options...
Monamo Posted July 6, 2007 Share Posted July 6, 2007 (edited) can it work with in this script? Yes, Since you're not always going to know what screen resolution the target machine will be set to, you'd wanna set the "Left" position to: @DesktopWidth - [your gui width] Edited July 6, 2007 by Monamo - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
JGA Posted July 10, 2007 Author Share Posted July 10, 2007 Yes, Since you're not always going to know what screen resolution the target machine will be set to, you'd wanna set the "Left" position to: @DesktopWidth - [your gui width] HI Mon, Still problem with this can you please take a look to the script I posted and do the modification for me ? Thanks Link to comment Share on other sites More sharing options...
Monamo Posted July 10, 2007 Share Posted July 10, 2007 HI Mon, Still problem with this can you please take a look to the script I posted and do the modification for me ? Thanks I'll avoid being snarky (today) and referring you back to the help file. Just change your GUICreate line to: GUICreate("Choose Application", 85, 450,@DesktopWidth - 85,1, $WS_popup,$WS_EX_TOPMOST) - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
JGA Posted July 10, 2007 Author Share Posted July 10, 2007 I'll avoid being snarky (today) and referring you back to the help file. Just change your GUICreate line to: GUICreate("Choose Application", 85, 450,@DesktopWidth - 85,1, $WS_popup,$WS_EX_TOPMOST) Hi Mon, Thanks a lot for your help. It works fine now. Best regards JGA 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