tubadc Posted March 1, 2006 Posted March 1, 2006 Hi, this is my first post and im try to make a this function 1024 x 768 for Splash screen off... but i always have the "Error in function.2", i dont undertand where is the problem..... could u guys pls help this noob(me).... tks a lot. expandcollapse popupFunc _SSoff() local $X, $Y, $Z, $A opt("WinTitleMatchMode", 1) WinSetTitle( "Title v1.0", "", "title- " & $title1) If Not WinExists( "title- " & $title1) Then _ShowError( "must be on.") SplashOff() WinActivate("title- " & $title1, "") $dll = DllOpen("system.dll") ;~ If @DesktopHeight > 768 And @DesktopWidth > 1024 Then WinMove( "title- " & $title1, "", -4, -11, 1032, 755) if @DesktopDepth < 24 then _gethelp() _ShowError( "Your color depth should be 24bit or 32bit" ) endif If @DesktopHeight > 768 And @DesktopWidth > 1024 Then WinMove( "title- " & $title1, "", 0, 0, 1024, 755) $Y = 0 while PixelGetColor( 500, $Y ) <> 0 $Y = $Y + 1 WEnd ;~ 721 $X = 0 while PixelGetColor( $X, $Y ) <> 0 $X = $X + 1 WEnd $Z = $Y + $X $Y = $Y - 19 WinMove( "title- " & $title1, "", -$X, -$Y, 1024 + 2*$X, 721+$Z ) Else _ShowError( "Error in function.2") WinSetState( "title- " & $title1, "", @SW_MAXIMIZE ) $a = WinGetClientSize( "title-" $title1) if $a[0] <> 1024 or $a[1] <> 721 then _gethelp() _ShowError( "Error in function.1") endif EndIf EndFunc ;==>_SSoff
GaryFrost Posted March 1, 2006 Posted March 1, 2006 without an explanation of the error might be a little hard to help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Starfish41 Posted March 1, 2006 Posted March 1, 2006 (edited) Line 55 $a = WinGetClientSize( "title-" & $title1)Line 63 EndIf ;was missingHave you declared $title1? Edited March 1, 2006 by Starfish41
tubadc Posted March 1, 2006 Author Posted March 1, 2006 $title1 is declare like that Global $title1 = "BOT 1.0B" I think the problem is the "Else", becouse if i change for "and" it goes with no problem.... but i dont know if its right...
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