Jump to content

Recommended Posts

Posted

I created a GUI. I was using dual monitors at the time. Now when I open my script it always opens offscreen. How can I get it to open back on the primary screen. I compiled the script and ran it on a server and it still opened offscreen. Any ideas?

Posted (edited)

Might be an idea to post your script, or at least the part in your script in which you create the GUI.

Edited by Outshynd
Posted

Here is the first part of my code. Thanks for hte response. Not sure if it matters but as you will see, I made some of the GUI from Koda.

#include <GUIConstants.au3>
#include <Array.au3>
#Include <GuiCombo.au3>
#Include <GuiEdit.au3>
#Include <GuiStatusBar.au3>


Dim $strUserDN
Dim $Home
Dim $homeDirectory
Local $oMyError = ObjEvent("AutoIt.Error", "ComError")



Opt("GUIOnEventMode", 1) ; Change to OnEvent mode 

#Region ### START Koda GUI section ### Form=c:\documents and settings\bsiegm\desktop\scripting\koda\forms\tabs.kxf
$Form1_1 = GUICreate("Tabbed Notebook Dialog", 413, 305, -884, 214)
GUISetIcon("D:05.ico")
$PageControl1 = GUICtrlCreateTab(8, 8, 396, 256)

GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "SpecialEvents")
GUISetOnEvent($GUI_EVENT_RESTORE, "SpecialEvents")

;TabSheet 1
$TabSheet1 = GUICtrlCreateTabItem("Copy Template")
GUICtrlSetState(-1,$GUI_SHOW)
$templateUser_combo = GUICtrlCreateCombo("", 224, 40, 161, 25)
$templateUser_lbl = GUICtrlCreateLabel("Select Template User", 104, 40, 106, 17)
$firstName_input = GUICtrlCreateInput("", 32, 96, 121, 21)
$Input2 = GUICtrlCreateInput("", 160, 96, 25, 21)
$lastName_input = GUICtrlCreateInput("", 192, 96, 185, 21)
$firstName_lbl = GUICtrlCreateLabel("First Name", 32, 80, 54, 17)
$mI_lbl = GUICtrlCreateLabel("M.I.", 160, 80, 22, 17)
$lastName_lbl = GUICtrlCreateLabel("Last Name", 192, 80, 55, 17)
        
            Local $objCommand = ObjCreate("ADODB.Command")
            Local $objConnection = ObjCreate("ADODB.Connection")
Posted

Exactly, I just figured it out, sorry I could not get on to edit my post. AutoIT forums is loading really slow for me. I feel like an idiot on this one. Thanks for not being sarcastic. It is all coming together now. I made it on Koda on my second screen and it put those settings in. Once again I am sorry to waste everyones time on such a stupid post.

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