Command line, CMD - command-line

Is it possible to operate. Exe application from command promt.?
I have a problem where i have tologin to my window application from command promt.
I can open the application but ubable to click file menu(login, save, etc).

You should be able to alt + f when the exe application window is selected

Related

How to run edit, reload commands of an ahk file via a windows shortcut or command line?

I want to be able to launch the script file .ahk in edit mode (in sublime), reload, pause etc script via a windows shortcut.
Basically I want some of the following commands, (edit, reload):
Is there a flag like /e or --edit --reload that is specified in the windows shortcut editor dialog & command line so as to launch the any of above commands:
Thanks
There are built-in commands for both Reload and Edit
You can just assign hotkeys to the commands, to execute them directly inside of the code:
^!r::Reload ; Ctrl+Alt+R
^!e::Edit ; Ctrl+Alt+E

How to launch .ahk file when PC starts

^B::
Send, Hello World
return
This is my script-file made for AutoHotKey. How can I launch this file automatically when my PC starts? Now it is is all fine, but after reboot I've to launch it manually. Thanks!
You’re gonna have to add it to your startup programs
Press Windows key + R, paste this file path in there and press enter: %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
Right click -> New -> Shortcut
In the shortcut window click on “Browse” and then select your AHK file
to do that:
1. press win+r
2. type shell:startup
3. copy paste your ahk file from the folder to the place which just opened
… and you‘re done!
You can Use the Windows Registry.
It Will Launch the .ahk File automatic after rebooting your System.
Try this AHK Code:
c:\examples\example1.ahk
^B::
Send, Hello World
return
^r::
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Run,example1,"c:\examples\example1.ahk" /background
return
You can press (Ctrl + r) it will put the values into the Registry.
Now you are ready to go. Everytime if you Start your PC, it will Automatic run the example1.ahk File.

Install4j : Executable writing to console return back if we press enter a second time

When Executable writes to console (using the -console option), if I press "enter" a second time, it bring me back to the command prompt even though Executable is still running in the background. How we can force it to output everything to the console and only when done should it return to command prompt?
The installer on windows is a GUI executable, it cannot make the console wait for the process to finish. There are two ways around this:
1) Select the "Windows console executable" property of the installer on the Installer->Screens & Actions step. Drawback: When starting the installer from the explorer, a console will be opened.
2) Start the installer on the command line like this:
cmd /c installer.exe -c

Cmd.exe no popup

I have to run cmd / c from a program, run the start command xx.exe, and I capture the result (there xx.exe?). until everything is right, however, remains open the console with the error popup. how can I close the console with the error?
Usually win32 applications will close the command prompt after execution. If this isn't the case with what you're trying to run, you could:
Run it from Windows "Run" option (Windows button+R) than your program name and path in prompt.
Run it from a batch file, like so:
runMe.bat:
START "" "C:\windows\notepad.exe"
EXIT`
Than just run runMe.bat from wherever. Notice the 'exit' command that closes the command prompt after execution.
Read more about batch files, the start command, and this issue here, and there.
Good luck!

full screen mode (25*80) command line scripting

when you run a script (such as vbscript) from 25*80 (full screen mode of dos prompt) and that your script call a windows application (such as notepad), at the end of the operation, focus remains on the desktop (although "command prompt" at the taskbar minimized and wait for only one "{enter}" to go back in 25*80 full screen command prompt)
how can i do that? (go back to full screen command prompt at the end of the call windows app. from my script)
look at shell command START
Make your command prompt shortcut in fullscreen mode (25*80) by setting property & dbl click on it.
At the prompt enter start /b notepad, and then push enter and see what happen. How can you return to command prompt in full screen mode and how to automate it?