Jump to content

Change window while active


Silas
 Share

Recommended Posts

Hello everyone,

I am making a litle programm that helps my classmates how to fix their internet problems.
I just started with is so there isn't very much in the window yet..

But what i want to ask you guy's: is there a way that the window changes while it is active. Like first you see picture 1 and some text, and when you press the start button the hole window changes so that the picture and text are gone and you see something els. And that when you restart it, it is resetted. I tried it whit just opening a new window but that became somewhat odd. Can you guys help me? (And i don't mean by making litle tabs.)

 

In other words: when you press the start button, the picture and start button disapears, and in stead of that other buttons and text and pictures appear.

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#Region ### START Koda GUI section ### Form=c:\backup\bots\bronnen\koda\wifi-s.kxf
$Form1 = GUICreate("WIFI-S ©", 762, 467, -1, -1)
GUISetBkColor(0xFFFFFF)
$Start = GUICtrlCreateButton("Start", 568, 368, 131, 57)
GUICtrlSetFont(-1, 11, 400, 0, "Segoe UI")
$Logo = GUICtrlCreatePic("C:\Backup\Bots\WIFI-S\Sources\Home\Logo Wifi-S.jpg", 8, 8, 132, 132)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
         Case $Start
            Start()

    EndSwitch
WEnd

Func Start()
   
EndFunc

Thank you very much if you have a answer because i searched a lot but i didn't find anything like this.

Link to comment
Share on other sites

  • Developers

Yes that is possible. Just open the helpfile and look for the appropriate GUICtrlxxxxx functions.

Ik weet zeker dat je het zelf kan vinden en zorg ervoor dat er niet nog een Topic gesloten wordt vanwege Bots, want dat zou nummer 3 zijn en dat blijft niet zonder consequenties!  De directory naam belooft niet veel goeds.  (Lets see what Google makes of this when translated to English) 

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

×
×
  • Create New...