 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Bigrob55
Joined: 24 Sep 2007 Posts: 37
|
Posted: Thu Dec 06, 2007 4:54 am Post subject: IP & Username Log |
|
|
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.
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Thu Dec 06, 2007 8:03 am Post subject: |
|
|
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 |
|
 |
Bigrob55
Joined: 24 Sep 2007 Posts: 37
|
Posted: Fri Dec 07, 2007 1:16 am Post subject: |
|
|
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  _________________ Bigrob
L337 Speak - A Ventrilo Client Side program
Winamp Sound Changer - Change Audio Output on the Fly! |
|
| Back to top |
|
 |
rajat as guest Guest
|
Posted: Fri Dec 07, 2007 7:18 am Post subject: |
|
|
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
|
Posted: Sat Dec 08, 2007 4:31 pm Post subject: |
|
|
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 , 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.  _________________ Bigrob
L337 Speak - A Ventrilo Client Side program
Winamp Sound Changer - Change Audio Output on the Fly! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|