lolp1 Posted February 20, 2007 Share Posted February 20, 2007 Hello, this code seems to give me an error: $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder)(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) Now, yes the skin folder is there. The error I am getting is: Error: Illeal text at the end of a statment (one statment per line) I'm sure I am just havin a brain loss moment, but does anyone wan't to help me ? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 20, 2007 Moderators Share Posted February 20, 2007 Hello, this code seems to give me an error: $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder)(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) Now, yes the skin folder is there. The error I am getting is: Error: Illeal text at the end of a statment (one statment per line) I'm sure I am just havin a brain loss moment, but does anyone wan't to help me ? $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder)(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) It was your mistake. $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder,(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
lolp1 Posted February 20, 2007 Author Share Posted February 20, 2007 Hello, Thanks for the reply, I just now seen that. Reardless, that still does not fix the problem, I am now getting, Error: Incorrect number of parameters in function call. Link to comment Share on other sites More sharing options...
lolp1 Posted February 21, 2007 Author Share Posted February 21, 2007 No help ? Link to comment Share on other sites More sharing options...
Valuater Posted February 21, 2007 Share Posted February 21, 2007 you are not using the parameters as noted/required for XSkinGUICreate() #include <XSkin.au3> ; the two following folders are seperate for building skins ; however in YOUR program put them in the same folder ; folder of skin $Skin_Folder = @ScriptDir & "\Skins\blackhole" ; icon folder $Icon_Folder = @ScriptDir & "\Skins\Default" $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder);,(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) $XIcon = XSkinIcon($XSkinGui, 2) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $XIcon[1] Then Exit If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE) WEnd 8) Link to comment Share on other sites More sharing options...
Valuater Posted February 21, 2007 Share Posted February 21, 2007 to move the window use this #include <XSkin.au3> ; the two following folders are seperate for building skins ; however in YOUR program put them in the same folder ; folder of skin $Skin_Folder = @ScriptDir & "\Skins\blackhole" ; icon folder $Icon_Folder = @ScriptDir & "\Skins\Default" $XSkinGui = XSkinGUICreate( "First menu", 320, 190, $Skin_Folder);,(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) $XIcon = XSkinIcon($XSkinGui, 2) WinMove( $XSkinGui, "", (@DesktopWidth-500)/2, (@DesktopHeight-400)/2) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $XIcon[1] Then Exit If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE) WEnd 8) Link to comment Share on other sites More sharing options...
lolp1 Posted February 21, 2007 Author Share Posted February 21, 2007 Thanks, works great! Link to comment Share on other sites More sharing options...
Valuater Posted February 21, 2007 Share Posted February 21, 2007 Thanks, works great!Welcome8) 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