Skip to main content

ThinkVantage Custom Scripts

ThinkVantage Button (X1 Carbon)
If you own a Lenovo laptop, chances are that you have a "ThinkVantage" button on your keyboard. It's that
thin rectangle button on the top left of your keyboard (actual size and location depends on your laptop model).

You first have to do a registry edit to change the button from the default Lenovo software. Please refer to this link for instructions. You'd have to change the registry entry to point to the following BAT file I wrote.

Here are two files that I wrote to turn that button into a custom script for running a Google voice search. The actual usability of the script depends on your laptop and how quickly you can open a browser. I purposely put a long sleep timer on the VBS script to account for slower startup times on your browser. If you find that you are opening a new browser and waiting too long before the voice search starts, then feel free to lower the 5000 to a smaller number.

The script.bat file which points to the VBS file below. For some reason you can't just directly point to a VBS file in the registry so I had to work around it by using this BAT file.
@echo off
wscript "C:\script.vbs"
The script.vbs file. Opens a new browser, navigates to Google, pauses for a bit, then presses Ctrl+Shift+. to activate the voice search command.
Dim iURL
Dim objShell
iURL = "www.google.com"
set objShell = CreateObject("WScript.Shell")
objShell.run(iURL)
WScript.Sleep 5000
objShell.AppActivate "Chrome"
objShell.SendKeys "^+."

On a side note, what's the fastest way you can think of to search Google?

Comments

Popular posts from this blog

Jooble

Yesterday, I received an incredibly friendly email from an anonymous person who claimed to have read my blog and "loved it." Of course, because my blog is public and anybody can comment anonymously, I was a bit skeptical of this email. Yet, seeing as how this was the first ever "fan mail" I've ever received, I read the email. It wasn't fan mail, but it was an email from a person who works for a website called " Jooble ." Interested by his genuineness and heartfelt compliments of my blog, I took a quick glance at the website. Here's what he had to say about Jooble: Jooble operates in 45+ countries, so if you would like to find a job in other locations you may try to search jobs in: Argentina , Australia , Austria , Belgium , Belarus , Brazil , Canada , Chile , China Colombia , Czech Republic , Denmark , Spain , Finland , France , Germany , Greece , Hong Kong , Hungary , Italy , India , Indonesia , Ireland , Japan , Kazakhstan , Mexi...

Unity Game Developer

Been a long time since I've blogged...life tends to do this thing of getting in the way, haha. Anyways, I've been recently taking a Unity game developer class . Here are some GIFs of what I've been learning-- Day 1 - Learning to move a ball with arrow keys Day 2 - Using sprites and learning about physics Day 3 - Flappy Bird clone complete! Day 4 - Learning how to make a top down space shooter Day 5 - Adding meteors Day 6 - Using mouse to turn Day 7 - Shooting nukes and adding menus Day 8 - 3D Terrain building and character controllers Day 9 - Playing with built-in 3D models Day 10 - Learning about animations and 3D physics Day 11 - Starting my final project (4orner 3D) On a side note, if you notice, that last GIF is a 3D version of my hit  game from 2 years ago-- 4orner !

Making a Board Game

Wanted to update my blog with what I've been up to recently. I made a board game and have been working on that full time for the past 3 or so months. The name is still WIP but it's tentatively set as "Our Modern Lives." It's a tile/card based map-building game. The goal is to achieve "Success" and "Happiness" before anyone else can by building your own route. Here are a few pictures of the current build (v1.20 Beta): On a side note, follow me on Instagram for more (semi-frequent) updates!