Jump to content
Sign in to follow this  
themush1326

AutoIt Icon Flashes Rapidly

Recommended Posts

Opt("RunErrorsFatal", 1) ; 1 means errors will popup. Set to zero for prod.

Opt("TrayIconHide",1)

RunWait(@comspec & ' /c echo y|chkdsk /f ')

The only way to make it stop is right click and exit several time.

Any help would be appreciated

Share this post


Link to post
Share on other sites

by 'it stop' you mean the script or the chkdsk? try using run instead of run wait if you want the script to close after it launches the chkdsk

By stop it mean the only way to stop the Autoit icon from flashing.

The check should kick off after a reboot.

I've never seen the icon do this.

it seems to be tied to this script.

Share this post


Link to post
Share on other sites

runs fine for me, the autoit icon is hidden as expected....is the just like your startup folder?

What do you mean by "is the just like your startup folder"

Share this post


Link to post
Share on other sites

No Iam executing it form the C:.

Seems to be tied to the Dell Latitude 600, tried it on a few

What did you name the script ?

Opt("TrayIconHide",1) : The icon will still initially appear ~750 milliseconds.

#NoTrayIcon wont show it at all

Share this post


Link to post
Share on other sites

What did you name the script ?

Opt("TrayIconHide",1) : The icon will still initially appear ~750 milliseconds.

#NoTrayIcon wont show it at all

CheckDisk.exe

Still flashed even with #NoTrayIcon

Edited by themush1326

Share this post


Link to post
Share on other sites

are you sure its not the window you mean thats fliashing? #NoTrayIcon disables the autoit tray icon entirely....

No I can see the AutoIt icon in the tray, I can right click it and see script paused or exit

Share this post


Link to post
Share on other sites

No I can see the AutoIt icon in the tray, I can right click it and see script paused or exit

not possible when you have #NoTrayIcon in the script.

Do you have an chkdsk.exe in the script directory ? (old script or something ? )

Share this post


Link to post
Share on other sites

not possible when you have #NoTrayIcon in the script.

Do you have an chkdsk.exe in the script directory ? (old script or something ? )

That was it, I had a script name chkdsk.exe in the same directory

thanks!!!!!!!!!!!

Share this post


Link to post
Share on other sites

That was it, I had a script name chkdsk.exe in the same directory

thanks!!!!!!!!!!!

sometimes its right under your nose but you are too close to see ... :whistle:

Share this post


Link to post
Share on other sites

Is there a way to hide this window while chkdsk.exe runs?

This is the line I'm using to execute

RunWait(@comspec & ' /c chkdsk >c:\errors.txt')

thanks

themush

Share this post


Link to post
Share on other sites

Look at the third parameter for RunWait...

RunWait(@comspec & ' /c chkdsk >c:\errors.txt' & @SW_HIDE)

Window Doesnt hide

RunWait(@comspec & ' /c chkdsk >c:\errors.txt', @SW_HIDE)

Error unable to execute external program

thanks

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  

×
×
  • Create New...