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

    • DynamicRookie
      By DynamicRookie
      Hey There!
       
      So, what i need to do is an app that can read text in a image (I.e. a png that has text saying "This is a png" and return the text to a variable)
      I'm pretty much a newbie on AutoIt, my purpose is doing that but i don't know any function that can

      Any help is much appreciated
    • santoshM
      By santoshM
      How can i exit from a procedure in auto
      Func test() if x=o then     return endif endFunc  
    • Valnurat
      By Valnurat
      Hi
      Small question.
      I trying to find all index in an array with value higher than 7.
      How can that be possible?
    • TrashBoat
      By TrashBoat
      Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv
      I'm having a hard time figuring it out :S
    • msd1994
      By msd1994
      I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.)
      In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well.
      Does anybody have some idea of a way I could get this script working again?
       
      edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred.
       
      Thanks!
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.