Jump to content
Sign in to follow this  

Delay for reaining focus on a program

Recommended Posts


I used Autoit to call a program that takes a picture. I then copy and the file to another location and exit the script. Then I try to use a program that I have on my tray, and it take an upwards of 6 seconds to get focus on the program in the tray. Anyone have any sugestions? Thank you

; Delete any left over images in the C:\Images folder



; FileDelete("C:\users\armslaptop3\documents\digital microscope\picture\*.bmp")

; Run Dinolite

Run("C:\Program Files\Dino\DinoCapture.exe")

; Wait for the ZoomBrowser to become active


; Take the picture


; Now wait for RemoteCaptureTask to close before continuing



FileCopy("c:\images\*.bmp", "c:\images\1.bmp")


; ----------------------------------------------------------------------------

; <AUT2EXE INCLUDE-END: C:\Documents and Settings\marc\Desktop\GetImageCommand.au3>

; ----------------------------------------------------------------------------

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  


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.