Skip to content

Instantly share code, notes, and snippets.

@regnerjr
Created December 21, 2012 14:43
Show Gist options
  • Save regnerjr/4353215 to your computer and use it in GitHub Desktop.
Save regnerjr/4353215 to your computer and use it in GitHub Desktop.
Written for Linux Autokey. Prompts for a website then opens that website in you favorite browser.
#Launches specified Website
#Press Hotkey type in web address then goes to that page
siteToVisit=dialog.input_dialog(title="Enter a website", message='', default='google.com')
system.exec_command("/usr/bin/iceweasel", getOutput=False)
window.wait_for_focus("Websites - Iceweasel", timeOut=5)
keyboard.send_keys("<ctrl>+l")
keyboard.send_keys(siteToVisit[1])
keyboard.send_keys("<enter>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment