Sign in to follow this  
Followers 0
lolp1

Error in GUIcreate code.

8 posts in this topic

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 :whistle:?

Share this post


Link to post
Share on other sites



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 :whistle:?

$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)

[center]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.[/center]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

No help :whistle:?

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks, works great!

Share this post


Link to post
Share on other sites

Thanks, works great!

Welcome

8)


NEWHeader1.png

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