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

Notifications

Announcements

Community site session details

Community site session details

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

VBScript using Alt key in PAD

(0) ShareShare
ReportReport
Posted on by 4,204 Super User 2025 Season 2

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,204 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard