web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / VBScript using Alt key...
Power Automate
Answered

VBScript using Alt key in PAD

(0) ShareShare
ReportReport
Posted on by 4,558 Super User 2026 Season 1

Is there a way to press Alt -key in VBScript when using Run VBScript? In VBScript syntax that would be %. So if I want to press Alt + F4 it would be: 

SendKeys "%{F4}"
Problem is that PAD gives syntax error because % indicates variable and it expects it probably to have ending %
I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,558 Super User 2026 Season 1 on at

    I actually figured it out. Adding another % solves it.
    Like so: SendKeys "%%{F4}"

    Found the solution here:
    https://powerusers.microsoft.com/t5/General-Power-Automate/Syntax-error-VBScript-from-SAP/m-p/1255444

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard