Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $chromePath = "C:\Program Files\Google\Chrome\Application\chrome.exe"
- $x = 0
- $y = 0
- $width = 500
- $height = 500
- $url = "https://autoitscript.com/"
- ;~ Run(StringFormat('"%s" --new-window --window-position=%d,%d --window-size="%d,%d" "%s"', $chromePath, $x, $y, $width, $height, $url))
- Run(StringFormat('"%s" --new-window --app="data:text/html,<html><body><script>window.moveTo(%d,%d);window.resizeTo(%d,%d);window.location=''%s'';</script></body></html>"', $chromePath, $x, $y, $width, $height, $url))
- Sleep(1000)
- $x = 500
- $y = 0
- $width = 700
- $height = 500
- $url = "https://google.com/"
- ;~ Run(StringFormat('"%s" --new-window --window-position=%d,%d --window-size="%d,%d" "%s"', $chromePath, $x, $y, $width, $height, $url))
- Run(StringFormat('"%s" --new-window --app="data:text/html,<html><body><script>window.moveTo(%d,%d);window.resizeTo(%d,%d);window.location=''%s'';</script></body></html>"', $chromePath, $x, $y, $width, $height, $url))
Advertisement
Add Comment
Please, Sign In to add comment