Jump to content

Why would my script run in XP and not 2k server or 2k3 server?


gte
 Share

Recommended Posts

This is the first time I've encountered this?

I'm using an unzip function by trancexx that uses a file from XP (com call I believe), could this be causing it? None of the executable is auto running, it should just launch my gui at first?

The application launches, but only appears in the taskbar, and I can't do anything with it.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=librarylistchanger1.ico
#AutoIt3Wrapper_outfile=Stress_Test-Library_List_11-2-09.exe
#AutoIt3Wrapper_Res_Comment=This application is used for stress tests on the file hold and file release day, as well as updating library lists.
#AutoIt3Wrapper_Res_Description=Stress Test and Library List Update Application
#AutoIt3Wrapper_Res_Fileversion=1.0.0.1
#AutoIt3Wrapper_Res_LegalCopyright=Brad 
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****






#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Include <File.au3> 
#Include <Array.au3>


#Region ### START Koda GUI section ### Form=C:\Documents and Settings\668692\My Documents\Work Stuff\AutoIt\stress test files\stresstest1-groups-properlabels.kxf
$Form1 = GUICreate("Stress Test and Library List Application", 651, 372, 1646, 235)
$Tab1 = GUICtrlCreateTab(0, 1, 649, 369)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("Stress Test Count")
$downloadbaklocation_box = GUICtrlCreateInput("d:\dma\downloadbak", 32, 81, 121, 21)
$zippath_Label = GUICtrlCreateLabel("Path to Zip Files", 32, 57, 80, 17)
$countfiles_button = GUICtrlCreateButton("Count Files in Zip", 48, 121, 91, 21, 0)
    GUICtrlSetOnEvent(-1, "")
$count_progressBar = GUICtrlCreateProgress(30, 163, 126, 21)
$progressbar_label = GUICtrlCreateLabel("(Progress Bar)", 59, 148, 70, 17)
$daysfilesretained_Label = GUICtrlCreateLabel("Amount of days files are retained", 192, 57, 157, 17)
$daysfilesretained_input = GUICtrlCreateInput("", 192, 81, 169, 21)
$totalfilesfound_label = GUICtrlCreateLabel("Total Files Found", 192, 121, 85, 17)
$totalfilesfound_input = GUICtrlCreateInput("", 192, 145, 169, 21)
$averagetransperday_label = GUICtrlCreateLabel("Average transactions per day", 192, 185, 142, 17)
$averagetransperday_input = GUICtrlCreateInput("", 192, 209, 169, 21)
$daysneededfor500_label = GUICtrlCreateLabel("Amount of days needed for 500 transactions", 192, 249, 212, 17)
$daysneededfor500_input = GUICtrlCreateInput("", 192, 273, 169, 21)
$daysneededfor1000_label = GUICtrlCreateLabel("Amount of days needed for 1000 transactions", 192, 313, 218, 17)
$daysneededfor1000_input = GUICtrlCreateInput("", 192, 337, 169, 21)
$Group1 = GUICtrlCreateGroup("", 16, 49, 153, 145)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("", 184, 49, 233, 57)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("", 184, 113, 233, 57)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("", 184, 177, 233, 57)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group5 = GUICtrlCreateGroup("", 184, 241, 233, 57)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("", 184, 305, 233, 57)
GUICtrlCreateGroup("", -99, -99, 1, 1)


$TabSheet2 = GUICtrlCreateTabItem("File Hold Day Tab")
$stopdisableunzipFHD_label = GUICtrlCreateLabel("Stop and Disable Unzip Service", 40, 65, 154, 17)
$stopdisableunzipFHD_button = GUICtrlCreateButton("Stop/Disable Unzip", 40, 97, 125, 21, 0)
$statusunzipFHD_label = GUICtrlCreateLabel("Status of Unzip Service:", 248, 65, 118, 17)
$statusunzipFHD_input = GUICtrlCreateInput("", 400, 65, 121, 21)
$statusnotificationFHD_label = GUICtrlCreateLabel("Status of Notification Service:", 248, 105, 144, 17)
$statusnotificationFHD_input = GUICtrlCreateInput("", 400, 105, 121, 21)
$Group7 = GUICtrlCreateGroup("", 24, 49, 177, 73)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group8 = GUICtrlCreateGroup("", 240, 49, 289, 41)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group9 = GUICtrlCreateGroup("", 240, 93, 289, 37)
GUICtrlCreateGroup("", -99, -99, 1, 1)


$TabSheet3 = GUICtrlCreateTabItem("File Release Day Tab")
$statusunzipFRD_label = GUICtrlCreateLabel("Status of Unzip Service:", 249, 64, 118, 17)
$stopdisablenotificationFRD_label = GUICtrlCreateLabel("Stop and Disable Notification Service", 40, 65, 180, 17)
$stopdisablenotificationFRD_button = GUICtrlCreateButton("Stop/Disable Notification", 41, 96, 133, 21, 0)
$statusunzipFRD_input = GUICtrlCreateInput("", 401, 64, 121, 21)
$statusnotificationFRD_label = GUICtrlCreateLabel("Status of Notification Service:", 249, 96, 144, 17)
$statusnotificationFRD_input = GUICtrlCreateInput("", 401, 96, 121, 21)
$startenableunzipFRD_label = GUICtrlCreateLabel("Start and Enable Unzip Service", 41, 224, 152, 17)
$startenableunzipFRD_button = GUICtrlCreateButton("Start/Enable Unzip", 41, 256, 125, 21, 0)
$createholdfoldersFRD_label = GUICtrlCreateLabel("Create Hold Folders", 248, 225, 97, 17)
$createholdfoldersFRD_button = GUICtrlCreateButton("Create Hold Folders", 248, 257, 107, 21, 0)
$Group10 = GUICtrlCreateGroup("", 24, 49, 209, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group11 = GUICtrlCreateGroup("", 240, 49, 289, 41)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group12 = GUICtrlCreateGroup("", 240, 89, 289, 41)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group13 = GUICtrlCreateGroup("", 24, 209, 209, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group14 = GUICtrlCreateGroup("", 240, 209, 161, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$startenablenotificationFRD_button = GUICtrlCreateButton("Start/Enable Notification", 400, 181, 125, 21, 0)
$startenablenotificationFRD_label1 = GUICtrlCreateLabel("Start and Enable the notification", 388, 141, 155, 21)
$startenablenotificationFRD_label2 = GUICtrlCreateLabel("service when vendor is ready", 388, 156, 155, 21)
$Group18 = GUICtrlCreateGroup("", 376, 131, 185, 80)
GUICtrlCreateGroup("", -99, -99, 1, 1)


$TabSheet4 = GUICtrlCreateTabItem("Update Library List")
$liblistapplyupdate_label = GUICtrlCreateLabel("Library List to Apply/Update", 34, 65, 135, 17)
$liblistapplyupdate_input = GUICtrlCreateInput("", 34, 97, 595, 21)
$applystopdisable_button = GUICtrlCreateButton("Apply/Stop/Disable Notification", 34, 193, 163, 21, 0)
$updatenewliststopdisable_label = GUICtrlCreateLabel("Update with the new library list/stop and disable the notification service ", 34, 161, 341, 17)
$startenablenotification_button = GUICtrlCreateButton("Start/Enable Notification", 279, 193, 131, 21, 0)
$applyrestart_label = GUICtrlCreateLabel("(FOR ATE) Update with the new library list and restart the notification service ", 34, 264, 367, 17)
$restartnotification_button = GUICtrlCreateButton("Restart Notification", 34, 296, 115, 21, 0)
$Group15 = GUICtrlCreateGroup("", 24, 49, 617, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group16 = GUICtrlCreateGroup("", 24, 145, 401, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group17 = GUICtrlCreateGroup("", 24, 249, 401, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Edited by gte
Link to comment
Share on other sites

Great advice.

I cut out all but the variables, and it still did the same thing.

Then I made a basic input box and it still did the same thing.

Then I realized it was starting off screen, and I had to right click and choose move?

Any idea what could cause the exe to start off screen?

Try eliminating method to cut down your big script to some smaller reproducing script.

Also add logging capability - cretae LOG file and write to it every important times/places of your running script.

After running just look at created LOG and you will see where is problem.

Link to comment
Share on other sites

Eh

I'm an idiot, I'll leave this embarrassing post up so that maybe a few people can get a good laugh :)

It was this line

$Form1 = GUICreate("Stress Test and Library List Application", 651, 372, 350, 350)

which was originally

$Form1 = GUICreate("Stress Test and Library List Application", 651, 372, 1646, 235)

and started the app on my dual monitor system in the proper location, but not in the proper location when using remote desktop

Link to comment
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
 Share

  • Recently Browsing   0 members

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