AutoHotkey Community

It is currently May 27th, 2012, 1:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: InputBox Go to URL
PostPosted: February 27th, 2009, 2:41 am 
I want to create a short cut that opens an input prompt for a url, and sends my browser to that url.

Alternatively, is there an easy way to simply open the browser and automatically highlight the url field?

Here's what I have so far. Unfortunately, the variable doesn't parse properly as a string into the Run command. Any way to fix this?


Code:
#z::
InputBox, url, Go to URL, enter URL,,,,,,,,www.

if ErrorLevel
    MsgBox, CANCEL was pressed.
else
    Run url


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2009, 3:12 am 
Offline

Joined: June 26th, 2008, 3:58 am
Posts: 56
Code:
#z::
InputBox, url, Go to URL, enter URL,,,,,,,,www.

if ErrorLevel
    MsgBox, CANCEL was pressed.
else
    Run %url%


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 5th, 2009, 7:31 pm 
Would there be an easy way to offer a second text field - in the first keep the default www. prefix, and in the second offer a blank field which is parsed into a google search url?

So, essentially the pop-up window would display:

URL www. [TEXTBOX]

Google Search [TEXTBOX]

and use whichever textbox has text in it?

Thanks again!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2009, 7:32 pm 
another option would simply be to launch Run www.google.com if the www. field is blank


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, oldbrother and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group