Jump to content

help with a little IM client


Recommended Posts

Here is the code:

#include <GUIConstants.au3>

GUICreate("Revodes IM Client", 250, 255)
$tab=GUICtrlCreateTab (10,10,231,25)
$tab0=GUICtrlCreateTabitem (" Login ")                            ; login tab
GuiCtrlCreateLabel("Username:", 10, 42)
GuiCtrlCreateInput("", 70, 40, 130, 20)                          ; username input
GuiCtrlCreateLabel("Password:", 10, 83)
GuiCtrlCreateInput("", 70, 80, 130, 20)                          ; password input
GuiCtrlCreateButton("Login", 74, 160, 100, 30)                    ; login button
$tab1=GUICtrlCreateTabitem (" Register ")                          ; register tab
GuiCtrlCreateLabel("Username:", 10, 42)
GuiCtrlCreateInput("", 70, 40, 130, 20)                          ; username input
GuiCtrlCreateLabel("Password:", 10, 83)
GuiCtrlCreateInput("", 70, 80, 130, 20)                          ; password input
GuiCtrlCreateLabel("By checking the below box you agree to the ToS.", 10, 120)
GuiCtrlCreateCheckbox("I agree", 100, 160, 80, 20)
GuiCtrlSetState(-1, $GUI_CHECKED)                                  ; agree checkbox
GuiCtrlCreateButton("Create Account", 74, 200, 100, 30)          ; create account button
$tab3=GUICtrlCreateTabitem (" Terms of Service ")                  ; terms tab
GuiCtrlCreateLabel("Revodes instant messenger, also known as 'RIM'", 10, 40)
GuiCtrlCreateLabel("is a free service provided for public use. However", 10, 52)
GuiCtrlCreateLabel("any misuse or illegal use of this product will not be", 10, 64)
GuiCtrlCreateLabel("tolerated. Redistribution of 'RIM' is acceptable", 10, 76)
GuiCtrlCreateLabel("as long as a link back to revodes.com is provided.", 10, 88)
GuiCtrlCreateLabel("Termination of accounts can and will happen if", 10, 100)
GuiCtrlCreateLabel("these rules aren't followed and abided by.", 10, 112)

GUISetState (@SW_SHOW)    ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

While that code right there is not much at all, I intend to eventually make it into a full-fledged instant messaging client. ANY suggestions and ideas are welcome. This is just the GUI which is not even totally finished yet.

Things I'm having trouble with now (aka the hard stuff):

1. Making a tcp or udp server

2. Making the register and login tab actually work in accordance to the server.

3. (After I get the first 2 working) able to send/recieve messages from others connected to the udp/tcp server.

If anyone wants to help code this IM program with me just throw me a message-

email: foxygrandpa@gmail.com

pm: here

AIM: Rathercontagious

MSN: the_grim_reaper5000@hotmail.com

Thanks in advance for any help, later.

Link to comment
Share on other sites

Hi,

there are already examples of TCP Server and Client and even IM-Clients in the S&S forum. Maybe you could have a short glance. :D

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

there are already examples of TCP Server and Client and even IM-Clients in the S&S forum. Maybe you could have a short glance. :D

So long,

Mega

Thanks for the response, I already looked at AutoiIt Smith's posts about tcp servers and clients but everyone said you need beta to compile them, what happens when I compile a script based off of that in autoit v3? Will it just not work at all?

Link to comment
Share on other sites

Hi,

yes it won't work. There is no need not toggle to beta. Beta is more stable then "normal" version I think.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Will message you in person. :whistle: Glad peple are getting into TCP more.

Thanks! I was hoping you would see this thread and help me :). From what i've looked up about tcp on the forums you look like just the guy to ask.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...