Sign in to follow this  
Followers 0
shogun

Issue with Script & Win 10

1 post in this topic

I have been using the following script with Win XP and Win 7 and all works well.  The script runs CCleaner and displays "bmfig.gif" whilst CCleaner is running.

There is a new addition my household fleet of computers ... it is x64 and Win 10 and this is my first experience with either.

The issue is that "bmgif.gif" only shows for around a second rather than showing for the entire time CCleaner is running.  Any ideas for a fix for this or is it just the way it is with Win 10 and/or x64?

 

Thanks

 

#notrayicon
#include <GUIConstants.au3>
#include <WinAPI.au3>
#include "GIFAnimation.au3"
$width = _WinAPI_GetSystemMetrics(0)
$height = _WinAPI_GetSystemMetrics(1)
$widthi = 300
$heighti = 150
Run("c:\program files\ccleaner\ccleaner64.exe /auto")
$pos=MouseGetPos() 
Global $hGui = GUICreate("Cleaning...", 80, 150, default, default,$DS_MODALFRAME)
Global $hGIF = _GUICtrlCreateGIF("bmgif.gif", "", 15, 10)
GUISetState()
$pos=MouseGetPos() 
MouseClick("left", @DesktopWidth / 2, @DesktopHeight / 2,1,0)
MouseMove($pos[0],$pos[1],0)
ProcessWaitClose ("ccleaner.exe")
Send  ("!{tab}")
exit

 

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