RickOShay Posted March 27, 2006 Share Posted March 27, 2006 I finally finshed my first script and it works great on my machine and three others but on 15 other machines the GUI will not launch. All machines are up to date and running Xp service pack two with all patches. I don't call for any system files in the script so I am wondering if there are system files that autoit uses that these 15 machines might be missing. Anyone with an idea? Thanks Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 27, 2006 Moderators Share Posted March 27, 2006 I finally finshed my first script and it works great on my machine and three others but on 15 other machines the GUI will not launch. All machines are up to date and running Xp service pack two with all patches.I don't call for any system files in the script so I am wondering if there are system files that autoit uses that these 15 machines might be missing.Anyone with an idea?ThanksWant us to mind read? Where's the script so we don't chase our tales... My first 2 guesses would be 1. GUISetState() and or No Loop. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
RickOShay Posted March 27, 2006 Author Share Posted March 27, 2006 Want us to mind read? Where's the script so we don't chase our tales... My first 2 guesses would be 1. GUISetState() and or No Loop.Sorry about that I thought I attached it. Its not pretty but it is my first attempt to ever program anything.NSF.au3 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 27, 2006 Moderators Share Posted March 27, 2006 I made comments with some things I noticed... couldn't follow the code to well... #endregion --- Code End --- ;~ #################################################################################################### ########################## #region --- Code Start --- ;~ verify mvs is open and word are open and will open if not WinWait("MVS - RUMBA Mainframe Display"); I DON'T SEE WHERE YOU EVER CALL THIS WINDOW, IT COULD BE HANING UP HERE FOREVER If Not WinActive("MVS - RUMBA Mainframe Display") Then WinActivate("MVS - RUMBA Mainframe Display") WinWaitActive("MVS - RUMBA Mainframe Display") #endregion --- Code End --- ;~ #################################################################################################### ########################## #region --- Code Start --- ;~ String strip data from mvs FileWriteLine('file3.ini', ($Read_12)) Sleep(25) GUIDelete();<<<<<<<<<<< ; I THINK I WOULD MAKE MY GUI LIKE $MAINGUI = GUICREATE() ; AND INSTEAD OF GUIDELETE() USE GUISETSTATE(@SW_HIDE, $MAINGUI) $balance = Number($Dollar + 20.00) $FormattedTotal = StringFormat("%.2f", $balance) GUISetState();<<<<<<< setting the state of a GUI that's already deleted ; IF THIS WAS INTENDED AND YOU FOLLOW MY EXAMPLE ABOVE THEN YOU COULD ; USE GUISETSTATE(@SW_SHOW, $MAINGUI) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
RickOShay Posted March 28, 2006 Author Share Posted March 28, 2006 (edited) I made comments with some things I noticed... couldn't follow the code to well... #endregion --- Code End --- ;~ #################################################################################################### ########################## #region --- Code Start --- ;~ verify mvs is open and word are open and will open if not WinWait("MVS - RUMBA Mainframe Display"); I DON'T SEE WHERE YOU EVER CALL THIS WINDOW, IT COULD BE HANING UP HERE FOREVER If Not WinActive("MVS - RUMBA Mainframe Display") Then WinActivate("MVS - RUMBA Mainframe Display") WinWaitActive("MVS - RUMBA Mainframe Display") #endregion --- Code End --- ;~ #################################################################################################### ########################## #region --- Code Start --- ;~ String strip data from mvs FileWriteLine('file3.ini', ($Read_12)) Sleep(25) GUIDelete();<<<<<<<<<<< ; I THINK I WOULD MAKE MY GUI LIKE $MAINGUI = GUICREATE() ; AND INSTEAD OF GUIDELETE() USE GUISETSTATE(@SW_HIDE, $MAINGUI) $balance = Number($Dollar + 20.00) $FormattedTotal = StringFormat("%.2f", $balance) GUISetState();<<<<<<< setting the state of a GUI that's already deleted ; IF THIS WAS INTENDED AND YOU FOLLOW MY EXAMPLE ABOVE THEN YOU COULD ; USE GUISETSTATE(@SW_SHOW, $MAINGUI) Thanks SmOke_N for taking the time to look. I will do as you suggested. To bad there is not a autoit 3 for dummies book out there for those of us learning the langauge. Its all Latin to me. Again thanks. Edited March 28, 2006 by RickOShay Link to comment Share on other sites More sharing options...
Stumpii Posted March 28, 2006 Share Posted March 28, 2006 Take a look at this for a 1-2-3 on autoit: http://www.autoitscript.com/forum/index.php?showtopic=21048 Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
RickOShay Posted March 28, 2006 Author Share Posted March 28, 2006 Thanks stumpii. I will study it.... Houston Texas. Awesome City. Spent many a day there at Johnson Space Flight Center working on the Space Shuttle Program. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now