endlesslove_1998

Start chrome with custom position and size

Sep 27th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.28 KB | None | 0 0
  1.  
  2.  
  3. $chromePath = "C:\Program Files\Google\Chrome\Application\chrome.exe"
  4.  
  5. $x = 500
  6. $y = 50
  7. $width = 700
  8. $height = 500
  9. $url = "https://autoitscript.com/"
  10.  
  11. Run(StringFormat('"%s" --window-position=%d,%d --window-size="%d,%d" "%s"', $chromePath, $x, $y, $width, $height, $url))
Advertisement
Add Comment
Please, Sign In to add comment