Jump to content
Sign in to follow this  

strange lag from compiled script

Recommended Posts

The only thing I've used AutoIt for is login scripts for VNC connections that use MS logon authentication. It's always worked great, but here today I'm getting this strange ~10 second lag before the script executes on any new scripts I compile. Any scripts I've created in the past still work fine. Here is an example of the script I use:

Run ("C:\Program Files\UltraVNC\vncviewer.exe")

Sleep (1000) ;one second

Send ("pcid{ENTER}")

Sleep (1000) ;one second

Send ("username{TAB}")

Send ("password{ENTER}")

If I run it from the au3 file there is no lag and runs fine. Once I compile it to an exe file the lag happens then the script runs. I've made about 15 of these files in the past, and I've used the above template for all of them. Any one have any ideas as to why this would start happening today?

Share this post

Link to post
Share on other sites


Any one have any ideas as to why this would start happening today?

New or updated anti-virus scanning the executable? :mellow:


Edit: Welcome to the AutoIt forum, by the way! :)

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

I can't recall of any recent changes. I work in the IT dept for a hospital, so I'm usually aware of any of the major changes that happen. I'm assuming something is quirky on my PC, but I can't put my finger on it. I haven't noticed any other strange behavior. I guess I need to install AutoIt on a test PC and see what I come up with.

Share this post

Link to post
Share on other sites

I'm now leaning towards some type of Windows 7 issue. I installed AutoIt on another Windows 7 machine and I got the same results. I then installed it on a XP machine and it worked fine. Now that I'm thinking about it I've been seeing some weird permission issues on my Windows 7 box. I bet it's the UAC messing with me. I've been denied saving certain zip files to my own desktop, even though my UAC is as low as it can go, and I'm a local admin on the machine. Yet if I manually elevate my permissions (right click, run as administrator on IE8 for example) I then can save to the desktop just fine. It's hit and miss when I see the problem though. I've got to think about this one some more to know what the real problem is (weird group policy stuff maybe?) but for now I'll just use my XP box to make any new scripts. Thanks for the input guys.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...