Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance, Force
- SetWorkingDir %A_WorkingDir%
- NCMDIndex := 0
- loop, read, Data\CMD.ls
- {
- NCMD%A_Index% := A_LoopReadLine
- NCMD0 = %A_Index%
- }
- Loop,%NCMD0%
- List .= NCMD%A_Index% . "|"
- Gui, Destroy
- Gui, Color, ECF4FC
- Gui, -Caption +LastFound +AlwaysOnTop
- Gui, Font, s10 cRed Times New Roman Bold
- Gui, Add, DropDownList, x2 w800 vNircmdchoice gRun2, %List%
- Gui, add, edit, r1 x2 w800 vRun,
- Gui, Font, s10 cRed, Times New Roman Bold
- Gui, Add, Button, x200 y60 gSubmit_All,NIR-COMMANDS
- Gui, Add, Button, x400 y60 gSubmit_All2,CMD-COMMANDS
- Gui, Show, Noactivate x60 y0 w805 h85, MacroBar
- Run2:
- Gui,Submit, Nohide
- Guicontrol,,Run,%Nircmdchoice%
- return
- Submit_All:
- Gui,Submit, Nohide
- Run, nircmd.exe %Run%
- return
- Submit_All2:
- Gui,Submit, Nohide
- Run, %comspec% /c %Run%,,hide
- return
- #R::Reload
- #S::Suspend
- #P::Pause
- ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement