Sign in to follow this  
Followers 0
DoctorSLO

Loading screen

4 posts in this topic

Hi.

I want to make loading screen when the script starts ...

Here is code:

GUICreate("Travian Farmer - loading ...", 277, 232, 403, 238)
GUICtrlCreatePic("files/logo.jpg", 0, 0, 275, 205, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$startloading = GUICtrlCreateProgress(0, 205, 276, 26, $PBS_SMOOTH)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xC0DCC0)
GUISetState(@SW_SHOW)

But the problem is, that this is shown in window (you can see minimize, maximize and exit buttons) ... so how can I remove them?

Posted Image

Share this post


Link to post
Share on other sites



Hi.

I want to make loading screen when the script starts ...

Here is code:

GUICreate("Travian Farmer - loading ...", 277, 232, 403, 238)
GUICtrlCreatePic("files/logo.jpg", 0, 0, 275, 205, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$startloading = GUICtrlCreateProgress(0, 205, 276, 26, $PBS_SMOOTH)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xC0DCC0)
GUISetState(@SW_SHOW)

But the problem is, that this is shown in window (you can see minimize, maximize and exit buttons) ... so how can I remove them?

Posted Image

In the function GUICreate(), the 6th input is "style". Look at the GUICreate() help file page, then read up on the "style" arguments. Looking at it briefly, it looks to me that you want something like $WS_POPUP.


[font="Times New Roman"]Ocho.[/font]

Share this post


Link to post
Share on other sites

Yes, this is it.

Thx

I couldn't found it by myself, because there are strange names ...

Share this post


Link to post
Share on other sites

Yes, this is it.

Thx

I couldn't found it by myself, because there are strange names ...

No problem. And yes the names are...well confusing :)


[font="Times New Roman"]Ocho.[/font]

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