Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help for Enterkey functionality
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi All,

Can somebody send me the sample script for Enter key functionality.
I have tried with recording but it is not recognizing the enter key functionality. Any help is highly appreciated.

Thanks
Mahesh
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi...u mean sendkeys method?

if yes,

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

WshShell.SendKeys("{ENTER}")
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
thanks for the response and I have tried with the above script but it is not acting as Enter.
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
Use

WshShell.SendKeys "~"

That will work. Let me know if you have issues.
Reply
#5
Solved: 10 Years, 8 Months, 4 Weeks ago
ANS:
Hi,
u can use either of the methods
1)
Code:
Set WshShell=CreateObject("Wscript.Shell")
     WshShell.SendKeys("{ENTER}")

OR
2)
Code:
Set WshShell=CreateObject("Wscript.Shell")
   WshShell.SendKeys "~"

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Gmail: Compose Mail Functionality kishore.gkk 5 9,625 02-15-2013, 08:39 AM
Last Post: newqtp
Exclamation Check for sorting functionality through QTP dol_fin 3 5,776 07-20-2012, 01:25 AM
Last Post: sree.85
Exclamation Functionality bugs... Unleash Rajesh 4 3,551 07-26-2011, 09:32 AM
Last Post: Unleash Rajesh
  Does QTP 9.0 supports drag & drop functionality check for webelement? jyotikrushna 1 3,997 01-13-2010, 01:33 PM
Last Post: 1981.madhu@gmail.com
  How to validate the text box functionality using QTP rajaselvan.d 3 8,030 02-11-2008, 02:42 PM
Last Post: Anees Khan

Forum Jump:


Users browsing this thread: 1 Guest(s)