Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am able to take remote control of any virtual machine using AutoHotKey . I want to run ipconfig command on remote machine. It can be performed using mouse clicks, but I want to do it using keyboard hotkeys, can anybody help me in doing so.

share|improve this question
1  
Are you running AutoHotkey on the host or in the virtual machine? – iglvzx Feb 13 '12 at 17:46
    
I am using AutoHotKey on the host. – ptb Feb 14 '12 at 10:08

Can you just Windows+R, cmdenter, ipconfig

share|improve this answer

Since you asked for an AutoHotkey solution, here is a script which strictly follows your example:

;Hotkey, e.g. #i::
Run, cmd
WinWaitActive, ahk_class ConsoleWindowClass
Send, ipconfig{Enter}
Exit
share|improve this answer
    
Thank you. Can you please tell me how to define ahk_class ConsoleWindowClass in ahk script? does this class define information about remote machine. and Will it help to read files on remote machine? – ptb Feb 27 '12 at 8:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .