Jump to content
Sign in to follow this  
Isildur

Setup

Recommended Posts

Isildur

How can I write a setup like the setup of Invertor Game.

Share this post


Link to post
Share on other sites
Immensee

Uhm,

i don't know what the INVERTOR GAME is,

but if u want to do something , you must first gain the knowledge of it,

you must know, other people WON'T help you, you must do it yourself.

alright, because i'm nice i will give a little (not working MUAHAHA) example:

;;  Includes
#include    <GUIConstants.au3>

;;  The Setup of this program
$title  =   "My Setup [beta]"   ;;Your Title (variable)
$width  =   500                 ;;Your wanted width-size (var)
$height =   400                 ;;Your wanted height-size (var)
$handle =   GUICreate($title, $width, $height)  ;;Create the GUI with the var's

;;Controls
GUISetFont(11, 600 , 6) ;;Set the fontsize into 11, 'depth'=600 and extra's: italic(2)+underlined(4)
$control1   =   GUICtrlCreateLabel($title, 10, 10)

GUISetFont(9, 400, 0) ;;Set the fontsize into 9(default), 'depth'=400(default) and no extra's
$control2   =   GUICtrlCreateLabel("Welcome to my just made setup!", 10, 30)

GUISetState(@SW_SHOW, $handle)  ;;Sets the state of a certain GUI, in this case, reveal the GUI

;;The loop, to constantly check events.
While 1
    $event  =   GUIGetMsg() ;;Event caller
    
        Select
            Case $event = $GUI_EVENT_CLOSE
                ;;The event if somebody closes the screen.
                ExitLoop
        EndSelect
        
WEnd
    
Exit

Here, the whole thing you need for a starting thing!!!

happy now?

- me

Share this post


Link to post
Share on other sites
someone

For those that don't know invertor is a game Jon mentioned in the example scripts... http://www.autoitscript.com/forum/index.ph...amp;hl=invertor

While I don't know exactly how he did that installer I have used an installer script by Daniel W., http://www.autoitscript.com/forum/index.ph...&hl=install (scroll through I recommend the install_modified ver)

Its not the easiest thing to understand if your very new though. And I think there is a mistake in an If statement regarding start menu shortcuts. At any rate, its a very good script, it allows you to have a good looking installer for your programs.

Good luck


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.