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 

simple nslookup performing

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



Joined: 27 Nov 2007
Posts: 2

PostPosted: Tue Nov 27, 2007 5:37 am    Post subject: simple nslookup performing Reply with quote

hello everybody,
im very new to autohotkey.(only ever tried scriptwriter--recorder)
now i need it do a very simple task
run nslookup of xp
then popup a inputbox to allow me paste the ip address from clipboard
then give this info to nslookup
afterward giving out the result.
how to do it?
any other way accomplished my goal also appreciated.
Back to top
View user's profile Send private message
Ripper



Joined: 24 Oct 2007
Posts: 17
Location: Germany

PostPosted: Tue Nov 27, 2007 10:48 am    Post subject: Reply with quote

Hir is the prog that you search
Code:

Gui, Add, Edit, x6 y10 w190 h20 vHost,www.autohotkey.com
Gui, Add, Edit, x6 y40 w410 h70 vList,
Gui, Add, Button, x206 y10 w100 h20 gNslookup,Nslookup
Gui, Add, Button, x316 y10 w100 h20 gGuiClose,Exit
Gui, Show, x131 y91 h122 w428,Nslookup
Return

GuiClose:
MsgBox,Coded by Ripp3r]D3[
ExitApp


Nslookup:
GuiControlGet,Host,,host
RunWait, %comspec% /c nslookup %Host% >C:\log2file.txt,,hide
FileRead, HostList, C:\log2file.txt
GuiControl,, List,%HostList%
return



Example input www.autohotkey.com
Outputfile:

Code:

Server:  UnKnown
Address:  192.168.0.1

Name:    www.autohotkey.com
Address:  72.36.162.118
Back to top
View user's profile Send private message
dpz



Joined: 27 Nov 2007
Posts: 2

PostPosted: Tue Nov 27, 2007 12:20 pm    Post subject: Reply with quote

Ripper wrote:
Hir is the prog that you search

thanks a million ton
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