Jump to content

Recommended Posts

Posted

Guys,

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.

Cheers,

Posted (edited)

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

WEnd

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

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