Sign in to follow this  
Followers 0
pugh

[SOLVED] Two of my buttons mysteriously don't work.

3 posts in this topic

ok, my apologies if I should not have posted this at all, but I thought it might be useful information to other fools like me.

mods, admins, and any others in high places -if I am so offensive as to deserve it, feel free to ban me for life ; )

I was going through and re-writing the URLs in my program to ones that should be accessible to all, rather than my local network addresses when I discovered the source of my problem: I had simply put the buttons in twice -a simple copy/paste gone awry

OP:

I have several buttons in a little GUI I've made, 2 of them are not working for some reason.

In the code below I have commented out the references to names "$btnSaveVert" and "$btnSaveHoriz" (which originally had the "Save" shortened to "Sv", I wrote out "Save" when I first discovered they were not working)

I finally went with "$btn1" and "$btn2" to rule out typos (but had used copy/paste before that, so I REALLY don't know how I could have had typos).

The two buttons still refuse to do anything when clicked.

I am on a Dell Optiplex 960 running Win7 Ent Ed

I am using AutoIt 3.2.2.0

I've made several little GUIs before, some with many more buttons, this is the first I have seen this strange behavior.

I welcome you to point out my glaring mistake, the one that's been staring me in the face for the last 5 hours. : )

#include <GUIConstants.au3>
Opt("PixelCoordMode",0)
Opt("WinTitleMatchMode",4)
Opt("TrayIconDebug", 1)
;AutoItSetOption("WinTitleMatchMode", 4)
Global $filename
; create folder if it does not exist
$filename = "C:\mjrtHlpr\OEMgraph"
If FileExists($filename) Then
    Sleep(500)
Else
    MsgBox(4096,"", $filename & " does not exist. Creating now...")
DirCreate("C:\mjrtHlpr\OEMgraph")
EndIf
; create OEMpositions[USERNAME].ini file if it does not exist where [USERNAME] is the domain ID of the currently logged in user
$filename = "C:\mjrtHlpr\OEMgraph\OEMpositions" & StringUpper(@UserName) & ".ini"
If FileExists($filename) Then
    Sleep(500)
Else
    MsgBox(4096,"", $filename & " does not exist. Creating now...")
DirCreate("C:\mjrtHlpr\OEMgraph")
IniWrite($filename,"HorizPos","xPos11","1681")
IniWrite($filename,"HorizPos","yPos11","500")
IniWrite($filename,"HorizPos","width11","580")
IniWrite($filename,"HorizPos","height11","600")
IniWrite($filename,"HorizPos","layer11","4")
IniWrite($filename,"HorizPos","xPos12","2101")
IniWrite($filename,"HorizPos","yPos12","500")
IniWrite($filename,"HorizPos","width12","580")
IniWrite($filename,"HorizPos","height12","600")
IniWrite($filename,"HorizPos","layer12","3")
IniWrite($filename,"HorizPos","xPos13","2521")
IniWrite($filename,"HorizPos","yPos13","500")
IniWrite($filename,"HorizPos","width13","580")
IniWrite($filename,"HorizPos","height13","600")
IniWrite($filename,"HorizPos","layer13","2")
IniWrite($filename,"HorizPos","xPos14","2941")
IniWrite($filename,"HorizPos","yPos14","500")
IniWrite($filename,"HorizPos","width14","580")
IniWrite($filename,"HorizPos","height14","600")
IniWrite($filename,"HorizPos","layer14","1")
IniWrite($filename,"ORIGHorizPos","xPos11","1681")
IniWrite($filename,"ORIGHorizPos","yPos11","500")
IniWrite($filename,"ORIGHorizPos","width11","580")
IniWrite($filename,"ORIGHorizPos","height11","600")
IniWrite($filename,"ORIGHorizPos","layer11","4")
IniWrite($filename,"ORIGHorizPos","xPos12","2101")
IniWrite($filename,"ORIGHorizPos","yPos12","500")
IniWrite($filename,"ORIGHorizPos","width12","580")
IniWrite($filename,"ORIGHorizPos","height12","600")
IniWrite($filename,"ORIGHorizPos","layer12","3")
IniWrite($filename,"ORIGHorizPos","xPos13","2521")
IniWrite($filename,"ORIGHorizPos","yPos13","500")
IniWrite($filename,"ORIGHorizPos","width13","580")
IniWrite($filename,"ORIGHorizPos","height13","600")
IniWrite($filename,"ORIGHorizPos","layer13","2")
IniWrite($filename,"ORIGHorizPos","xPos14","2941")
IniWrite($filename,"ORIGHorizPos","yPos14","500")
IniWrite($filename,"ORIGHorizPos","width14","580")
IniWrite($filename,"ORIGHorizPos","height14","600")
IniWrite($filename,"ORIGHorizPos","layer14","1")
IniWrite($filename,"VertPos","xPos11","2453")
IniWrite($filename,"VertPos","yPos11","-286")
IniWrite($filename,"VertPos","width11","917")
IniWrite($filename,"VertPos","height11","578")
IniWrite($filename,"VertPos","layer11","1")
IniWrite($filename,"VertPos","xPos12","2453")
IniWrite($filename,"VertPos","yPos12","-3")
IniWrite($filename,"VertPos","width12","917")
IniWrite($filename,"VertPos","height12","563")
IniWrite($filename,"VertPos","layer12","2")
IniWrite($filename,"VertPos","xPos13","2453")
IniWrite($filename,"VertPos","yPos13","265")
IniWrite($filename,"VertPos","width13","917")
IniWrite($filename,"VertPos","height13","563")
IniWrite($filename,"VertPos","layer13","3")
IniWrite($filename,"VertPos","xPos14","2453")
IniWrite($filename,"VertPos","yPos14","533")
IniWrite($filename,"VertPos","width14","917")
IniWrite($filename,"VertPos","height14","563")
IniWrite($filename,"VertPos","layer14","4")
IniWrite($filename,"ORIGVertPos","xPos11","2453")
IniWrite($filename,"ORIGVertPos","yPos11","-286")
IniWrite($filename,"ORIGVertPos","width11","917")
IniWrite($filename,"ORIGVertPos","height11","578")
IniWrite($filename,"ORIGVertPos","layer11","1")
IniWrite($filename,"ORIGVertPos","xPos12","2453")
IniWrite($filename,"ORIGVertPos","yPos12","-3")
IniWrite($filename,"ORIGVertPos","width12","917")
IniWrite($filename,"ORIGVertPos","height12","563")
IniWrite($filename,"ORIGVertPos","layer12","2")
IniWrite($filename,"ORIGVertPos","xPos13","2453")
IniWrite($filename,"ORIGVertPos","yPos13","265")
IniWrite($filename,"ORIGVertPos","width13","917")
IniWrite($filename,"ORIGVertPos","height13","563")
IniWrite($filename,"ORIGVertPos","layer13","3")
IniWrite($filename,"ORIGVertPos","xPos14","2453")
IniWrite($filename,"ORIGVertPos","yPos14","533")
IniWrite($filename,"ORIGVertPos","width14","917")
IniWrite($filename,"ORIGVertPos","height14","563")
IniWrite($filename,"ORIGVertPos","layer14","4")
IniWrite($filename,"CustPos","xPos11","2453")
IniWrite($filename,"CustPos","yPos11","-286")
IniWrite($filename,"CustPos","width11","917")
IniWrite($filename,"CustPos","height11","578")
IniWrite($filename,"CustPos","layer11","1")
IniWrite($filename,"CustPos","xPos12","2453")
IniWrite($filename,"CustPos","yPos12","-3")
IniWrite($filename,"CustPos","width12","917")
IniWrite($filename,"CustPos","height12","563")
IniWrite($filename,"CustPos","layer12","2")
IniWrite($filename,"CustPos","xPos13","2453")
IniWrite($filename,"CustPos","yPos13","265")
IniWrite($filename,"CustPos","width13","917")
IniWrite($filename,"CustPos","height13","563")
IniWrite($filename,"CustPos","layer13","3")
IniWrite($filename,"CustPos","xPos14","2453")
IniWrite($filename,"CustPos","yPos14","533")
IniWrite($filename,"CustPos","width14","917")
IniWrite($filename,"CustPos","height14","563")
IniWrite($filename,"CustPos","layer14","4")
IniWrite($filename,"SAVEDCustPos","xPos11","2453")
IniWrite($filename,"SAVEDCustPos","yPos11","-286")
IniWrite($filename,"SAVEDCustPos","width11","917")
IniWrite($filename,"SAVEDCustPos","height11","578")
IniWrite($filename,"SAVEDCustPos","layer11","1")
IniWrite($filename,"SAVEDCustPos","xPos12","2453")
IniWrite($filename,"SAVEDCustPos","yPos12","-3")
IniWrite($filename,"SAVEDCustPos","width12","917")
IniWrite($filename,"SAVEDCustPos","height12","563")
IniWrite($filename,"SAVEDCustPos","layer12","2")
IniWrite($filename,"SAVEDCustPos","xPos13","2453")
IniWrite($filename,"SAVEDCustPos","yPos13","265")
IniWrite($filename,"SAVEDCustPos","width13","917")
IniWrite($filename,"SAVEDCustPos","height13","563")
IniWrite($filename,"SAVEDCustPos","layer13","3")
IniWrite($filename,"SAVEDCustPos","xPos14","2453")
IniWrite($filename,"SAVEDCustPos","yPos14","533")
IniWrite($filename,"SAVEDCustPos","width14","917")
IniWrite($filename,"SAVEDCustPos","height14","563")
IniWrite($filename,"SAVEDCustPos","layer14","4")
EndIf

GUICreate("OEMgraph Helper",220,690,(@DesktopWidth-225),0) ; creates interface
GUISetFont(9, 300)
$btnSvVert = GUICtrlCreateButton ("save vert", 20, 625, 85, 20)
$btnSvHoriz = GUICtrlCreateButton ("save horiz", 115, 625, 85, 20)
$btn11open = GUICtrlCreateButton ("OEM prd11", 20, 5, 85, 20)
$btn12open = GUICtrlCreateButton ("OEM prd12", 115, 5, 85, 20)
$btn13open = GUICtrlCreateButton ("OEM prd13", 20, 45, 85, 20)
$btn14open = GUICtrlCreateButton ("OEM prd14", 115, 45, 85, 20)
$btnMoveVert = GUICtrlCreateButton ("Move Prod Windows - Vert", 20, 85, 180, 20)
$btnMoveHoriz = GUICtrlCreateButton ("Move Prod Windows - Horiz", 20, 125, 180, 20)
$btnMoveCust = GUICtrlCreateButton ("Move Prod Windows - Custom", 20, 165, 180, 20)
$btnVertReset = GUICtrlCreateButton ("Reset Vertical to Default", 20, 205, 180, 20)
$btnHorizReset = GUICtrlCreateButton ("Reset Horizontal to Default", 20, 245, 180, 20)
$btnDummy = GUICtrlCreateButton (" placeholder ", 20, 285, 180, 20)
$btnCustReset = GUICtrlCreateButton ("Load Saved Custom", 20, 325, 180, 20)
$btnPrd11values = GUICtrlCreateButton ("click to update prd11 values", 20, 365, 180, 20)
GUICtrlSetTip($btnPrd11values, "top level cannot be obtained, it is set manually or loaded from defaults")
$lblPrd11x = GUICtrlCreateLabel ("x", 25, 385, 25, 20)
GUICtrlSetTip($lblPrd11x, "x and y coords are the left uppermost corner of window")
$lblPrd11y = GUICtrlCreateLabel ("y", 70, 385, 25, 20)
GUICtrlSetTip($lblPrd11y, "x and y coords are the left uppermost corner of window")
$lblPrd11width = GUICtrlCreateLabel ("width", 100, 385, 40, 20)
$lblPrd11height = GUICtrlCreateLabel ("height", 140, 385, 40, 20)
$lblPrd11layer = GUICtrlCreateLabel ("top lvl", 185, 385, 40, 20)
GUICtrlSetTip($lblPrd11layer, "top level in regards to overlapping, layers/values are 1-4","")
$txtPrd11x = GUICtrlCreateInput ("", 5, 405, 40, 20)
$txtPrd11y = GUICtrlCreateInput ("", 50, 405, 40, 20)
$txtPrd11width = GUICtrlCreateInput ("", 95, 405, 40, 20)
$txtPrd11height = GUICtrlCreateInput ("", 140, 405, 40, 20)
$txtPrd11layer = GUICtrlCreateInput ("", 190, 405, 20, 20)
$btnPrd12values = GUICtrlCreateButton ("click to update prd12 values", 20, 425, 180, 20)
GUICtrlSetTip($btnPrd12values, "top level cannot be obtained, it is set manually or loaded from defaults")
$lblPrd12x = GUICtrlCreateLabel ("x", 25, 445, 25, 20)
GUICtrlSetTip($lblPrd12x, "x and y coords are the left uppermost corner of window")
$lblPrd12y = GUICtrlCreateLabel ("y", 70, 445, 25, 20)
GUICtrlSetTip($lblPrd12y, "x and y coords are the left uppermost corner of window")
$lblPrd12width = GUICtrlCreateLabel ("width", 100, 445, 40, 20)
$lblPrd12height = GUICtrlCreateLabel ("height", 140, 445, 40, 20)
$lblPrd12layer = GUICtrlCreateLabel ("top lvl", 185, 445, 40, 20)
GUICtrlSetTip($lblPrd12layer, "top level in regards to overlapping, layers/values are 1-4","")
$txtPrd12x = GUICtrlCreateInput ("", 5, 465, 40, 20)
$txtPrd12y = GUICtrlCreateInput ("", 50, 465, 40, 20)
$txtPrd12width = GUICtrlCreateInput ("", 95, 465, 40, 20)
$txtPrd12height = GUICtrlCreateInput ("", 140, 465, 40, 20)
$txtPrd12layer = GUICtrlCreateInput ("", 190, 465, 20, 20)
$btnPrd13values = GUICtrlCreateButton ("click to update prd13 values", 20, 485, 180, 20)
GUICtrlSetTip($btnPrd13values, "top level cannot be obtained, it is set manually or loaded from defaults")
$lblPrd13x = GUICtrlCreateLabel ("x", 25, 505, 25, 20)
GUICtrlSetTip($lblPrd13x, "x and y coords are the left uppermost corner of window")
$lblPrd13y = GUICtrlCreateLabel ("y", 70, 505, 25, 20)
GUICtrlSetTip($lblPrd13y, "x and y coords are the left uppermost corner of window")
$lblPrd13width = GUICtrlCreateLabel ("width", 100, 505, 40, 20)
$lblPrd13height = GUICtrlCreateLabel ("height", 140, 505, 40, 20)
$lblPrd13layer = GUICtrlCreateLabel ("top lvl", 185, 505, 40, 20)
GUICtrlSetTip($lblPrd13layer, "top level in regards to overlapping, layers/values are 1-4","")
$txtPrd13x = GUICtrlCreateInput ("", 5, 525, 40, 20)
$txtPrd13y = GUICtrlCreateInput ("", 50, 525, 40, 20)
$txtPrd13width = GUICtrlCreateInput ("", 95, 525, 40, 20)
$txtPrd13height = GUICtrlCreateInput ("", 140, 525, 40, 20)
$txtPrd13layer = GUICtrlCreateInput ("", 190, 525, 20, 20)
$btnPrd14values = GUICtrlCreateButton ("click to update prd14 values", 20, 545, 180, 20)
GUICtrlSetTip($btnPrd14values, "top level cannot be obtained" & @CRLF & "it is set manually or loaded from defaults")
$lblPrd14x = GUICtrlCreateLabel ("x", 25, 565, 25, 20)
GUICtrlSetTip($lblPrd14x, "x and y coords are the left uppermost corner of window")
$lblPrd14y = GUICtrlCreateLabel ("y", 70, 565, 25, 20)
GUICtrlSetTip($lblPrd14y, "x and y coords are the left uppermost corner of window")
$lblPrd14width = GUICtrlCreateLabel ("width", 100, 565, 40, 20)
$lblPrd14height = GUICtrlCreateLabel ("height", 140, 565, 40, 20)
$lblPrd14layer = GUICtrlCreateLabel ("top lvl", 185, 565, 40, 20)
GUICtrlSetTip($lblPrd14layer, "top level in regards to overlapping, layers/values are 1-4","")
$txtPrd14x = GUICtrlCreateInput ("", 5, 585, 40, 20)
$txtPrd14y = GUICtrlCreateInput ("", 50, 585, 40, 20)
$txtPrd14width = GUICtrlCreateInput ("", 95, 585, 40, 20)
$txtPrd14height = GUICtrlCreateInput ("", 140, 585, 40, 20)
$txtPrd14layer = GUICtrlCreateInput ("", 190, 585, 20, 20)
;$btnSaveVert = GUICtrlCreateButton ("save vert", 20, 625, 85, 20)
;$btnSaveHoriz = GUICtrlCreateButton ("save horiz", 115, 625, 85, 20)
$btn1 = GUICtrlCreateButton ("save vert", 20, 625, 85, 20)
$btn2 = GUICtrlCreateButton ("save horiz", 115, 625, 85, 20)
$btnSaveCust = GUICtrlCreateButton ("save custom", 20, 665, 85, 20)
$btnHelp = GUICtrlCreateButton ("help me", 115, 665, 85, 20)
GUICtrlSetData($txtPrd11x,IniRead($filename,"VertPos","xPos11",""))
GUICtrlSetData($txtPrd11y,IniRead($filename,"VertPos","yPos11",""))
GUICtrlSetData($txtPrd11width,IniRead($filename,"VertPos","width11",""))
GUICtrlSetData($txtPrd11height,IniRead($filename,"VertPos","height11",""))
GUICtrlSetData($txtPrd11layer,IniRead($filename,"VertPos","layer11",""))
GUICtrlSetData($txtPrd12x,IniRead($filename,"VertPos","xPos12",""))
GUICtrlSetData($txtPrd12y,IniRead($filename,"VertPos","yPos12",""))
GUICtrlSetData($txtPrd12width,IniRead($filename,"VertPos","width12",""))
GUICtrlSetData($txtPrd12height,IniRead($filename,"VertPos","height12",""))
GUICtrlSetData($txtPrd12layer,IniRead($filename,"VertPos","layer12",""))
GUICtrlSetData($txtPrd13x,IniRead($filename,"VertPos","xPos13",""))
GUICtrlSetData($txtPrd13y,IniRead($filename,"VertPos","yPos13",""))
GUICtrlSetData($txtPrd13width,IniRead($filename,"VertPos","width13",""))
GUICtrlSetData($txtPrd13height,IniRead($filename,"VertPos","height13",""))
GUICtrlSetData($txtPrd13layer,IniRead($filename,"VertPos","layer13",""))
GUICtrlSetData($txtPrd14x,IniRead($filename,"VertPos","xPos14",""))
GUICtrlSetData($txtPrd14y,IniRead($filename,"VertPos","yPos14",""))
GUICtrlSetData($txtPrd14width,IniRead($filename,"VertPos","width14",""))
GUICtrlSetData($txtPrd14height,IniRead($filename,"VertPos","height14",""))
GUICtrlSetData($txtPrd14layer,IniRead($filename,"VertPos","layer14",""))
GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Select
  Case $msg = $btn11open
   Run("c:\progra~2\intern~1\iexplore.exe https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD11&type=oracle_database&waitClass=Overview&datasource=SQL")
  Case $msg = $btn12open
   Run("c:\progra~2\intern~1\iexplore.exe https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD12&type=oracle_database&waitClass=Overview&datasource=SQL")
  Case $msg = $btn13open
   Run("c:\progra~2\intern~1\iexplore.exe https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD13&type=oracle_database&waitClass=Overview&datasource=SQL")
  Case $msg = $btn14open
   Run("c:\progra~2\intern~1\iexplore.exe https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD14&type=oracle_database&waitClass=Overview&datasource=SQL")
  Case $msg = $btnMoveVert
   If IniRead($filename,"VertPos","layer11","") = 4 Then MoveEm("11",IniRead($filename,"VertPos","xPos11",""),IniRead($filename,"VertPos","yPos11",""),IniRead($filename,"VertPos","width11",""),IniRead($filename,"VertPos","height11",""))
   If IniRead($filename,"VertPos","layer12","") = 4 Then MoveEm("12",IniRead($filename,"VertPos","xPos12",""),IniRead($filename,"VertPos","yPos12",""),IniRead($filename,"VertPos","width12",""),IniRead($filename,"VertPos","height12",""))
   If IniRead($filename,"VertPos","layer13","") = 4 Then MoveEm("13",IniRead($filename,"VertPos","xPos13",""),IniRead($filename,"VertPos","yPos13",""),IniRead($filename,"VertPos","width13",""),IniRead($filename,"VertPos","height13",""))
   If IniRead($filename,"VertPos","layer14","") = 4 Then MoveEm("14",IniRead($filename,"VertPos","xPos14",""),IniRead($filename,"VertPos","yPos14",""),IniRead($filename,"VertPos","width14",""),IniRead($filename,"VertPos","height14",""))
   If IniRead($filename,"VertPos","layer11","") = 3 Then MoveEm("11",IniRead($filename,"VertPos","xPos11",""),IniRead($filename,"VertPos","yPos11",""),IniRead($filename,"VertPos","width11",""),IniRead($filename,"VertPos","height11",""))
   If IniRead($filename,"VertPos","layer12","") = 3 Then MoveEm("12",IniRead($filename,"VertPos","xPos12",""),IniRead($filename,"VertPos","yPos12",""),IniRead($filename,"VertPos","width12",""),IniRead($filename,"VertPos","height12",""))
   If IniRead($filename,"VertPos","layer13","") = 3 Then MoveEm("13",IniRead($filename,"VertPos","xPos13",""),IniRead($filename,"VertPos","yPos13",""),IniRead($filename,"VertPos","width13",""),IniRead($filename,"VertPos","height13",""))
   If IniRead($filename,"VertPos","layer14","") = 3 Then MoveEm("14",IniRead($filename,"VertPos","xPos14",""),IniRead($filename,"VertPos","yPos14",""),IniRead($filename,"VertPos","width14",""),IniRead($filename,"VertPos","height14",""))
   If IniRead($filename,"VertPos","layer11","") = 2 Then MoveEm("11",IniRead($filename,"VertPos","xPos11",""),IniRead($filename,"VertPos","yPos11",""),IniRead($filename,"VertPos","width11",""),IniRead($filename,"VertPos","height11",""))
   If IniRead($filename,"VertPos","layer12","") = 2 Then MoveEm("12",IniRead($filename,"VertPos","xPos12",""),IniRead($filename,"VertPos","yPos12",""),IniRead($filename,"VertPos","width12",""),IniRead($filename,"VertPos","height12",""))
   If IniRead($filename,"VertPos","layer13","") = 2 Then MoveEm("13",IniRead($filename,"VertPos","xPos13",""),IniRead($filename,"VertPos","yPos13",""),IniRead($filename,"VertPos","width13",""),IniRead($filename,"VertPos","height13",""))
   If IniRead($filename,"VertPos","layer14","") = 2 Then MoveEm("14",IniRead($filename,"VertPos","xPos14",""),IniRead($filename,"VertPos","yPos14",""),IniRead($filename,"VertPos","width14",""),IniRead($filename,"VertPos","height14",""))
   If IniRead($filename,"VertPos","layer11","") = 1 Then MoveEm("11",IniRead($filename,"VertPos","xPos11",""),IniRead($filename,"VertPos","yPos11",""),IniRead($filename,"VertPos","width11",""),IniRead($filename,"VertPos","height11",""))
   If IniRead($filename,"VertPos","layer12","") = 1 Then MoveEm("12",IniRead($filename,"VertPos","xPos12",""),IniRead($filename,"VertPos","yPos12",""),IniRead($filename,"VertPos","width12",""),IniRead($filename,"VertPos","height12",""))
   If IniRead($filename,"VertPos","layer13","") = 1 Then MoveEm("13",IniRead($filename,"VertPos","xPos13",""),IniRead($filename,"VertPos","yPos13",""),IniRead($filename,"VertPos","width13",""),IniRead($filename,"VertPos","height13",""))
   If IniRead($filename,"VertPos","layer14","") = 1 Then MoveEm("14",IniRead($filename,"VertPos","xPos14",""),IniRead($filename,"VertPos","yPos14",""),IniRead($filename,"VertPos","width14",""),IniRead($filename,"VertPos","height14",""))
   GUICtrlSetData($txtPrd11x,IniRead($filename,"VertPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"VertPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"VertPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"VertPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"VertPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"VertPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"VertPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"VertPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"VertPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"VertPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"VertPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"VertPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"VertPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"VertPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"VertPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"VertPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"VertPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"VertPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"VertPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"VertPos","layer14",""))
  Case $msg = $btnMoveHoriz
   If IniRead($filename,"HorizPos","layer11","") = 4 Then MoveEm("11",IniRead($filename,"HorizPos","xPos11",""),IniRead($filename,"HorizPos","yPos11",""),IniRead($filename,"HorizPos","width11",""),IniRead($filename,"HorizPos","height11",""))
   If IniRead($filename,"HorizPos","layer12","") = 4 Then MoveEm("12",IniRead($filename,"HorizPos","xPos12",""),IniRead($filename,"HorizPos","yPos12",""),IniRead($filename,"HorizPos","width12",""),IniRead($filename,"HorizPos","height12",""))
   If IniRead($filename,"HorizPos","layer13","") = 4 Then MoveEm("13",IniRead($filename,"HorizPos","xPos13",""),IniRead($filename,"HorizPos","yPos13",""),IniRead($filename,"HorizPos","width13",""),IniRead($filename,"HorizPos","height13",""))
   If IniRead($filename,"HorizPos","layer14","") = 4 Then MoveEm("14",IniRead($filename,"HorizPos","xPos14",""),IniRead($filename,"HorizPos","yPos14",""),IniRead($filename,"HorizPos","width14",""),IniRead($filename,"HorizPos","height14",""))
   If IniRead($filename,"HorizPos","layer11","") = 3 Then MoveEm("11",IniRead($filename,"HorizPos","xPos11",""),IniRead($filename,"HorizPos","yPos11",""),IniRead($filename,"HorizPos","width11",""),IniRead($filename,"HorizPos","height11",""))
   If IniRead($filename,"HorizPos","layer12","") = 3 Then MoveEm("12",IniRead($filename,"HorizPos","xPos12",""),IniRead($filename,"HorizPos","yPos12",""),IniRead($filename,"HorizPos","width12",""),IniRead($filename,"HorizPos","height12",""))
   If IniRead($filename,"HorizPos","layer13","") = 3 Then MoveEm("13",IniRead($filename,"HorizPos","xPos13",""),IniRead($filename,"HorizPos","yPos13",""),IniRead($filename,"HorizPos","width13",""),IniRead($filename,"HorizPos","height13",""))
   If IniRead($filename,"HorizPos","layer14","") = 3 Then MoveEm("14",IniRead($filename,"HorizPos","xPos14",""),IniRead($filename,"HorizPos","yPos14",""),IniRead($filename,"HorizPos","width14",""),IniRead($filename,"HorizPos","height14",""))
   If IniRead($filename,"HorizPos","layer11","") = 2 Then MoveEm("11",IniRead($filename,"HorizPos","xPos11",""),IniRead($filename,"HorizPos","yPos11",""),IniRead($filename,"HorizPos","width11",""),IniRead($filename,"HorizPos","height11",""))
   If IniRead($filename,"HorizPos","layer12","") = 2 Then MoveEm("12",IniRead($filename,"HorizPos","xPos12",""),IniRead($filename,"HorizPos","yPos12",""),IniRead($filename,"HorizPos","width12",""),IniRead($filename,"HorizPos","height12",""))
   If IniRead($filename,"HorizPos","layer13","") = 2 Then MoveEm("13",IniRead($filename,"HorizPos","xPos13",""),IniRead($filename,"HorizPos","yPos13",""),IniRead($filename,"HorizPos","width13",""),IniRead($filename,"HorizPos","height13",""))
   If IniRead($filename,"HorizPos","layer14","") = 2 Then MoveEm("14",IniRead($filename,"HorizPos","xPos14",""),IniRead($filename,"HorizPos","yPos14",""),IniRead($filename,"HorizPos","width14",""),IniRead($filename,"HorizPos","height14",""))
   If IniRead($filename,"HorizPos","layer11","") = 1 Then MoveEm("11",IniRead($filename,"HorizPos","xPos11",""),IniRead($filename,"HorizPos","yPos11",""),IniRead($filename,"HorizPos","width11",""),IniRead($filename,"HorizPos","height11",""))
   If IniRead($filename,"HorizPos","layer12","") = 1 Then MoveEm("12",IniRead($filename,"HorizPos","xPos12",""),IniRead($filename,"HorizPos","yPos12",""),IniRead($filename,"HorizPos","width12",""),IniRead($filename,"HorizPos","height12",""))
   If IniRead($filename,"HorizPos","layer13","") = 1 Then MoveEm("13",IniRead($filename,"HorizPos","xPos13",""),IniRead($filename,"HorizPos","yPos13",""),IniRead($filename,"HorizPos","width13",""),IniRead($filename,"HorizPos","height13",""))
   If IniRead($filename,"HorizPos","layer14","") = 1 Then MoveEm("14",IniRead($filename,"HorizPos","xPos14",""),IniRead($filename,"HorizPos","yPos14",""),IniRead($filename,"HorizPos","width14",""),IniRead($filename,"HorizPos","height14",""))
   GUICtrlSetData($txtPrd11x,IniRead($filename,"HorizPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"HorizPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"HorizPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"HorizPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"HorizPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"HorizPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"HorizPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"HorizPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"HorizPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"HorizPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"HorizPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"HorizPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"HorizPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"HorizPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"HorizPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"HorizPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"HorizPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"HorizPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"HorizPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"HorizPos","layer14",""))
  Case $msg = $btnMoveCust
   If IniRead($filename,"CustPos","layer11","") = 4 Then MoveEm("11",IniRead($filename,"CustPos","xPos11",""),IniRead($filename,"CustPos","yPos11",""),IniRead($filename,"CustPos","width11",""),IniRead($filename,"CustPos","height11",""))
   If IniRead($filename,"CustPos","layer12","") = 4 Then MoveEm("12",IniRead($filename,"CustPos","xPos12",""),IniRead($filename,"CustPos","yPos12",""),IniRead($filename,"CustPos","width12",""),IniRead($filename,"CustPos","height12",""))
   If IniRead($filename,"CustPos","layer13","") = 4 Then MoveEm("13",IniRead($filename,"CustPos","xPos13",""),IniRead($filename,"CustPos","yPos13",""),IniRead($filename,"CustPos","width13",""),IniRead($filename,"CustPos","height13",""))
   If IniRead($filename,"CustPos","layer14","") = 4 Then MoveEm("14",IniRead($filename,"CustPos","xPos14",""),IniRead($filename,"CustPos","yPos14",""),IniRead($filename,"CustPos","width14",""),IniRead($filename,"CustPos","height14",""))
   If IniRead($filename,"CustPos","layer11","") = 3 Then MoveEm("11",IniRead($filename,"CustPos","xPos11",""),IniRead($filename,"CustPos","yPos11",""),IniRead($filename,"CustPos","width11",""),IniRead($filename,"CustPos","height11",""))
   If IniRead($filename,"CustPos","layer12","") = 3 Then MoveEm("12",IniRead($filename,"CustPos","xPos12",""),IniRead($filename,"CustPos","yPos12",""),IniRead($filename,"CustPos","width12",""),IniRead($filename,"CustPos","height12",""))
   If IniRead($filename,"CustPos","layer13","") = 3 Then MoveEm("13",IniRead($filename,"CustPos","xPos13",""),IniRead($filename,"CustPos","yPos13",""),IniRead($filename,"CustPos","width13",""),IniRead($filename,"CustPos","height13",""))
   If IniRead($filename,"CustPos","layer14","") = 3 Then MoveEm("14",IniRead($filename,"CustPos","xPos14",""),IniRead($filename,"CustPos","yPos14",""),IniRead($filename,"CustPos","width14",""),IniRead($filename,"CustPos","height14",""))
   If IniRead($filename,"CustPos","layer11","") = 2 Then MoveEm("11",IniRead($filename,"CustPos","xPos11",""),IniRead($filename,"CustPos","yPos11",""),IniRead($filename,"CustPos","width11",""),IniRead($filename,"CustPos","height11",""))
   If IniRead($filename,"CustPos","layer12","") = 2 Then MoveEm("12",IniRead($filename,"CustPos","xPos12",""),IniRead($filename,"CustPos","yPos12",""),IniRead($filename,"CustPos","width12",""),IniRead($filename,"CustPos","height12",""))
   If IniRead($filename,"CustPos","layer13","") = 2 Then MoveEm("13",IniRead($filename,"CustPos","xPos13",""),IniRead($filename,"CustPos","yPos13",""),IniRead($filename,"CustPos","width13",""),IniRead($filename,"CustPos","height13",""))
   If IniRead($filename,"CustPos","layer14","") = 2 Then MoveEm("14",IniRead($filename,"CustPos","xPos14",""),IniRead($filename,"CustPos","yPos14",""),IniRead($filename,"CustPos","width14",""),IniRead($filename,"CustPos","height14",""))
   If IniRead($filename,"CustPos","layer11","") = 1 Then MoveEm("11",IniRead($filename,"CustPos","xPos11",""),IniRead($filename,"CustPos","yPos11",""),IniRead($filename,"CustPos","width11",""),IniRead($filename,"CustPos","height11",""))
   If IniRead($filename,"CustPos","layer12","") = 1 Then MoveEm("12",IniRead($filename,"CustPos","xPos12",""),IniRead($filename,"CustPos","yPos12",""),IniRead($filename,"CustPos","width12",""),IniRead($filename,"CustPos","height12",""))
   If IniRead($filename,"CustPos","layer13","") = 1 Then MoveEm("13",IniRead($filename,"CustPos","xPos13",""),IniRead($filename,"CustPos","yPos13",""),IniRead($filename,"CustPos","width13",""),IniRead($filename,"CustPos","height13",""))
   If IniRead($filename,"CustPos","layer14","") = 1 Then MoveEm("14",IniRead($filename,"CustPos","xPos14",""),IniRead($filename,"CustPos","yPos14",""),IniRead($filename,"CustPos","width14",""),IniRead($filename,"CustPos","height14",""))
   GUICtrlSetData($txtPrd11x,IniRead($filename,"CustPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"CustPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"CustPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"CustPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"CustPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"CustPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"CustPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"CustPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"CustPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"CustPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"CustPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"CustPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"CustPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"CustPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"CustPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"CustPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"CustPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"CustPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"CustPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"CustPos","layer14",""))
  Case $msg = $btnHorizReset
   GUICtrlSetData($txtPrd11x,IniRead($filename,"ORIGHorizPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"ORIGHorizPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"ORIGHorizPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"ORIGHorizPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"ORIGHorizPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"ORIGHorizPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"ORIGHorizPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"ORIGHorizPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"ORIGHorizPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"ORIGHorizPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"ORIGHorizPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"ORIGHorizPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"ORIGHorizPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"ORIGHorizPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"ORIGHorizPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"ORIGHorizPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"ORIGHorizPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"ORIGHorizPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"ORIGHorizPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"ORIGHorizPos","layer14",""))
   IniWrite($filename,"HorizPos","xPos11",GUICtrlRead($txtPrd11x))
   IniWrite($filename,"HorizPos","yPos11",GUICtrlRead($txtPrd11y))
   IniWrite($filename,"HorizPos","width11",GUICtrlRead($txtPrd11width))
   IniWrite($filename,"HorizPos","height11",GUICtrlRead($txtPrd11height))
   IniWrite($filename,"HorizPos","layer11",GUICtrlRead($txtPrd11layer))
   IniWrite($filename,"HorizPos","xPos12",GUICtrlRead($txtPrd12x))
   IniWrite($filename,"HorizPos","yPos12",GUICtrlRead($txtPrd12y))
   IniWrite($filename,"HorizPos","width12",GUICtrlRead($txtPrd12width))
   IniWrite($filename,"HorizPos","height12",GUICtrlRead($txtPrd12height))
   IniWrite($filename,"HorizPos","layer12",GUICtrlRead($txtPrd12layer))
   IniWrite($filename,"HorizPos","xPos13",GUICtrlRead($txtPrd13x))
   IniWrite($filename,"HorizPos","yPos13",GUICtrlRead($txtPrd13y))
   IniWrite($filename,"HorizPos","width13",GUICtrlRead($txtPrd13width))
   IniWrite($filename,"HorizPos","height13",GUICtrlRead($txtPrd13height))
   IniWrite($filename,"HorizPos","layer13",GUICtrlRead($txtPrd13layer))
   IniWrite($filename,"HorizPos","xPos14",GUICtrlRead($txtPrd14x))
   IniWrite($filename,"HorizPos","yPos14",GUICtrlRead($txtPrd14y))
   IniWrite($filename,"HorizPos","width14",GUICtrlRead($txtPrd14width))
   IniWrite($filename,"HorizPos","height14",GUICtrlRead($txtPrd14height))
   IniWrite($filename,"HorizPos","layer14",GUICtrlRead($txtPrd14layer))
   ToolTip("Reset!")
   Sleep(3000)
   ToolTip("")
  Case $msg = $btnVertReset
   GUICtrlSetData($txtPrd11x,IniRead($filename,"ORIGVertPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"ORIGVertPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"ORIGVertPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"ORIGVertPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"ORIGVertPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"ORIGVertPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"ORIGVertPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"ORIGVertPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"ORIGVertPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"ORIGVertPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"ORIGVertPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"ORIGVertPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"ORIGVertPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"ORIGVertPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"ORIGVertPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"ORIGVertPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"ORIGVertPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"ORIGVertPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"ORIGVertPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"ORIGVertPos","layer14",""))
   IniWrite($filename,"VertPos","xPos11",GUICtrlRead($txtPrd11x))
   IniWrite($filename,"VertPos","yPos11",GUICtrlRead($txtPrd11y))
   IniWrite($filename,"VertPos","width11",GUICtrlRead($txtPrd11width))
   IniWrite($filename,"VertPos","height11",GUICtrlRead($txtPrd11height))
   IniWrite($filename,"VertPos","layer11",GUICtrlRead($txtPrd11layer))
   IniWrite($filename,"VertPos","xPos12",GUICtrlRead($txtPrd12x))
   IniWrite($filename,"VertPos","yPos12",GUICtrlRead($txtPrd12y))
   IniWrite($filename,"VertPos","width12",GUICtrlRead($txtPrd12width))
   IniWrite($filename,"VertPos","height12",GUICtrlRead($txtPrd12height))
   IniWrite($filename,"VertPos","layer12",GUICtrlRead($txtPrd12layer))
   IniWrite($filename,"VertPos","xPos13",GUICtrlRead($txtPrd13x))
   IniWrite($filename,"VertPos","yPos13",GUICtrlRead($txtPrd13y))
   IniWrite($filename,"VertPos","width13",GUICtrlRead($txtPrd13width))
   IniWrite($filename,"VertPos","height13",GUICtrlRead($txtPrd13height))
   IniWrite($filename,"VertPos","layer13",GUICtrlRead($txtPrd13layer))
   IniWrite($filename,"VertPos","xPos14",GUICtrlRead($txtPrd14x))
   IniWrite($filename,"VertPos","yPos14",GUICtrlRead($txtPrd14y))
   IniWrite($filename,"VertPos","width14",GUICtrlRead($txtPrd14width))
   IniWrite($filename,"VertPos","height14",GUICtrlRead($txtPrd14height))
   IniWrite($filename,"VertPos","layer14",GUICtrlRead($txtPrd14layer))
   ToolTip("Reset!")
   Sleep(3000)
   ToolTip("")
  Case $msg = $btnCustReset
   GUICtrlSetData($txtPrd11x,IniRead($filename,"CustPos","xPos11",""))
   GUICtrlSetData($txtPrd11y,IniRead($filename,"CustPos","yPos11",""))
   GUICtrlSetData($txtPrd11width,IniRead($filename,"CustPos","width11",""))
   GUICtrlSetData($txtPrd11height,IniRead($filename,"CustPos","height11",""))
   GUICtrlSetData($txtPrd11layer,IniRead($filename,"CustPos","layer11",""))
   GUICtrlSetData($txtPrd12x,IniRead($filename,"CustPos","xPos12",""))
   GUICtrlSetData($txtPrd12y,IniRead($filename,"CustPos","yPos12",""))
   GUICtrlSetData($txtPrd12width,IniRead($filename,"CustPos","width12",""))
   GUICtrlSetData($txtPrd12height,IniRead($filename,"CustPos","height12",""))
   GUICtrlSetData($txtPrd12layer,IniRead($filename,"CustPos","layer12",""))
   GUICtrlSetData($txtPrd13x,IniRead($filename,"CustPos","xPos13",""))
   GUICtrlSetData($txtPrd13y,IniRead($filename,"CustPos","yPos13",""))
   GUICtrlSetData($txtPrd13width,IniRead($filename,"CustPos","width13",""))
   GUICtrlSetData($txtPrd13height,IniRead($filename,"CustPos","height13",""))
   GUICtrlSetData($txtPrd13layer,IniRead($filename,"CustPos","layer13",""))
   GUICtrlSetData($txtPrd14x,IniRead($filename,"CustPos","xPos14",""))
   GUICtrlSetData($txtPrd14y,IniRead($filename,"CustPos","yPos14",""))
   GUICtrlSetData($txtPrd14width,IniRead($filename,"CustPos","width14",""))
   GUICtrlSetData($txtPrd14height,IniRead($filename,"CustPos","height14",""))
   GUICtrlSetData($txtPrd14layer,IniRead($filename,"CustPos","layer14",""))
   ToolTip("Reset!")
   Sleep(3000)
   ToolTip("")
  Case $msg = $btnPrd11values
   $size = WinGetPos("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD11")
   GUICtrlSetData($txtPrd11x,$size[0])
   GUICtrlSetData($txtPrd11y,$size[1])
   GUICtrlSetData($txtPrd11width,$size[2])
   GUICtrlSetData($txtPrd11height,$size[3])
   GUICtrlSetData($txtPrd11layer,"")
  Case $msg = $btnPrd12values
   $size = WinGetPos("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD12")
   GUICtrlSetData($txtPrd12x,$size[0])
   GUICtrlSetData($txtPrd12y,$size[1])
   GUICtrlSetData($txtPrd12width,$size[2])
   GUICtrlSetData($txtPrd12height,$size[3])
   GUICtrlSetData($txtPrd12layer,"")
  Case $msg = $btnPrd13values
   $size = WinGetPos("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD13")
   GUICtrlSetData($txtPrd13x,$size[0])
   GUICtrlSetData($txtPrd13y,$size[1])
   GUICtrlSetData($txtPrd13width,$size[2])
   GUICtrlSetData($txtPrd13height,$size[3])
   GUICtrlSetData($txtPrd13layer,"")
  Case $msg = $btnPrd14values
   $size = WinGetPos("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD14")
   GUICtrlSetData($txtPrd14x,$size[0])
   GUICtrlSetData($txtPrd14y,$size[1])
   GUICtrlSetData($txtPrd14width,$size[2])
   GUICtrlSetData($txtPrd14height,$size[3])
   GUICtrlSetData($txtPrd14layer,"")
;  Case $msg = $btnSaveVert
  Case $msg = $btn1 ; i changed the button name out of desperation
   MsgBox(0,"prd11x",GUICtrlRead($txtPrd11x)) ; i added these to see what if any data was being saved
   MsgBox(0,"yPos11",GUICtrlRead($txtPrd11y)) ; i added these to see what if any data was being saved
   MsgBox(0,"width11",GUICtrlRead($txtPrd11width)) ; i added these to see what if any data was being saved
   MsgBox(0,"height11",GUICtrlRead($txtPrd11height)) ; i added these to see what if any data was being saved
   IniWrite($filename,"VertPos","xPos11",GUICtrlRead($txtPrd11x))
   IniWrite($filename,"VertPos","yPos11",GUICtrlRead($txtPrd11y))
   IniWrite($filename,"VertPos","width11",GUICtrlRead($txtPrd11width))
   IniWrite($filename,"VertPos","height11",GUICtrlRead($txtPrd11height))
   IniWrite($filename,"VertPos","layer11",GUICtrlRead($txtPrd11layer))
   IniWrite($filename,"VertPos","xPos12",GUICtrlRead($txtPrd12x))
   IniWrite($filename,"VertPos","yPos12",GUICtrlRead($txtPrd12y))
   IniWrite($filename,"VertPos","width12",GUICtrlRead($txtPrd12width))
   IniWrite($filename,"VertPos","height12",GUICtrlRead($txtPrd12height))
   IniWrite($filename,"VertPos","layer12",GUICtrlRead($txtPrd12layer))
   IniWrite($filename,"VertPos","xPos13",GUICtrlRead($txtPrd13x))
   IniWrite($filename,"VertPos","yPos13",GUICtrlRead($txtPrd13y))
   IniWrite($filename,"VertPos","width13",GUICtrlRead($txtPrd13width))
   IniWrite($filename,"VertPos","height13",GUICtrlRead($txtPrd13height))
   IniWrite($filename,"VertPos","layer13",GUICtrlRead($txtPrd13layer))
   IniWrite($filename,"VertPos","xPos14",GUICtrlRead($txtPrd14x))
   IniWrite($filename,"VertPos","yPos14",GUICtrlRead($txtPrd14y))
   IniWrite($filename,"VertPos","width14",GUICtrlRead($txtPrd14width))
   IniWrite($filename,"VertPos","height14",GUICtrlRead($txtPrd14height))
   IniWrite($filename,"VertPos","layer14",GUICtrlRead($txtPrd14layer))
  
;  Case $msg = $btnSaveHoriz
  Case $msg = $btn2 ; i changed the button name out of desperation
   MsgBox(0,"prd11x",GUICtrlRead($txtPrd11x)) ; i added these to see what if any data was being saved
   MsgBox(0,"yPos11",GUICtrlRead($txtPrd11y)) ; i added these to see what if any data was being saved
   MsgBox(0,"width11",GUICtrlRead($txtPrd11width)) ; i added these to see what if any data was being saved
   MsgBox(0,"height11",GUICtrlRead($txtPrd11height)) ; i added these to see what if any data was being saved
   IniWrite($filename,"HorizPos","xPos11",GUICtrlRead($txtPrd11x))
   IniWrite($filename,"HorizPos","yPos11",GUICtrlRead($txtPrd11y))
   IniWrite($filename,"HorizPos","width11",GUICtrlRead($txtPrd11width))
   IniWrite($filename,"HorizPos","height11",GUICtrlRead($txtPrd11height))
   IniWrite($filename,"HorizPos","layer11",GUICtrlRead($txtPrd11layer))
   IniWrite($filename,"HorizPos","xPos12",GUICtrlRead($txtPrd12x))
   IniWrite($filename,"HorizPos","yPos12",GUICtrlRead($txtPrd12y))
   IniWrite($filename,"HorizPos","width12",GUICtrlRead($txtPrd12width))
   IniWrite($filename,"HorizPos","height12",GUICtrlRead($txtPrd12height))
   IniWrite($filename,"HorizPos","layer12",GUICtrlRead($txtPrd12layer))
   IniWrite($filename,"HorizPos","xPos13",GUICtrlRead($txtPrd13x))
   IniWrite($filename,"HorizPos","yPos13",GUICtrlRead($txtPrd13y))
   IniWrite($filename,"HorizPos","width13",GUICtrlRead($txtPrd13width))
   IniWrite($filename,"HorizPos","height13",GUICtrlRead($txtPrd13height))
   IniWrite($filename,"HorizPos","layer13",GUICtrlRead($txtPrd13layer))
   IniWrite($filename,"HorizPos","xPos14",GUICtrlRead($txtPrd14x))
   IniWrite($filename,"HorizPos","yPos14",GUICtrlRead($txtPrd14y))
   IniWrite($filename,"HorizPos","width14",GUICtrlRead($txtPrd14width))
   IniWrite($filename,"HorizPos","height14",GUICtrlRead($txtPrd14height))
   IniWrite($filename,"HorizPos","layer14",GUICtrlRead($txtPrd14layer))
  Case $msg = $btnSaveCust
   MsgBox(0,"prd11x",GUICtrlRead($txtPrd11x)) ; i added these to see what if any data was being saved
   MsgBox(0,"yPos11",GUICtrlRead($txtPrd11y)) ; i added these to see what if any data was being saved
   MsgBox(0,"width11",GUICtrlRead($txtPrd11width)) ; i added these to see what if any data was being saved
   MsgBox(0,"height11",GUICtrlRead($txtPrd11height)) ; i added these to see what if any data was being saved
   IniWrite($filename,"CustPos","xPos11",GUICtrlRead($txtPrd11x))
   IniWrite($filename,"CustPos","yPos11",GUICtrlRead($txtPrd11y))
   IniWrite($filename,"CustPos","width11",GUICtrlRead($txtPrd11width))
   IniWrite($filename,"CustPos","height11",GUICtrlRead($txtPrd11height))
   IniWrite($filename,"CustPos","layer11",GUICtrlRead($txtPrd11layer))
   IniWrite($filename,"CustPos","xPos12",GUICtrlRead($txtPrd12x))
   IniWrite($filename,"CustPos","yPos12",GUICtrlRead($txtPrd12y))
   IniWrite($filename,"CustPos","width12",GUICtrlRead($txtPrd12width))
   IniWrite($filename,"CustPos","height12",GUICtrlRead($txtPrd12height))
   IniWrite($filename,"CustPos","layer12",GUICtrlRead($txtPrd12layer))
   IniWrite($filename,"CustPos","xPos13",GUICtrlRead($txtPrd13x))
   IniWrite($filename,"CustPos","yPos13",GUICtrlRead($txtPrd13y))
   IniWrite($filename,"CustPos","width13",GUICtrlRead($txtPrd13width))
   IniWrite($filename,"CustPos","height13",GUICtrlRead($txtPrd13height))
   IniWrite($filename,"CustPos","layer13",GUICtrlRead($txtPrd13layer))
   IniWrite($filename,"CustPos","xPos14",GUICtrlRead($txtPrd14x))
   IniWrite($filename,"CustPos","yPos14",GUICtrlRead($txtPrd14y))
   IniWrite($filename,"CustPos","width14",GUICtrlRead($txtPrd14width))
   IniWrite($filename,"CustPos","height14",GUICtrlRead($txtPrd14height))
   IniWrite($filename,"CustPos","layer14",GUICtrlRead($txtPrd14layer))
  Case $msg = $btnHelp
   MsgBox(0,"nothing","no help for you (yet)",10)
EndSelect
Wend

Func MoveEm($string,$x,$y,$width,$height)
WinActivate("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD" & $string)
WinMove("O","https://..../waitDetails?event=doLoad&target=EBSPRD1_EBSPRD" & $string,$x,$y,$width,$height)
EndFunc

=====end OP

wow, I am so ashamed

; p

I apologize for the incomplete URLs, they are specific to my network and as I was about to post this I thought they might be priveleged information which could get me in a lot of trouble at work.

BONUS QUESTION: you may have noticed in my code I say "top level cannot be obtained" because I am trying to get 4 windows to overlap in a particular order... is there a way to determine with AutoIt which window is on top, which is 2nd, 3rd, 4th?

I could not find a way to do this -I don't NEED a solution, I am just curious. ; )

Thank you for your time.

-Michael

Share this post


Link to post
Share on other sites



Regarding your bonus question, you might look into WinList. It should be listed in order of top-most first.

Check out this post by ProgAndy, it might be helpful in this area:

Also, looking through your code I saw you did this a couple time:

If FileExists($filename) Then
    Sleep(500)
Else
    MsgBox(4096,"", $filename & " does not exist. Creating now...")
DirCreate("C:mjrtHlprOEMgraph")
EndIf

I may be wrong or missing something but wouldn't this work more efficiently:

If Not FileExists($filename) Then
    MsgBox(4096,"", $filename & " does not exist. Creating now...")
    DirCreate($filename)
EndIf

Hope this helps.

Share this post


Link to post
Share on other sites

Thank you LordBoling, I will have to look into that.

Yes, my code would be better with a Not in there. ; )

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