Sign in to follow this  
Followers 0
themush1326

AutoIt Icon Flashes Rapidly

22 posts in this topic

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

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?

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

*the script

Share this post


Link to post
Share on other sites

*the script

No Iam executing it form the C:.

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

Share this post


Link to post
Share on other sites

wierd....what about a #NoTrayIcon?

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


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

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

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....

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 ? )


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

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:


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

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

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

Look at the third parameter for RunWait...

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

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

thanks

Can you explain why the "" is needed before @sw_hide.

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  
Followers 0