I'm trying to find a shell command that will open Google Chrome with specific x and y coordinates (so that I can set the position of the window when it opens.) Is it possible to do this using command line-arguments?
I need to modify the following command in order to achieve this:
google-chrome http://www.google.com/
Open Chrome Using Command Prompt You can also do the same thing from the “Run” window. Open Run by typing “Run” in the Windows 10 search bar and selecting the “Run” application. Here, type Chrome and then select the “OK” button. The web browser will now open.
Install the downloaded Chrome package. To install Chrome from the downloaded package, use the following command: Type sudo dpkg -i google-chrome-stable_current_amd64. deb and press Enter.
Exit any running-instance of Chrome. Right click on your "Chrome" shortcut. Choose properties. At the end of your "Target:" line add the command-line switch.
When you're using Google's Chrome, there is a shorter way:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Default" --app="data:text/html,<html><body><script>window.moveTo(580,240);window.resizeTo(800,600);window.location='http://www.test.de';</script></body></html>"
Pro:
Con:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With