Jump to content

Would like a script for launching a website via symbolic link on my desktop


Recommended Posts

Hello everyone,

I could use some help with the following: 
I'm a speech recognition user and recently I've started to use AutoIt for additional scripting because sometimes it works faster. 
I would like to create an AutoIt script that will open the Chrome link on my desktop which is a a symbolic link, so that the Chrome cache is on my Ram drive:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-dir="A:\Browser Cache"

Next I want to send the website address, in this case: https://autochords.com/ (with SendKeys) to the address bar.
Then another SendKeys to send Enter.

I want to use this script when I'm working on my girlfriend's computer, where speech recognition isn't installed.

I could use ShellExecute ("Chrome", "https://autochords.com/") but then it won't run via my ram drive.

I am a Dragon NaturallySpeaking user. The program has a scripting language similar to VBA. In Dragon the command is as follows:

HeardWord "open","chrome" ; HeardWord acts as if I literally said "open Chrome" this command opens any desktop shortcut no matter which window I'm working in.
Wait 1500 
SendKeys "https://autochords.com/"
SendKeys "{Enter}"; these last three lines are similar to AutoIt language I think.....

Any help would be appreciated.

Rob


 

Link to comment
Share on other sites

I got it to work, at least the launching of the Chrome Ink. The SendKeys part is not a problem I can insert that later.

Run(@ComSpec & ' /c "Chrome.lnk"', @DesktopDir, @SW_HIDE)

 

Edited by dilligence
Needed to test some more
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...