Jump to content

Display dialog box on the right site of the screen


JGA
 Share

Recommended Posts

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

Edited 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

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 ?

thanks

gui.au3

Edited by JGA
Link to comment
Share on other sites

Thanks for your reply Monamo

This is my script

can it work with in this script ?

thanks

Thanks for your help Monamo,

I need to set the GUI Right top of the screen !

thanks

Link to comment
Share on other sites

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 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...