tylerh27 Posted August 21, 2012 Posted August 21, 2012 (edited) I am trying to create something similar to skype, iv been using isn studio to set up the gui's i need. The only thing is, i dont know how to "iframe" data from a web server for the users online and the chats, and i also dont know how to switch between the login window and the main window after login. Can someone help me get started here? this is what i have so far: ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <GuiButton.au3> $GUI = GUICreate("GUI",297,221,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$GUI) GUICtrlCreateLabel("Chat",104,20,89,43,-1,-1) GUICtrlSetFont(-1,16,700,2,"Segoe Script") GUICtrlSetBkColor(-1,"-2") GUICtrlCreateInput("Username",70,90,150,20,-1,512) GUICtrlCreateInput("**********",70,140,150,20,-1,512) GUICtrlCreateCheckbox("Remember Me",40,180,90,20,-1,-1) GUICtrlSetBkColor(-1,"0xFFFFFF") GUICtrlCreateButton("Log In",180,180,80,21,-1,-1) GUISetState(@SW_SHOW,$GUI) $next = GUICreate("next",433,386,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$next) GUICtrlCreateGroup("Chat",140,0,293,382,-1,-1) GUICtrlCreateButton("Log Out",0,0,137,44,14,-1) DllCall("user32.dll", "UINT", "SendMessage", "handle", GUICtrlGetHandle(-1), "UINT", $BCM_SETNOTE, "ptr*", 0, "wstr", "") DllCall("user32.dll", "UINT", "SendMessage", "handle", GUICtrlGetHandle(-1), "UINT", $BCM_SETSHIELD, "ptr*", 0, "BOOL",false) GUICtrlCreatelist("",0,50,138,331,-1,512) GUISetState(@SW_HIDE,$next) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited August 21, 2012 by tylerh27
Shane0000 Posted August 22, 2012 Posted August 22, 2012 To show and hide a gui use: GUISetState(@SW_HIDE,$next) GUISetState(@SW_Show,$next) GUISetState(@SW_SHOW,$gui) Do login routine GUISetState(@SW_HIDE,$gui) GUISetState(@SW_SHOW,$next)
Zedna Posted August 22, 2012 Posted August 22, 2012 General GUI answer (for more GUIs):http://www.autoitscript.com/autoit3/docs/guiref/GUIRef_MessageLoopMode.htmhttp://www.autoitscript.com/wiki/Managing_Multiple_GUIs Resources UDF ResourcesEx UDF AutoIt Forum Search
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