Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all articles
Browse latest Browse all 750

Basic script help

$
0
0
Hi,

I am trying to make a small executable that will invoke the key commands to switch from the desktop to the Metroui in windows 8.

I am using a start menu replacement so the normal win key function for windows 8 has been changed to invoke the start menu in classic shell.

To switch from desktop to MetroUI you need to press winkey+c then hit enter. Someone helped me with the scripting below and told me to use Autoit to compile it to an exe.

That is where I am lost. I am not sure how to proceed or what program I actually need.

her is an example of the script.

[ code='text' ]    ( Popup )
Local $ShellObj = ObjCreate("Shell.Application") $ShellObj.ToggleDesktop() sleep(100) Send("{LWINDOWN}c{LWINUP}") sleep(10) Send("{ENTER}")

Any help would be appriciated. The idea is to have a small exe that I can pin to the task bar and click on whenever I need to switch to Metro (which I hope is seldom).

Viewing all articles
Browse latest Browse all 750

Latest Images

Trending Articles



Latest Images