Jump to content

Recommended Posts

Posted

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

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

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]

Posted (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 ?

thanks

gui.au3

Edited by JGA
Posted

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

Posted (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 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]

Posted

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

Posted

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]

Posted

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

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
  • Recently Browsing   0 members

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