Help with script to open a link and make it fullscreen

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
adorableteemo
Posts: 1
Joined: 25 Jun 2018, 07:14

Help with script to open a link and make it fullscreen

25 Jun 2018, 07:20

Hey guys, I'm in dire need of help to open a website with just 1 key, my mom loves to watch Indonesian TV online but she can't operate a computer or even a tablet, so I'm wondering if someone can help me write a script that can open a specific website with lets say keyboard button number 1 then make the video fullscreen, then when my mom press 2 it will close the current window and open a new link, the website also regularly ask for login after a certain time, so if there's possibility that can automate the log in for her with 1 button that would be great.

Example:

keyboard button 1: opens https://www.****.com/live/a***, makes it fullscreen

keyboard button 2: opens https://www.****.com/live/r***, makes it fullscreen

Right now, im changing channels for her via TeamViewer, but I can't always help her this way when I'm at work, I've been playing with JitBit macro recorder aswell but I can't seem to get it to do what I wanted, the mouse keeps clicking on other place of the screen even though I've put a really specific coordinates for the mouse to be clicking, please help me and my dear mom find a solution, thank you in advance!
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: Help with script to open a link and make it fullscreen

25 Jun 2018, 12:11

First one (maximizes the window)

Code: Select all

NumpadMult:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
WinGetActiveTitle, activeWindow ; Get name from active window
WinMaximize, %activeWindow%
return

NumpadDiv:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
WinGetActiveTitle, activeWindow ; Get name from active window
WinMaximize, %activeWindow%
return
Second one (goes in fullscreen by pressing f11)

Code: Select all

SetKeyDelay, -1, 100

NumpadMult:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
SendInput, {F11}
return

NumpadDiv:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
SendInput, {F11}
return
Third one (Does both)

Code: Select all

SetKeyDelay, -1, 100

NumpadMult:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
WinGetActiveTitle, activeWindow ; Get name from active window
WinMaximize, %activeWindow%
Sleep, 500 ; Wait 0,5 Seconds
SendInput, {F11}
return

NumpadDiv:: ;(Star on the Numpad)
Run, https://www.google.de ; Open the website
Sleep, 5000 ; Wait 5 Seconds
WinGetActiveTitle, activeWindow ; Get name from active window
WinMaximize, %activeWindow%
Sleep, 500 ; Wait 0,5 Seconds
SendInput, {F11}
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 168 guests