Chaos Dreams Posted September 17, 2004 Share Posted September 17, 2004 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 ) Link to comment Share on other sites More sharing options...
Developers Jos Posted September 17, 2004 Developers Share Posted September 17, 2004 (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 ) <{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 September 17, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Chaos Dreams Posted September 17, 2004 Author Share Posted September 17, 2004 Yeah i got it to that part but i want in a nice little screen Like a small pop-up window or something Link to comment Share on other sites More sharing options...
emmanuel Posted September 17, 2004 Share Posted September 17, 2004 I want a program like spy hunter with cool car guns for the car and stuff. sorry, the name just struck a chord... "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Chaos Dreams Posted September 17, 2004 Author Share Posted September 17, 2004 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 Link to comment Share on other sites More sharing options...
Guest BlackDiablo110 Posted September 17, 2004 Share Posted September 17, 2004 I use the clone hunter also, but, I just use the one from blizzhackers... Link to comment Share on other sites More sharing options...
nobby Posted September 18, 2004 Share Posted September 18, 2004 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) CheersNobby Link to comment Share on other sites More sharing options...
XxxKills Posted June 27, 2009 Share Posted June 27, 2009 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 27, 2009 Developers Share Posted June 27, 2009 WinSetTitle() ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
XxxKills Posted June 27, 2009 Share Posted June 27, 2009 I don't want to change the name of the bar, just insert the ip into it. If that is possible. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 27, 2009 Developers Share Posted June 27, 2009 (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 June 27, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BrettF Posted June 27, 2009 Share Posted June 27, 2009 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
XxxKills Posted June 27, 2009 Share Posted June 27, 2009 (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 June 27, 2009 by XxxKills Link to comment Share on other sites More sharing options...
James Posted June 27, 2009 Share Posted June 27, 2009 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? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
XxxKills Posted June 27, 2009 Share Posted June 27, 2009 I just wanted the Ip to show up in the box, just for cosmetic appeal I quess. Link to comment Share on other sites More sharing options...
XxxKills Posted June 27, 2009 Share Posted June 27, 2009 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. Link to comment Share on other sites More sharing options...
James Posted June 28, 2009 Share Posted June 28, 2009 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.Round. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now