AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

online ahk chat room ftp and local
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

what do u think
keep working
100%
 100%  [ 5 ]
good job
0%
 0%  [ 0 ]
throw it out
0%
 0%  [ 0 ]
keep working then release
0%
 0%  [ 0 ]
Total Votes : 5

Author Message
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 03, 2008 6:26 am    Post subject: online ahk chat room ftp and local Reply with quote

okay it now has the following functions


posts things downward instead of upwards using a list box
enlarged the chat box
stops flooding by only allowing one message every 4 seconds
has an clear chat function
has a broadcast function

________________
working on:
speeding up script, without losing messages to all users all together (sometimes messages get lost when using a vpn such as hamachi)

add ftp feature, so may connect to ftp sever and chat
(plan to use chat%userid%.dat) in ftp so messages dont get lost, and have the timer check for the messages sent by ech user that is online (this may speed up and resolve lost messages)

making pm windows for each pm you get from a different user

all help would be aprricited, have a headach from all the lines of code, although i beleive an ftp upload can be found somewher ein this forum, and to make the users all have their own message file, that the timer needs to be super ffast, hardly no delay and that the ini where settings are saved needs to be read, and then make it check for chat%useid%.dat
one for each online user ( i dont remeber if that even the right variable but im sure it can be looked up) then when a user posts a message it check to seee if a message they posted before still exissts (weather local or ftp (im sure ftp would requir more work like trying to download the deleteing with an ftp command and re uploading)), also i plan to have both version in one, like a check box at start up to select ftp or local, if ftp, then like a trigger active is changes to ON and ftp codes are used, in OFF only uses local, i know this sounds liek a lot fo work, but if a lot fo ppl work on it, im sure it will get done faster, i will help as well, please post the snips of code u edited as well as a few lines of code above and below, so that way we can develop features peice by peace

NO FULL CODES PLEASE SNIPPLETS EDITED ONLY

Code:

#singleinstance off
chat = chat.dat
#IfWinActive, Lan Chat v1.0.4 - emoyasha dev co
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

mcounter = 0
hcounter = 0

Menu,Tray,NoStandard
Menu,Tray,DeleteAll
Menu,Tray,Add,Chat
Menu,Tray,Add,ChangeUsername
Menu,Tray,Add,ChangeMessage
Menu,Tray,Add,Hotkeys
Menu,Tray,Add,About
Menu,Tray,Add,Exit
Menu,Tray,Default,Chat
Menu,Tray,add,admin
Menu,Tray,add,logviewer


Ifnotexist, %a_windir%\system32\lcsettings.dll
{
  Msgbox, , Lan Talk v1.0.4, Written By: EmoYasha`n`nIdea By: Tim Chen
  InputBox, name, Lan Chat v1.0.4, What do you want your chat name to be?
  if ErrorLevel
  {
    MsgBox, You cancelled.
    ExitApp
  }
  IniWrite, %name%, %a_windir%\system32\lcsettings.dll, Personal, name
  Loop
  {
    Random, yourcomp, 100, 999
    Loop, read, users.ini
    {
      if a_loopreadline contains %yourcomp%
      {
        used = 1
        break
      }
    }
    if used <> 1
      break
  }
  IniWrite, %yourcomp%, %a_windir%\system32\lcsettings.dll, Computer, id
  IniWrite, %name%, users.ini, %yourcomp%, name
  IniWrite, 0, %a_windir%\system32\lcsettings.dll, Personal, Message
}
Else
{
  IniRead, name, %a_windir%\system32\lcsettings.dll, Personal, name
  IniRead, yourcomp, %a_windir%\system32\lcsettings.dll, Computer, id
  Iniread, bl, %a_windir%\system32\lcsettings.dll, Computer, bl
  if bl = 1
  {
    IniRead, ul, users.ini, %yourcomp%, bl
    if ul = 2
    {
      IniDelete, %a_windir%\system32\lcsettings.dll, Computer, bl
      IniDelete, users.ini, %yourcomp%, bl
    }
    else
    {
      Msgbox,, Blocked, What do you think your doing!!! You've been blocked!,2
      ExitApp
    }
  }
  IniWrite, %name%, users.ini, %yourcomp%, name
}
IniWrite, *, users.ini, %yourcomp%, online

Settimer, updatechat, 100
Settimer, Checkbl, 1000
Settimer, CheckMessages, 10
Settimer, UpdateUserList, 1000
Settimer, Updatebroadcast, 100
Settimer, Updatecleaner, 100

Gui, 2:Add, Button, x6 y70 w130 h20 , Update Done
Gui, 2:Add, Button, x6 y10 w130 h20 , Turn Cleaner ON
Gui, 2:Add, Button, x6 y30 w130 h20 , broadcast
Gui, 2:Add, Button, x6 y50 w130 h20 , Update Program
Gui, 2:Add, Edit, x16 y120 w50 h20 vcomid, ID
Gui, 2:Add, Button, x76 y120 w50 h20 , Block
Gui, 2:Add, Button, x26 y150 w90 h20 , Un Block
Gui, 2:Add, GroupBox, x6 y100 w130 h80 , User Control


Gui, 3:Add,Edit,  x16 y350 w360 h20 vMessage, Type your message here...
Gui, 3:Add, Button, x400 y340  w60 h20 gbuttonsend , Send PM
Gui, 3:Add, Edit, x16 y0 w360 h340 vMessageWindow +ReadOnly, Your messages will come in here...
Gui, 3:Add, Edit, x16 y390 w80 h20 vtocomp, CompID

Gui, Add, Edit, x16 y350 w560 h20 vMessage, Type your message here...
Gui, Add, Edit, x606 y340 w80 h20 vtocomp, CompID
Gui, Add, Button, x700 y340  w60 h20 gbuttonsend , Send PM
Gui, Add, Button, x690 y370 w90 h20 gbuttonaction ,send as Action
Gui, Add, GroupBox, x6 y0 w580 h400 +, Chat



Gui, Add, ListView, x16 y20 w560 h330 , Chat
Gui, Add, Text, x316 y370 w200 h20 +, Press Enter to send the message
Gui, Add, button, x490 y370 default genter1 + , send
Gui, Add, GroupBox, x596 y300 w180 h70 , Send Private Message
Gui, Add, Text, x616 y320 w140 h20 , Send a message to one user
Gui, Add, Button, x536 y410 w50 h50 , Open`nSidebar
Gui, Add, GroupBox, x6 y400 w520 h70 , Private Messages
Gui, Add, Edit, x16 y420 w500 h40 vMessageWindow +ReadOnly, Your messages will come in here...
Gui, Add, GroupBox, x596 y0 w180 h300 , User List
Gui, Add, Edit, x606 y20 w160 h270 vUserWindow +ReadOnly, Users in Chat
gui, add, button, x606 y450, pm window

Gui, Show, x50 y50 h483 w595, Lan Chat v1.0.4 - emoyasha dev co
Return



Chat:
WinActivate, Lan Chat v1.0.4
return

ChangeUsername:
stop = 0
InputBox, newname, Lan Chat v1.0.4, What do you want you chat name to be?
FileRead, tempusers, users.ini
if tempusers contains %newname%
{
  Msgbox, Sorry but this username has already been taken.
  return
}
oldname = %name%
name = %newname%
IniWrite, %name%, %a_windir%\system32\lcsettings.dll, Personal, name
IniWrite, %name%, users.ini, %yourcomp%, name
FileAppend, "%oldname%" changed his name to "%name%" %a_yday%`n, userhistory.dat
return

ChangeMessage:
InputBox, buttonmess, Lan Chat v1.0.4, What do you want to change the predefined message to?
if ErrorLevel
  return
IniWrite, %buttonmess%, %a_windir%\system32\lcsettings.dll, Personal, Message
goto buttonl
return

^h::
Hotkeys:
Msgbox, , Lan Chat Hotkeys, Control+h - Hotkeys Help`nControl+m - Open Messages`nControl+e - Hides the Window`nControl+Alt+a - Action`nControl+Shift+a - Admin Menu`nControl+Alt+s - Send private message`nControl+p - Send your predefined message`n`nAlt+x - Exits
return

About:
Msgbox, , Lan Talk v1.0.4, Written By: EmoYasha`n`nIdea By: Tim Chen
return

!x::
GuiClose:
Exit:
IniWrite, -, users.ini, %yourcomp%, online
FileDelete, cleaner.dll
Ifexist, %yourcomp%mess.dat
  FileDelete, %yourcomp%mess.dat
ExitApp
return





^m::
ButtonOpenSidebar:
If mcounter = 0
{
  Gui, Show, x50 y50 h483 w789, Lan Chat v1.0.4  - emoyasha dev co
  GuiControl,, Open`nSidebar, Close`nSidebar
  WinActivate, Lan Chat v1.0.4
  mcounter ++
}
else
{
  Gui, Show, x50 y50 h483 w595, Lan Chat v1.0.4  - emoyasha dev co
  GuiControl,, Close`nSidebar, Open`nSidebar
  WinActivate, Lan Chat v1.0.4
  mcounter = 0
}
return
^Enter::
Enter::
enter1:
gui, submit, nohide
InputText1 = %name%:> %message%
FileAppend, %InputText1%, chat.dat
GuiControl,, Message
return

^!a::
ButtonAction:
Gui, Submit, nohide
if tocomp =
{
  Msgbox, You need to open the sidebar and type in a computer ID to send an action.
  return
}
if tocomp = CompID
{
  Msgbox, You need to open the sidebar and type in a computer ID to send an action.
  return
}
IniRead, compidname, users.ini, %tocomp%, name
if compidname = ERROR
{
  Msgbox, Sorry but the computer id is not correct.
  return
}
GuiControl, ,Message
FileRead, chat, chat.dat
FileDelete, chat.dat
FileAppend, **%name% %message% %compidname%`n%chat%, chat.dat
return

^p::
Buttonl:
IniRead, buttonmess, %a_windir%\system32\lcsettings.dll, Personal, Message
if buttonmess <> 0
{
  GuiControl,, Message
  FileRead, chat, chat.dat
  FileDelete, chat.dat
  FileAppend, :%name%: %buttonmess%`n%chat%, chat.dat
  GuiControl,, ChatWindow, %chat%
}
else
  goto changemessage
return

^!s::
ButtonSend:
Gui, Submit, nohide
IniRead, compidname, users.ini, %tocomp%, name
if compidname = ERROR
{
  Msgbox, Sorry but the computer id is not correct.
  return
}
GuiControl,, Message
FileAppend, -From %name%: %message%`n, %tocomp%.dat
TrayTip, Lan Chat, Your message has been sent.
Sleep, 3000
Traytip
return

^e::
If hcounter = 0
{
  Gui, Hide
  hcounter ++
}
else
{
  Gui, Show, x50 y50 h483 w295, Lan Chat v1.0.4 - emoyasha dev co
  WinActivate, Lan Chat
  hcounter = 0
}
return




updatebroadcast:
ifexist broadcast.dll
{
fileread, bc2, broadcast.dll
msgbox, BROADCAST: %bc2%
filedelete, broadcast.dll
}
UpdateUserList:
FileDelete, %a_temp%\ultemp.dat
Loop, read, users.ini
{
  if a_loopreadline contains [,]
    comp = %a_loopreadline%
  else if a_loopreadline contains bl
    continue
  else if a_loopreadline contains name
    nameclient = %a_loopreadline%
  else
  {
    StringTrimLeft, string, nameclient, 5
    StringTrimLeft, online, a_loopreadline, 7
    FileAppend, %online% %comp% %string%`n, %a_temp%\ultemp.dat
  }
}
Fileread, userlist, %a_temp%\ultemp.dat
GuiControl,, UserWindow, %userlist%
return

UpdateChat:
ifexist chat.dat
{
FileReadLine, OutText, chat.dat, 1
LV_Add("", outtext)
sleep, 3000
filedelete, chat.dat
}

return

CheckMessages:
ifexist, %yourcomp%.dat
{
  FileRead, dirmess, %yourcomp%.dat
  Filedelete, %yourcomp%.dat
  FileRead, compmess, %yourcomp%mess.dat
  FileDelete, %yourcomp%mess.dat
  FileAppend, %dirmess%%compmess%, %yourcomp%mess.dat
  FileRead, messages, %yourcomp%mess.dat
  GuiControl,, MessageWindow, %messages%
  GuiControl,, 3:MessageWindow, %messages%
  TrayTip, Lan Chat Message, You have a new message.
  Sleep, 3000
  Traytip
}
return

CheckBl:
IniRead, bl, users.ini, %yourcomp%, bl
if bl = 1
{
  IniDelete, users.ini, %yourcomp%, bl
  IniWrite, 1, %a_windir%\system32\lcsettings.dll, Computer, bl
  Gui, hide
  Msgbox,, Blocked, You've been blocked...Jerk!,2
  goto exit
}
return





admin:
^+a::
Inputbox, pass, Lan Chat Admin, Enter the password., hide
if ErrorLevel
  return
if pass not contains darkelfzslamrs;
  return

Gui, 2:Show, x600 y50 h193 w150, Admin Area
Return

^z::
Gui, 2:Hide
return

2ButtonTurnCleanerON:
fileappend, , cleaner.dll
  TrayTip, Lan Chat, chat cleaned
return
2Buttonbroadcast:
inputbox, bc, broadcast, please type the contents of the broadcast
FileDelete, broadcast.dll
fileappend, %bc%, broadcast.dll
return

2ButtonUpdateProgram:
FileCopy, users.ini, %a_temp%\users.ini,1
Loop, read, %a_temp%\users.ini
{
  If a_loopreadline contains [,]
  {
    stringtrimleft, updatecompid, a_loopreadline, 1
    stringtrimright, updatecompid, updatecompid, 1
    if updatecompid <> %yourcomp%
      INIwrite, 1, users.ini, %updatecompid%, bl
  }
}
return

2ButtonUpdateDone:
FileCopy, users.ini, %a_temp%\users.ini,1
Loop, read, %a_temp%\users.ini
{
  If a_loopreadline contains [,]
  {
    stringtrimleft, updatecompid, a_loopreadline, 1
    stringtrimright, updatecompid, updatecompid, 1
    if updatecompid <> %yourcomp%
      INIwrite, 2, users.ini, %updatecompid%, bl
  }
}
return

2ButtonBlock:
Gui, 2:Submit, NoHide
if comid =
  return
if comid = ID
  return
IniWrite, 1, users.ini, %comid%, bl
IniRead, blockedname, users.ini, %comid%, name
FileRead, chat, chat.dat
FileDelete, chat.dat
FileAppend, %blockedname% has been kicked`n%chat%, chat.dat
return

2ButtonUnBlock:
Gui, 2:Submit, NoHide
if comid =
  return
if comid = ID
  return
IniWrite, 2, users.ini, %comid%, bl
return

^+x::
FileDelete, %a_windir%\system32\lcsettings.dll
ExitApp
return

logviewer:
Inputbox, pass, log viewer, Enter the password to view the chat logs, hide
if ErrorLevel
  return
if pass not contains logadminpass
  return
run, "log/log viewer.exe"
return

updatecleaner:
ifexist cleaner.dll
{
sleep, 1000
filedelete, cleaner.dll
LV_Delete()
TrayTip, Lan Chat, chat cleaned
}
return

buttonpmwindow:
Gui, 3:Show, x600 y50 , pm window

_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]


Last edited by emoyasha on Sun Jan 06, 2008 2:33 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 03, 2008 6:27 am    Post subject: not sure Reply with quote

im not sure what this could be used for, maybe a new kind of chat, small efficent and ffast? private clubs or websites? or may even evolve into a messenger client one day, think the AHK messenger, but thats in the sutur this is now.
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 03, 2008 4:36 pm    Post subject: this Reply with quote

this was moved from
http://www.autohotkey.com/forum/viewtopic.php?p=169959#169959
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 2:33 am    Post subject: help Reply with quote

and help appriciated
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mucka Knows



Joined: 22 Jun 2007
Posts: 16

PostPosted: Sun Jan 06, 2008 2:45 am    Post subject: Reply with quote

from what I can see, looks nice. good idea, but ive nvr used a lan and have only basic knowledge of how it works. If you could get ahk's ftp function to work, you could ideally just edit a few filenames and this could work on wan, which is hot stuff Razz.

I tried making something like this, but i could only send messages to ppl by saving a txt file through ftp and their scripts would download it and look for changes and place them on screen.

im not sure which vote is best, but i chose "keep working" because its a good idea and I want to see more.



I know jack all about ini's so im just gona assume its like a standard txt file but with extra features Razz.

For the pm thing, if you do:
Code:

if tocomp is not integer
{
line:= 1
Loop
{
filereadline, users, users.ini, %line%
ifinstring, users, %tocomp%
break
line:= (line + 1)
}
; this will tell you what line %tocomp% was found on
ifinstring, users, name
{
line:= line-1
filereadline, users, users.ini, %line%
stringreplace, users, users, [
stringreplace, users, users, ]
if users is integer
tocomp:= users
}
else
msgbox, ERROR username was incorrect
}


this will allow ppl to enter either comp id's or a username
Back to top
View user's profile Send private message Send e-mail
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 3:18 am    Post subject: umm Reply with quote

the code that you wrote, what exactly dose it do? i know thaat it checks the user file or a comp id or something, but my script has a boc with usernames and user id's side by side

but what dose it do
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 3:26 am    Post subject: now Reply with quote

i need ftp help, i need to know, okay say the user sends another user a pm
to send:
Code:

^!s::
ButtonSend:
Gui, Submit, nohide
IniRead, compidname, users.ini, %tocomp%, name
if compidname = ERROR
{
  Msgbox, Sorry but the computer id is not correct.
  return
}
GuiControl,, Message
FileAppend, -From %name%: %message%`n, %tocomp%.dat
TrayTip, Lan Chat, Your message has been sent.
Sleep, 3000
Traytip
return


okay to upload that
an ftp server what would i need?

to receive:
Code:
CheckMessages:
ifexist, %yourcomp%.dat
{
  FileRead, dirmess, %yourcomp%.dat
  Filedelete, %yourcomp%.dat
  FileRead, compmess, %yourcomp%mess.dat
  FileDelete, %yourcomp%mess.dat
  FileAppend, %dirmess%%compmess%, %yourcomp%mess.dat
  FileRead, messages, %yourcomp%mess.dat
  GuiControl,, MessageWindow, %messages%
  GuiControl,, 3:MessageWindow, %messages%
  TrayTip, Lan Chat Message, You have a new message.
  Sleep, 3000
  Traytip
}
return

now say i want to check if a file exists on the ftp server, such as above, then
if the file exists on the ftp server download it, the delete it from the ftp server, and their computer, after reading it?

and i like your idea where the script checks for new lines in the chat file
that would be helpfull, so every time someone types the script appends one, im looking on how to make that work (of course localy first)
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]


Last edited by emoyasha on Sun Jan 06, 2008 3:50 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mucka Knows



Joined: 22 Jun 2007
Posts: 16

PostPosted: Sun Jan 06, 2008 3:40 am    Post subject: Reply with quote

for me, users.ini looks like this:

[996]
name=mucka
online=-

separate lines. the code i posted checks if %tocomp% (which is the var that the user typed into the comp id box for the pm.) is a number (integer). If it is an integer then ur code goes as normal, if not, my code kicks in and assumes that it was an attempt to enter a username.
it runs through the lines of users.ini searching for that username and when found it reads the comp id which is above the username.

eg:
if I typed "mucka" into the computer id box and clicked submit or watevr the button for pm is called. My code knows that it could be a user name, so it runs through users.ini looking for "mucka"

[996]
name=knows
online=-

[997]
name=mucka <---- it finds it here
online=-

what it then does is look 1 line above "mucka" and uses the number 997 as the computer ID.


so instead of having to type the comp id all the time, which would get tedious if it was a large chat system, the user can just type a username and my code finds the comp id for that username, of course if that user does not exist an error msg is displayed.







soz but i have nvr been able to get ftp to work, but the following is how the AHK help file says it can be done:

Code:

; The following example demonstrates how to automate FTP uploading using the operating
; system's built-in FTP command. This script has been tested on Windows XP and 98se.

FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
FTPLogFile = %A_ScriptDir%\FTPLog.txt
FileDelete %FTPCommandFile%  ; In case previous run was terminated prematurely.

FileAppend,
(
open host.domain.com
username
password
binary
cd htdocs
put %VarContainingNameOfTargetFile%
delete SomeOtherFile.htm
rename OldFileName.htm NewFileName.htm
ls -l
quit
), %FTPCommandFile%

RunWait %comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%"
FileDelete %FTPCommandFile%  ; Delete for security reasons.
Run %FTPLogFile%  ; Display the log for review.


im going bed nw, 4am ish. add me on rs if u want to reach me tomaro

oh, and for encryption, i have made an encryption program: http://www3.webng.com/muckaproductions/encryptor.txt
its 90% complete atm, it can still be made more secure.
Back to top
View user's profile Send private message Send e-mail
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 7:09 am    Post subject: ok Reply with quote

okay i have got ftp to work on my computr, i amhostins my own website
http://rsihq.us

and i have an ftp server running as well,
the ftp upload works, now just to find out how to allow
the chat room to upload and download the chat log and check for changes to it in a resonable time.

the website has the ftp servers location on it, you may log in as anonymous or guest
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mucka
Guest





PostPosted: Sun Jan 06, 2008 3:20 pm    Post subject: Reply with quote

im rcing atm so im not paying 100% attention to how your program works, but im assuming that chat.dat contains the msg's sent

when someone sends a msg you can use the f2p upload to save it to eg: www.rsihq.com/chat.dat
and then use your update chat timer to:
urldownloadtofile, rsihq.com/chat.dat, chat.dat
fileread, chat, chat.dat
;then compare this downloaded file to the chat on screen
if (chatonscreen != chat.dat)
lvladd(%chat%) ; im 90% certain that syntax is incorrect, but u get the idea.
Back to top
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 5:15 pm    Post subject: ok Reply with quote

i have it set up so that ftp under the usenrame ahk send files to
http://rsihq.us/ftp/
i did have it downloading directly from ftp
that was i was using anther ftp chat thats very basic, mad eby another user, so now i will try with this method.

howevery here is how my script works (which is why it might get a little buggy )every time someone sends a message chat.dat is created with their one line of text in it, then ever 100 ms it checks for the file, and appends the text into the chat (even if u wrote it) (but works fine because origiginal thing u say dose not automaticly goes there, it gets there the same as everyone else gets it). then wait 3 sconds (to make sure everyone else got it) and deletes it

now i am thinking a better way would be to append, the users id aafter chat
so like
chat142.dat
chat323.dat

ect ect

and have the script check if they are online, and if they are online
then attenmpt to download
http://rsihq.us/ftp/chat142.dat
http://rsihq.us/ftp/chat323.dat
if download was sucessful, read them into the chat one after another
then delete them
then go back into ftp after 3 seconds
and use the following ftp command
del chat142.dat
del chat323.dat
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Sun Jan 06, 2008 5:18 pm    Post subject: i just Reply with quote

i just dunno how to check if the user is online, and then to add the user's,, user id to the end of chat.dat
so that it automaticly checks
or even to not check if the user is online, to just attempt to download chat files for all user id's
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Mon Jan 07, 2008 2:25 am    Post subject: mucka Reply with quote

mucka, i am planning on implementing ftp as soon as someon e tell sme how to have the script check for each users computer's meassages, and your script worked perfect, but it only worked one time, the second time arround it did nothing, and pm just didnt work at all.
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Mon Jan 07, 2008 3:24 am    Post subject: i am Reply with quote

i am hosting ad free website hosting via ftp, on my website
example below
http://rsihq.us/danay/
for FREE
for the first 10 ppl, if anyone is intrested
_________________
online .ini reader with encryption

[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Guest






PostPosted: Tue Jan 08, 2008 12:31 am    Post subject: Reply with quote

ANYONE HELP??
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group