Solved Is there any way of opening charms bar programmatically?

oriba

New Member
Messages
6
Hi
Is there any way of opening the charms bar programmatically?
I've got a simple vbs script that uses the GUID tor searching apps, which then uses "send keys" to find a specific app and open it. The app is just a photo gallery I use in place of my screensaver. The last step I want to add to the script is to open the charms bar (just so I have my app running and over the top I can see the clock.
Any ideas? I currently just trigger the vbs on idle via task scheduler.
 

My Computer

System One

  • OS
    windows 8 pro
Hello Oriba, and welcome to Eight Forums.

You could use "send keys" for Windows + C keys to open the Charms bar, but it will open on the desktop.

Hope this helps, :)
Shawn
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Hi
Is there any way of opening the charms bar programmatically?
I've got a simple vbs script that uses the GUID tor searching apps, which then uses "send keys" to find a specific app and open it. The app is just a photo gallery I use in place of my screensaver. The last step I want to add to the script is to open the charms bar (just so I have my app running and over the top I can see the clock.
Any ideas? I currently just trigger the vbs on idle via task scheduler.
_____________________________________________________________________

Just for my own edification why would you want to open charms "problematically" i.e, with problems and difficulty when it is so elementary, simple and easy ???
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    HP
Thanks for both posts - firstly, I want to do it for when I'm not there - the PC is in the lounge and when it would otherwise go to screensaver I want instead to trigger a slideshow Metro application. I don't want to use the normal "my pictures slideshow" because I want whoever is there to be able to continue to view the slideshow even if they nudge the mouse or keyboard.

My vbs script will launch my chosen app on idle via the scheduler, and when it is running of course I could just press the windows key plus c to open the charms so that the clock is overlaid (it's the clock I want really, whilst the slideshow is running). I just want it to reach that state automatically, rather than requiring user intervention. So if someone wanders into the room, the slideshow is running but they can also glance at the clock ( the other solution is of course a clock on the wall!)

Secondly, I'm struggling with "send keys" and the windows key. "^{ESC}" is all I can find for the windows key, but it isn't exactly the same. It's more of a toggle between the desktop and the Metro start screen. So if I'm already in Metro then it just flicks me back to desktop, which is not what I want. I was hoping that someone knew how to display the charms in a different way, e.g. via a GUID.
 

My Computer

System One

  • OS
    windows 8 pro
I take it that your script works apart from this feature. If so, it might be helpful to post the script you have so that we can have a look and see if we can come up with the answer (if that is indeed possible in this case).
 

My Computer

System One

  • OS
    Windows 8.1 Pro RTM x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dwarf Dwf/11/2012 r09/2013
    CPU
    Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz)
    Motherboard
    ASRock Z77 Extreme4-M
    Memory
    4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
    Graphics Card(s)
    MSI GeForce GTX770 Gaming OC 2GB
    Sound Card
    Realtek High Definition on board solution (ALC 898)
    Monitor(s) Displays
    ViewSonic VA1912w Widescreen
    Screen Resolution
    1440x900
    Hard Drives
    OCZ Agility 3 120GB SATA III x2 (RAID 0)
    Samsung HD501LJ 500GB SATA II x2
    Hitachi HDS721010CLA332 1TB SATA II
    Iomega 1.5TB Ext USB 2.0
    WD 2.0TB Ext USB 3.0
    PSU
    XFX Pro Series 850W Semi-Modular
    Case
    Gigabyte IF233
    Cooling
    1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
    Keyboard
    Microsoft Comfort Curve Keyboard 3000 (USB)
    Mouse
    Microsoft Comfort Mouse 3000 for Business (USB)
    Internet Speed
    NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/sec (O2)
    Browser
    IE 11
    Antivirus
    Avast! 8.0.1497 MalwareBytes 1.75.0.1300
    Other Info
    Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
    Lexmark S305 Printer/Scanner/Copier (USB)
    WEI Score: 8.1/8.1/8.5/8.5/8.25
    Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Here's the script - it's probably crude (I'm no coder) but it does work:

Set objShell = WScript.CreateObject("WScript.Shell")
'now open the apps search in Metro...
objShell.run("%windir%\explorer.exe shell:::{2559a1f8-21d7-11d4-bdaf-00c04f60b9f0}")
WScript.Sleep 2000
objShell.SendKeys "Picture Frame Slideshow"
WScript.Sleep 1000
objShell.SendKeys "{ENTER}"
'here's where I want to add the command to overlay the charms.
'objShell.SendKeys "^{ESC}C" doesn't work - it just toggles me back to the desktop
 

My Computer

System One

  • OS
    windows 8 pro
Try this to see how it works for you. It'll open Charms on the Start screen instead of the desktop.


Code:
[SIZE=3]Set objShell = WScript.CreateObject("WScript.Shell")

 objShell.run("%windir%\explorer.exe shell:::{2559a1f8-21d7-11d4-bdaf-00c04f60b9f0}")
 WScript.Sleep 2000

 objShell.SendKeys "Picture Frame Slideshow"

 WScript.Sleep 1000

 objShell.SendKeys "{ENTER}"

objShell.SendKeys "^{ESC}"

objShell.SendKeys "#c"[/SIZE]


objShell.SendKeys "^{ESC}"
(Opens Start screen)

objShell.SendKeys "#c" (Windows + C to open Charms)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Thanks for the suggestion - but no joy
I even tried with adding a couple of pauses before each line you have suggested
Without pauses, it was as if the lines were not there. With pauses, it returns to the start screen and then just behaves as if the user started typing "#C" - i.e. it opens a search to search for "#C"

I had wondered about "#" for the Windows key with "send keys" but it doesn't seem to work. Perhaps it is for a different scripting language. I'd read somewhere that the windows key was introduced after vbs was. I've also tried "{LWIN}" but again, no joy.

That's why I've headed off down the route of the GUID, because it was the only way that works to get a particular part of the Metro interface to display. Basically "Send Keys" should work if only the windows key "code" could be identified.

The other thing I was wondering when I originally posting was if there was some totally different route to what I was trying to achieve - in case I was banging my head against a brick wall for no reason other than I don't know nearly as much as I need to in order to get the results I want
 

My Computer

System One

  • OS
    windows 8 pro
I was using "#C" with AutoIt. You might try "^{ESC}C" instead with the last line.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
I tried "^{ESC}C" already but it doesn't do it either. Thanks though.
I hadn't come across AutoIt before, but having just read their homepage it looks v useful. I think I ought to be able to use that to code what I want, turn that into a .exe, and then just trigger that instead of my vbs script. Thanks for the pointer to AutoIt (in advance obviously - but I'll post back the result)
 

My Computer

System One

  • OS
    windows 8 pro
I've had a quick look at this, and couldn't come up with anything that doesn't require a 3rd party program. So it looks like Shawn's suggestion of using AutoIt will be the way to go.
 

My Computer

System One

  • OS
    Windows 8.1 Pro RTM x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dwarf Dwf/11/2012 r09/2013
    CPU
    Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz)
    Motherboard
    ASRock Z77 Extreme4-M
    Memory
    4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
    Graphics Card(s)
    MSI GeForce GTX770 Gaming OC 2GB
    Sound Card
    Realtek High Definition on board solution (ALC 898)
    Monitor(s) Displays
    ViewSonic VA1912w Widescreen
    Screen Resolution
    1440x900
    Hard Drives
    OCZ Agility 3 120GB SATA III x2 (RAID 0)
    Samsung HD501LJ 500GB SATA II x2
    Hitachi HDS721010CLA332 1TB SATA II
    Iomega 1.5TB Ext USB 2.0
    WD 2.0TB Ext USB 3.0
    PSU
    XFX Pro Series 850W Semi-Modular
    Case
    Gigabyte IF233
    Cooling
    1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
    Keyboard
    Microsoft Comfort Curve Keyboard 3000 (USB)
    Mouse
    Microsoft Comfort Mouse 3000 for Business (USB)
    Internet Speed
    NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/sec (O2)
    Browser
    IE 11
    Antivirus
    Avast! 8.0.1497 MalwareBytes 1.75.0.1300
    Other Info
    Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
    Lexmark S305 Printer/Scanner/Copier (USB)
    WEI Score: 8.1/8.1/8.5/8.5/8.25
    Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Thanks for the help - I've got working what I wanted using AutoIt along the lines described in my earlier post.
 

My Computer

System One

  • OS
    windows 8 pro
Great news Oriba. :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Back
Top