AutoHotkey Community

It is currently May 27th, 2012, 4:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 128 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

Would you use this script?
Yes
No
Frequently
Maybe once or Twice
You may select 1 option

View results
Author Message
 Post subject: cool
PostPosted: March 4th, 2010, 8:38 am 
Offline

Joined: March 4th, 2010, 7:21 am
Posts: 5
Nice mod WankaUSR:)

The only think that buged me was when a user logon, he comes up two times on the list, when he log off the server only remove one of the name on the list, and when he logon agian the server adds two new names.
It just keep stacking up till he gets the message that the user is already in use.

I discoverd that it had something to do whit Userlist.txt that keep on remebering the names and keep typeing them in when a user logon. I could even type in a random word and it pop up:P

So i removed this part from the code and the problem disappeard:)
Code:
fileappend, %recievedx1%`n, Settings\userlist.txt
fileread, userlist, Settings\userlist.txt


Donno if it was the right move since im still a new student at programing, but hope you can look in to it:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 7:43 am 
Offline

Joined: August 14th, 2007, 12:11 pm
Posts: 86
ok that was something I did not see when testing when fixing that I found another bug it also doesn't make the difference between already logoned users . I will look into this


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 4:12 am 
I still see the same strange outgoing text. It obviously works, but there is "extra" redundant text being sent from the server (and maybe the client too). I logged into the server using putty and here is the conversation color-coded for clarity.

Client Sent Text = Red
Server Sent Text = Green

______________________________________________

Joe Connected!
Hello
Joe: Hello
How are you?
Joe: Fine thank you, how are you?
Fine

______________________________________________

However this is what Putty reports as the incoming and outgoing text

______________________________________________

RX2CLIENTCON:Joe Connected!
HelloENTCON:elloENTCON:Joe: Hello
How are you?ow are you?Joe: Fine thank you, how are you?
Finere you?inere you?

______________________________________________

So why is "ENTCON:elloENTCON:" and "ow are you?" and "re you?inere you?"being sent?

By the way this is not new to WankaUSR's code it has been there since the start. It obviously works, but is there anyway to eliminate the junk text? Thanks WankaUSR, jmanx and others


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2010, 3:37 am 
Offline

Joined: December 20th, 2007, 4:12 am
Posts: 22
bumpidy bump


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2010, 5:51 pm 
Offline
User avatar

Joined: October 31st, 2008, 9:39 am
Posts: 641
Location: France
Sorry I need to understand this script, if you can help me :)

For kick an user this code is beter ?
DllCall("Ws2_32\closesocket" , "UInt", conectioncheck%a_index%)
or perhaps Ws2_32\shutdown

And about DllCall("Ws2_32\WSACleanup") they send a message to server for free socket or socket is always use after a crash client ?
( if ReceivedDataLength = 0 )


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2010, 8:53 pm 
Hmm.. Could someone explain me how is the userlist thing done? How does the server know that someone connected and how does it get the nick? :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2010, 1:15 pm 
Offline
User avatar

Joined: October 31st, 2008, 9:39 am
Posts: 641
Location: France
I have found a bug on my computer, it's about SendData() :

VarSetCapacity(SendData) must be replace by StrLen(SendData) for to have the real lenght, it's seems that return of VarSetCapacity "bug" for this use, normal it's a String.

With StrLen, the size of data (that we send) don't grow and are true... Sorry it's hard to explain it, you can view it with ressource system or a msgbox.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2011, 5:33 pm 
make a video streaming of webcams if its possible :D


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 128 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group