Web Images News Groups Scholar Blogs Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How do i send CTRL + * in the sendkeys method
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Harish_Sasikumar  
View profile  
 More options Oct 27, 4:05 pm
Newsgroups: microsoft.public.scripting.vbscript
From: Harish_Sasikumar <harishsasiku...@gmail.com>
Date: Tue, 27 Oct 2009 09:05:41 -0700 (PDT)
Local: Tues, Oct 27 2009 4:05 pm
Subject: How do i send CTRL + * in the sendkeys method
Hi,

I am required to use keystrokes for the purpose of Test automation

Set oShell = CreateObject("WScript.Shell")
Please correct me on what should be used for (CTRL + *)?
Would the following workout?
oShell.SendKeys("^*")  or oShell.SendKeys("^(*)") ?

Regards,
Harish


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Randall  
View profile  
 More options Oct 27, 4:31 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "Paul Randall" <paulr...@cableone.net>
Date: Tue, 27 Oct 2009 09:31:02 -0700
Local: Tues, Oct 27 2009 4:31 pm
Subject: Re: How do i send CTRL + * in the sendkeys method

"Harish_Sasikumar" <harishsasiku...@gmail.com> wrote in message

news:22b81c73-7e8d-4c03-8f2d-52e887d8240a@s15g2000yqs.googlegroups.com...

> Hi,

> I am required to use keystrokes for the purpose of Test automation

> Set oShell = CreateObject("WScript.Shell")
> Please correct me on what should be used for (CTRL + *)?
> Would the following workout?
> oShell.SendKeys("^*")  or oShell.SendKeys("^(*)") ?

Have you tried looking for information in the scripting help file,
script56.chm?
Try this link (its all one line), but substitute the path to your help file:
mk:@MSITStore:C:\Documents%20and%20Settings\aaPaul\Desktop\Vbsedit\script56 .chm::/html/4b032417-ebda-4d30-88a4-2b56c24affdd.htm

If you don't have the help file on your system, download it through the
downloads link at msdn.microsoft.com; note that you may have to right click
on the downloaded help file and choose 'unblock' before it works right.

-Paul Randall


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harish_Sasikumar  
View profile  
 More options Oct 28, 8:52 am
Newsgroups: microsoft.public.scripting.vbscript
From: Harish_Sasikumar <harishsasiku...@gmail.com>
Date: Wed, 28 Oct 2009 01:52:20 -0700 (PDT)
Local: Wed, Oct 28 2009 8:52 am
Subject: Re: How do i send CTRL + * in the sendkeys method
On Oct 27, 4:31 pm, "Paul Randall" <paulr...@cableone.net> wrote:

Yes, i did go through msdn but it never specifically gave an example
to send the Ctrl and asterisk combination
if u have noted, asterisk is placed on the upper part,below it is
8.For which the sendkey method doesnt take asterisk.I did try "^8", it
worked.
But i am not sure if its the correct approach.

-HS


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pegasus [MVP]  
View profile  
 More options Oct 28, 11:01 am
Newsgroups: microsoft.public.scripting.vbscript
From: "Pegasus [MVP]" <n...@microsoft.com>
Date: Wed, 28 Oct 2009 12:01:51 +0100
Local: Wed, Oct 28 2009 11:01 am
Subject: Re: How do i send CTRL + * in the sendkeys method

"Harish_Sasikumar" <harishsasiku...@gmail.com> wrote in message

news:ff936c6f-af0f-4bc4-9e9a-f32f1fdf6895@n22g2000yqh.googlegroups.com...
On Oct 27, 4:31 pm, "Paul Randall" <paulr...@cableone.net> wrote:

Yes, i did go through msdn but it never specifically gave an example
to send the Ctrl and asterisk combination
if u have noted, asterisk is placed on the upper part,below it is
8.For which the sendkey method doesnt take asterisk.I did try "^8", it
worked.
But i am not sure if its the correct approach.

-HS

=============

Here is the relevant text from script56.chm:

To send keyboard characters that are comprised of a regular keystroke in
combination with a SHIFT, CTRL, or ALT, create a compound string argument
that represents the keystroke combination. You do this by preceding the
regular keystroke with one or more of the following special characters:

Key  Special Character
SHIFT +
CTRL ^
ALT %

As you see, it says specifically "precede the regular keystroke with ^",
which is what you appear to have found out by trial and error.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Oct 28, 12:19 pm
Newsgroups: microsoft.public.scripting.vbscript
From: Tom Lavedas <tglba...@cox.net>
Date: Wed, 28 Oct 2009 05:19:51 -0700 (PDT)
Local: Wed, Oct 28 2009 12:19 pm
Subject: Re: How do i send CTRL + * in the sendkeys method
On Oct 28, 4:52 am, Harish_Sasikumar <harishsasiku...@gmail.com>
wrote:

If it worked, then it is right.  The only arbiters of right and wrong
are the VBS compiler and the interpreter.  All other (human)
authorities are immaterial. ;-)
_____________________
Tom Lavedas

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Randall  
View profile  
 More options Oct 28, 2:40 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "Paul Randall" <paulr...@cableone.net>
Date: Wed, 28 Oct 2009 07:40:15 -0700
Local: Wed, Oct 28 2009 2:40 pm
Subject: Re: How do i send CTRL + * in the sendkeys method

"Harish_Sasikumar" <harishsasiku...@gmail.com> wrote in message

news:ff936c6f-af0f-4bc4-9e9a-f32f1fdf6895@n22g2000yqh.googlegroups.com...
On Oct 27, 4:31 pm, "Paul Randall" <paulr...@cableone.net> wrote:

Yes, i did go through msdn but it never specifically gave an example
to send the Ctrl and asterisk combination
if u have noted, asterisk is placed on the upper part,below it is
8.For which the sendkey method doesnt take asterisk.I did try "^8", it
worked.
But i am not sure if its the correct approach.

-HS
-------------------------------------------------------------

In the scripting help file's index tab, type in the word processid, and hit
enter.
The page should have a VBScript that uses the sendkeys method to run
calculator and do control-C to copy the calculator's result to the
clipboard, and then uses sendkeys to do control-V to paste the clpboard
contents into Notepad.  The example demonstrates that for most shifted
characters (such as ~ ; asterisk works the same way), you can type the
shifted character into the string to be sent.  You might want to set up a
script to type all the unshifted and shifted characters to Notepad just to
understand how it works.

Note too that if some window pops up while your script is running, that
window will become the active window, an it will get those keystrokes.
Sendkeys is not a reliable way to interact with a window unless you have a
way to prevent other windows from being activated.

Let us know if you need further help.

-Paul Randall


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harish_Sasikumar  
View profile  
 More options Oct 30, 8:51 am
Newsgroups: microsoft.public.scripting.vbscript
From: Harish_Sasikumar <harishsasiku...@gmail.com>
Date: Fri, 30 Oct 2009 01:51:19 -0700 (PDT)
Local: Fri, Oct 30 2009 8:51 am
Subject: Re: How do i send CTRL + * in the sendkeys method
On Oct 28, 2:40 pm, "Paul Randall" <paulr...@cableone.net> wrote:

Hi all,

Appreciate everyones help.It has been informative and useful.

-HS


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google