Jump to content
lattey

autoit not stable at windows nt

Recommended Posts

lattey

I have a system that need to operates at Windows NT environment. So, i am using old version autoit - ver 3.2.12.1, since only old version that compatible with windows NT. But i face some error which i couldn't figure out why it is happen. The error only happen after running the system few times. i suspected it is may due to i am using old version autoit but i am not
sure about it. 

Errors that I faced:

  •  Send command send wrong keys - after few times, autoit will send wrong keys. The autoit will send Start keys.
WinActivate("Program Selection")
           send ("{UP}")
        
           ;loop start to delete test prog
           local $j = 0
           Do
               send ("{DOWN}")
                Sleep (200)
                ControlClick("Program Selection", "", "[CLASS:Button; INSTANCE:3]")
                Sleep (500)
            $j = $j + 1
            until $j = 10
  • The button not appear - after running few times, the button suddenly not appear
SplashTextOn("", "successfully Load. ", 300, 120, (@DesktopWidth - 330) / 2, (@DesktopHeight - 339) / 2, 0, "", 16)
    Sleep(10000)
    SplashOff()

    GUISetFont(7, 400, "Tahoma") ; will display underlined characters
        $CmdPrint = GUICtrlCreateButton("PRINT",6,420,295,30,$BS_MULTILINE)
  • there also few error that happens after few times running which doesnt not capture.

is this maybe because i am using the old version of autoit? How can i proved all this error happen may not because of my code?

Share this post


Link to post
Share on other sites
VIP

Autoit no longer support older operating systems and older autoit versions!
Can you plan on upgrading?


Regards,
 

Share this post


Link to post
Share on other sites
lattey

i see.. so all this error happened may due to im using older version? i cant upgrade to new version of autoit since older version of autoit is compatible with wndows nt.
do you have any suggestions what can i do? 

Share this post


Link to post
Share on other sites
VIP

Update your OS to Windows XP, Windows 7 or Windows 10 :) 


Regards,
 

Share this post


Link to post
Share on other sites
Jos

Show a script that has the issues that can be ran so we can see what you are doing and possibly make suggestions.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
lattey

hi jos,

please see my post, that one of the code that faced issues after ran few times.

 

the code suppose to insert text to text box of an application but after few times running, it does mot auto insert text in the textbox.

Local $OperatorMenu = " Entry (" & $Test & ")" 
    
    ControlSetText($OperatorMenu, "", "TextBox21", $fer_No)
    sleep (400)
    ControlSetText($OperatorMenu, "", "TextBox20", $Lt_No)
    sleep (400)
    ControlSetText($OperatorMenu, "", "TextBox18", $temp)
    sleep (400)

 

 

Share this post


Link to post
Share on other sites
Jos

It could very well be that the Up or Down keys you send is getting the key "stuck", is that also in your case?

Jos

 


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
lattey

hi Jos,

i think its not likely the key is stuck because instead send up keys, it send start keys and thats make me confused why it is send start key.

 

hi Junkew,

 

ive already tried to  used latest version of autoit but when running the autoit application, the error prompt " this is not a valid windows NT application".

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

  • Similar Content

    • JuanFelipe
      By JuanFelipe
      Hello friends, I have a simple question, can I have a variable that is not reset, even if my program is closed?
      That is, I want to make a program that can only be opened once, have a variable $ ini = 0, when it is opened for the first and only time it becomes $ ini = 1, so that it can not use the program a second time, as if it was a test software.
      I do not want the variable to depend on a reading of an external file that is easily manipulated. Thank you.
    • nooneclose
      By nooneclose
      My program has to first search for names in Column D that do not match up with column C. I got that search to work using arrays. It was slow and I could not figure out how to delete them so I just manually put coded the names that do not belong. I found their cell location but I do not know how to store that location and delete it.
      This is what I have so far.
      Local $NameToDelete1[6]  = _Excel_RangeFind($OpenWorkbook, "Smith, Bill") _ArrayDisplay($NameToDelete1, "Excel UDF: _Excel_RangeFind Example 1", "", 0, "|", "Sheet|Name|Cell|Value|Formula|Comment") _Excel_RangeDelete($OpenWorkbook.ActiveSheet, $NameToDelete1[2], $xlShiftUp)  
      Please help, I wanted to have this program done yesterday but I did not see this problem until yesterday. 
    • TrashBoat
      By TrashBoat
      So Im trying to make a simple 2d game and make some sort of collision detection so why not to make a 2 dimensional array but i have no clue how  to write it in multiple lines
      Global $map[5,5] = [0,0,0,0,0 _ [0,0,0,0,0 _ [0,0,0,0,0 _ [0,0,0,0,0 _ [0,0,0,0,0] something like this but it doesn't work
    • Zein
      By Zein
      #include "..\Include\Array.au3" #include "..\Include\File.au3" #include "..\Include\AutoItConstants.au3" Local $aRetArray Local $sFilePath = "n.csv" _FileReadToArray($sFilePath, $aRetArray, ",") ; _FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",") _ArrayDisplay($aRetArray, "Original", Default, 8) The above code shows two versions of _FileReadToArray and both don't work as expected.
      The first one doesn't use the comma as a delimiter. (so I get a single column array)  I tried adding "Default" between $aRetArray and "," then it told me it had an incorrect number of parameters. 

      I looked again at the documentation:
       
      #include <File.au3> _FileReadToArray ( $sFilePath, ByRef $vReturn [, $iFlags = $FRTA_COUNT [, $sDelimiter = ""]] )
      And I with or without the flags params I should be getting a 2D array due to my file being a csv. 
      I then tried a regular flag, $FRTA_COUNT, and it tells me that I'm using a variable $FRTA_COUNT while it's not declared. Tried putting in 1 instead and it told me again, incorrect number of params. 

       
    • nooneclose
      By nooneclose
      I need to perform a subtotal in excel and I would like to automate this process using Autoit if possible like always any and all help will be greatly appreciated. 
      I can not find a good example but the two from Microsoft. Here is one of the two from msdn.microsoft.com/en-us/vba/excel-vba/articles/range-subtotal-method-excel
      I do not really understand how to translate this into AutoIt, but I gave it a try and here is what I have.
      $OpenRange      = "A1:E200" $xlSum          = -4157 $Added_Array[2] = [2, 3] $OpenRange.Subtotal("B1", $xlSum, $Added_Array, True, False, True) I just need to perform a subtotal on a range based on a header called department, and then perform a sum on the results.
×