Sign in to follow this  
Followers 0
Chaos Dreams

Program like clone hunter

17 posts in this topic

Can anyone help me with this one?

I know snarg has created one useng autoit but i was looking for something different.

Like it doesnt need to create games it just needs to display the ip that is connected on port 4000.

anyone have a idea?

(p.s. I am totaly new to this program ) :ph34r:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Can anyone help me with this one?

I know snarg has created one useng autoit but i was looking for something different.

Like it doesnt need to create games it just needs to display the ip that is connected on port 4000.

anyone have a idea?

(p.s. I am totaly new to this program  ) :ph34r:

<{POST_SNAPBACK}>

you could make a scriptr that will RUN netstat and pipe the output to a file which you then read .

EDIT: do a search on netstat and you will find the answers given before to similar questions on this subject...

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yeah i got it to that part but i want in a nice little screen

Like a small pop-up window or something

Share this post


Link to post
Share on other sites

I want a program like spy hunter with cool car guns for the car and stuff.

:(

sorry, the name just struck a chord... :lol::ph34r:


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

i want one like the hunter program only smaller, it just needs to show the ip on port 4000 in a small pop-up screen, if the value changes it also needs to be updated

Share this post


Link to post
Share on other sites

I use the clone hunter also, but, I just use the one from blizzhackers...

Share this post


Link to post
Share on other sites

Of course you will have to include this in a loop, but this could be the basis for what you want.

;Run netstat and find the string 4000 pipe it in a text file
$err = RunWait(@ComSpec & ' /c netstat | find "4000" > a.tmp', @ScriptDir, @SW_HIDE)

;check if it could find the string
If $err Then
 msgbox(0,"", "nothing on port 4000")
 exit
EndIf

;read a.tmp
$Port = FileReadLine("a.tmp", 1)

If @error Then
; There was an error finding it
  msgbox(0,"", "could not read")
  Exit
EndIf

FileDelete("a.tmp")


MsgBox(4096,"",$Port)

:ph34r:


CheersNobby

Share this post


Link to post
Share on other sites

ok, I know this is a really, really old topic. but heres my question. How would i write this line (MsgBox(4096,"",$Port)) from above to my title bar instead of useing a msgbox? If there is a way to do it correctly, could some one point me in the right direction. Ive been searching and searching but cant find what i'm looking for. Thank you in advance if any one would like to help me with this.

Share this post


Link to post
Share on other sites

I don't want to change the name of the bar, just insert the ip into it. If that is possible.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

I don't want to change the name of the bar, just insert the ip into it. If that is possible.

Not sure I understand you but when you want to use the current text from the Window title you could do a WinGetTitle() first ...right ? Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Please tell me you didn't think about it at all. Or your just stupid. You insert into it, you change it. Pretty simple.

$ip = "123.123.123.123"

$hwnd = GUICreate ("Program Title", 800, 600)

GUISetState (@SW_SHOW)

Sleep (2000)

$title = WinSetTitle ($hwnd, "", "Program Title- " & $ip)

Sleep (2000)

Cheers,

Brett

:D

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Ahh, I see. Basically I'm trying to create an Input box, say in the middle from left to right) of the title bar that this would be written into and would reset in each game with the new input.

edit: I see in the Koda maker that u can add and ip box, but I cant get it to position where I would like it to be.

Edited by XxxKills

Share this post


Link to post
Share on other sites

Ahh, I see. Basically I'm trying to create an Input box, say in the middle from left to right) of the title bar that this would be written into and would reset in each game with the new input.

edit: I see in the Koda maker that u can add and ip box, but I cant get it to position where I would like it to be.

Sorry, what are you creating an input box on the titlebar for?

Share this post


Link to post
Share on other sites

I just wanted the Ip to show up in the box, just for cosmetic appeal I quess.

Share this post


Link to post
Share on other sites

Ok, got all that. Now just have to fiqure out how to trim off the ends where it leads up to the couple of #'s before the 4000 and after.

Share this post


Link to post
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
Sign in to follow this  
Followers 0