Micro Focus QTP (UFT) Forums
How to press the space bar with send keys method - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to press the space bar with send keys method (/Thread-How-to-press-the-space-bar-with-send-keys-method)



How to press the space bar with send keys method - Hari Prasad - 04-09-2008

Hi Forum,

I want to press CTRL+Space bar in my application. For CTRL i can use ^ this symbol. But for Space bar i couldn't see any character even in QTP Help also. Is there any body knowing that, how to send the space bar to the send keys method.

Thanks in advance,
Hari Prasad.


RE: How to press the space bar with send keys method - FredMan - 04-23-2008

Use the Type method
Code:
Browser("Untitled").Dialog("Internet Options").WinCheckBox("Internet Explorer").Type " "



RE: How to press the space bar with send keys method - Anshoo Arora - 05-09-2008

Try this:

Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys " "



RE: How to press the space bar with send keys method - Hari Prasad - 05-09-2008

Thanks Anshoo.
I got it in some another way ie., i used Type method something like Type micCtrl &" " and i achieved this. Thanks once again.


RE: How to press the space bar with send keys method - Anshoo Arora - 05-10-2008

Most welcome


RE: How to press the space bar with send keys method - Vijayaragavan.thangam - 06-03-2016

(05-09-2008, 11:22 AM)Hari Prasad Wrote: Thanks Anshoo.
I got it in some another way ie., i used Type method something like Type micCtrl &" " and i achieved this. Thanks once again.

Thanks Hari Prasad,

Its working fine