Hi is it possable to hide cmd window from appearing when i use
f9::run ipconfig/release thanks again for quick responce
Hi is it possable to hide cmd window from appearing when i use
f9::run ipconfig/release thanks again for quick responce
Please read the documentation for the Run command.
http://i.imgur.com/wEtSvp5.png
... And please pay attention to where you post. Questions go in the Support section not the section for completed programs.
rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .
Try this
run cmd.exe ,,HideHope it helps
so it would look like this f9::run cmd.exe ,,hide ipconfig/release
Try this
Run, cmd.exe, , Hide, VarPID Sleep, 100 ControlSend, , ipconfig /release {Enter}, ahk_pid %VarPID% Sleep, 5000 Process, Close, %VarPID%
Edit: Added the last two lines to close, otherwise the process stays open. I don't think WinClose would work because the window is hidden.
instead cmd.exe or maybe command.exe , can use %comspec% /c ( %comspec% /k )
example run DOS hidden , write to file (desktop) then open text-file
EDIT : @Kon, good example , send to hidden DOS window
f9:: f1=%a_desktop%\%a_now%_ipconfig.txt runwait,%comspec% /c ipconfig /all >"%f1%",,hide run,%f1% return
example, control if sent to hidden window
/* example to send hidden DOS Window DATE format german = DD-MM-YY send new date (DATE+1) to hidden DOS then 3 seconds later open a new DOS window and correct DATE */ #singleinstance,force F9:: DetectHiddenWindows, On CurrentDateTime = CurrentDateTime += 1, Days FormatTime, New, %CurrentDateTime%, dd-MM-yy FormatTime, Now, %a_now%, dd-MM-yy Run,%comspec% /k, , hide, pid2 WinWait, ahk_pid %pid2% ControlSend, ,date`n%new%`ndate/t`n, ahk_pid %pid2% sleep,3000 run,%comspec% /k date /t`n,,,pid3 WinWaitactive, ahk_pid %pid3% ControlSend, ,date`n%now%`n, ahk_pid %pid3% ;-- close hidden DOS window -- Process, Close, %pid2% Process, WaitClose, %pid2% exitapp
The correct answer to your question is:
F9::Run, ipconfig /release, ,Hide
yes you're right
and this only if you want see what happens ( /k keeps DOS window open )
F8::Run,%comspec% /k ipconfig /all
yes you're right
and this only if you want see what happens ( /k keeps DOS window open )
F8::Run,%comspec% /k ipconfig /all
Thx guys this is a great help just what i needed thx too all of you cheeers
Thx guys all helpful stuff! much appreciated thank you all for your help
Hi is there a way to combine f9::Run, ipconfig /release, ,Hide f8::Run, ipconfig /renew, ,Hide with just one hotkey f8 thank for any help
f8:: Run, ipconfig /release, ,Hide sleep 1000 Run, ipconfig /renew, ,Hide returnHope it helps
when making multiline hotkeys you can't have anything on the same line as the hotkey
so like this maybef8:: Run, ipconfig /release, ,Hide sleep 1000 Run, ipconfig /renew, ,Hide returnHope it helps
Hi blackholyman il give this a try many thx for your quick responce cheers m8