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 

IP & Username Log

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Bigrob55



Joined: 24 Sep 2007
Posts: 37

PostPosted: Thu Dec 06, 2007 4:54 am    Post subject: IP & Username Log Reply with quote

Hey all,

I am goin to quote my PM to Rajat, mainly because it sums it all up in that.


Quote:
Hey Rajat, I don't belive we've ever spoken.

A am a few months new to the Forum, and .ahk in general.

And I LOVE writing scripts to make life on the comp a bit easier. Cool

The reason i am writing you today is to ask your advice, the script i would like to write is a simple IP Log.

In Which the IP and Description (or in my case Username) would be put in manualy.

And then saved to a txt file.

It is for a Game i play, i am the Admin. And i would like to keep track of who is playing on the server by there IP address.

So when there is someone with there name changed on the server that is causing trouble i can simple type in the IP address they are using and it will show the username that IP address is known for.

The reason i have come to you for help, is becuase i would like for it to work very much like 320 MPH, when u type a few letters of numbers in, it begins listing as you type....

How do i go about doin this?

_________________
Bigrob

L337 Speak - A Ventrilo Client Side program

Winamp Sound Changer - Change Audio Output on the Fly!
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Dec 06, 2007 8:03 am    Post subject: Reply with quote

Hi Bigrob,
your first step would be to determine where the IP addresses (and descriptions) would be coming from, and then to actually get them in AHK.
Once that is done, a GUI and fuzzy search is easy to write.

I hope that helped.
_________________
Back to top
View user's profile Send private message
Bigrob55



Joined: 24 Sep 2007
Posts: 37

PostPosted: Fri Dec 07, 2007 1:16 am    Post subject: Reply with quote

Well what i was thinking was to have .txt file that would hold the inputted data.

Sadly i don't know the first thing about how to format the info.

This is what i was toying around with:
Code:
FileRead, Contents, raw.log
if not ErrorLevel  ; Successfully loaded.
{
    Sort, Contents
    FileDelete, player.log
    FileAppend, %Contents%, player.log
    Contents =  ; Free the memory.
}
return


Though after thinking about it, i really don't know to have any information read of gather from a .log or .txt file.

Because i want to manually enter all the information into a field.
And have it be written to a .txt file

Code:

[player1] Jim
[IP1] 23.441.515.2`n

[player2]Padawan
[IP1]75.113.111.1`n

[player3]{JediOrder}Bigrob
[IP1]192.168.0.1`n


Well thats just an example of what could let the Qui know that the name and IP go together.


Sry to all the people that are reading this, and are having a hard time understanding what i am talking about.

But leave feedback anyways, and we can get some ideas bouncing around, on how to get this working Smile
_________________
Bigrob

L337 Speak - A Ventrilo Client Side program

Winamp Sound Changer - Change Audio Output on the Fly!
Back to top
View user's profile Send private message
rajat as guest
Guest





PostPosted: Fri Dec 07, 2007 7:18 am    Post subject: Reply with quote

actually i missed the part where you mentioned that you'd enter the IPs manually... i was thinking that they'd just be read..

for ease, maybe the following format can be followed for writing/reading IPs and player names:

Jim|23.441.515.2
Padawan|75.113.111.1
{JediOrder}Bigrob|192.168.0.1

then you just have to run a "Loop, Read" in ahk to read and process it (read manual).

though its easier to maintain, are you sure you'd be entering all IPs manually?.. with changing IPs that's quite a task..

good luck..
Back to top
Bigrob55



Joined: 24 Sep 2007
Posts: 37

PostPosted: Sat Dec 08, 2007 4:31 pm    Post subject: Reply with quote

Thnx for the good tips & and the speedy reply Rajat.

Yea i wish i could have ahk read the .log files via the servers FTP.

But 1, i don't have any logs generated by the server that lists FTP addy's

and 2, i can't seem to get ahk to dowload a file via an ftp. Though that is a good idea Idea , and maybe ill look into that

Ill get back to u, and all one watching this post after i do some Forum Searching fot FTP fuctionality. Smile
_________________
Bigrob

L337 Speak - A Ventrilo Client Side program

Winamp Sound Changer - Change Audio Output on the Fly!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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