Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key of Spacebar for Send keys method???
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Sad 
Hii all...

Can any one tell me dat wat would be the key for spacebar For send keys method???Actually i need to Check a CheckBox on SmartGWT application which is being identified as an Image object. Here .Click is not a good solution, and "On" or "Off" will not work as its an Image object.

So I have decided to use Send Keys method after taking the focus on it. I already tried "{SPACE}","{SPACEBAR}", "{SPC}".....but nothing is working....

As this is a very simple qstion(i guess so) i hope dat i'll be getting help as soon as possible...

Any Better suggestion instead of using Send Keys method will also be very much appreciated....

Drop me a mail on:: souvikghosh.diatm@gmail.com

------------
Thanx.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Try SendKeys.Send("{SPACE}");
or SendKeys.Send("{" "}");

Regards,
Sankalp
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Boss thanx for ur suggestion but i have already tried SPACE and now i hv tried both wat u hv written bt none of them working...its getting Wrong number of property or value error....


Can u plzz tell me d exact syntax....


-------------
Thanx.
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Try this below code it should work, if not let me know.
Code:
Dim objDevRply
Set objDevRply = CreateObject("Mercury.Devicereplay")
objDevRply.PressKey 57
Thanks,
SUpputuri
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanx for ur suggestion supputuri .....Ur method is working properly...


Bt I have already used Send Keys method....
And the syntax for that is obj.SendKeys " "

It also working good for my case....


Thanx for ur precious help.....


------------
Thanx.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to press the space bar with send keys method Hari Prasad 5 25,214 06-03-2016, 10:47 AM
Last Post: Vijayaragavan.thangam
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,530 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed
  Postmessage function in QTP for simulating Printscreen key does not work steelbird 3 5,818 07-11-2013, 03:27 PM
Last Post: vinod123
  Unable to send an email from Outlook which is already opened as draft attiliv 0 2,237 03-24-2013, 11:14 AM
Last Post: attiliv
  send arguments to qtp hadar 0 1,960 02-04-2013, 10:15 PM
Last Post: hadar

Forum Jump:


Users browsing this thread: 1 Guest(s)