Jump to content
Sign in to follow this  

Launching executable at right corner of screen

Recommended Posts



I have written a script, complied and got an executable.

On double clicking, I want my executable GUI to launch right side of my screen.

How to i achive this ?

please assist.


Share this post

Link to post
Share on other sites

The GUICreate function has a left parameter that dictates the horizontal position of the GUI.

$left =700
$hGUI=GUICreate("some gui",100,100,$left)
GUISetState(@SW_SHOW, $hGUI)
while 1


If you increase the $left variable in the above example it will push the window to the right when it opens. 

You can also move an existing window with WinMove

WinMove ( "title", "text", x, y [, width [, height [, speed]]] )
Edited by Jfish

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.