473,657 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automation of key strokes

Hello,

In Excel VBA, using SendKeys in a Sub procedure with a shortcut
running the Sub/macro, I can replace a users's fingers and press keys
for him. How can I do this in Access?

I would like to assign a shortcut key combination, such as Ctrl+e to
the key sequence F10+V+Q.

How do I do that?

Cheers.

Marc R. Bertrand
mr*@goalseek.ne t
www.goalseek.net
Nov 12 '05 #1
2 10437
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Access also has SendKeys. From Access Help article "SendKeys
Statement": Syntax: string[, wait]

string Required. String expression specifying the keystrokes to send.

wait Optional. Boolean value specifying the wait mode. If False
(default), control is returned to the procedure immediately after the
keys are sent. If True, keystrokes must be processed before control is
returned to the procedure.

Read the help article for more info.

You don't say where you want this "macro" to run from. If from a form,
see the help article on "KeyPress Event" which describes how to capture
the key combinations.

HTH,

MGFoster:::mgf
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP2eZnYechKq OuFEgEQKabwCfQw VrP1TCGgJ7vXd4n NcEmP1Ax9gAoOfY
x4veXWJAygDbHT3 OdKY0kSFW
=DQi0
-----END PGP SIGNATURE-----
"Marc R. Bertrand" wrote:

Hello,

In Excel VBA, using SendKeys in a Sub procedure with a shortcut
running the Sub/macro, I can replace a users's fingers and press keys
for him. How can I do this in Access?

I would like to assign a shortcut key combination, such as Ctrl+e to
the key sequence F10+V+Q.

How do I do that?

Cheers.

Marc R. Bertrand
mr*@goalseek.ne t
www.goalseek.net


Nov 12 '05 #2
Hi,

I have figured out a scheme that works just fine to toggle between SQL
view and Datasheet view. I am practicing my SQL and I run, as you can
imagine, all sorts of queries, inspecting the results in Datasheet
view.

I use a quick two-strike combination to go from SQL view to Datasheet
view:
I do Ctrl+r using an AutoKeys macro with ^r for name and OpenQuery for
action.
But I don't really have a quick way to go from Datasheet view to SQL
view. All I have figured out so far is a key combination that simply
uses the menu: Alt+v+q.

Perhaps with SendKeys I could build a second shortcut combination to
go from Datasheet view to SQL view. Unless you know of a way that
doesn't use sendkey.
(I read a thread that suggested just that, but it didn't work).

Cheers.

Marc Bertrand

MGFoster <mg***@earthlin k.net> wrote in message news:<3F******* ********@earthl ink.net>...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Access also has SendKeys. From Access Help article "SendKeys
Statement": Syntax: string[, wait]

string Required. String expression specifying the keystrokes to send.

wait Optional. Boolean value specifying the wait mode. If False
(default), control is returned to the procedure immediately after the
keys are sent. If True, keystrokes must be processed before control is
returned to the procedure.

Read the help article for more info.

You don't say where you want this "macro" to run from. If from a form,
see the help article on "KeyPress Event" which describes how to capture
the key combinations.

HTH,

MGFoster:::mgf
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP2eZnYechKq OuFEgEQKabwCfQw VrP1TCGgJ7vXd4n NcEmP1Ax9gAoOfY
x4veXWJAygDbHT3 OdKY0kSFW
=DQi0
-----END PGP SIGNATURE-----
"Marc R. Bertrand" wrote:

Hello,

In Excel VBA, using SendKeys in a Sub procedure with a shortcut
running the Sub/macro, I can replace a users's fingers and press keys
for him. How can I do this in Access?

I would like to assign a shortcut key combination, such as Ctrl+e to
the key sequence F10+V+Q.

How do I do that?

Cheers.

Marc R. Bertrand
mr*@goalseek.ne t
www.goalseek.net

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4949
by: Al Bahr | last post by:
H I need to combine Ink strokes with the background image into a bit map. Would appreciate any help Thank A
3
5649
by: Paulers | last post by:
Hello, I need to emulate keyboard strokes from a console application. The console application monitors a textfile and when something is matched in a text file I need the matched string outputted to the keyboard as if someone was typing on the keyboard. can someone help me locate the correct vb.net function to use? Thanks!
1
1396
by: sreenulanka | last post by:
I have five panel each one layout is set to gridbag layout.and also i have one main panel, layout is box layout.all components add to container.my page is larger than screen.it is not moving with help of key strokes . please help me this.
0
1354
by: abcd | last post by:
Is there a way to capture key strokes on a system using python (other than pyHook)? can wxPython capture keystrokes for the system (not just, say a text box)? thanks
0
9312
by: Sharath | last post by:
Quality Globe is Glad to Offer you the Fast Track course on Automation, QTP Basics and Advanced, and Quality Center Starting Date: June 4th, 2007 Timings: 10 AM to 3:30 PM Duration: 50 Hours Location: BTM Layout 1st Stage, Bangalore
0
2365
by: Sharath | last post by:
"Inspired" by the huge success of our first two automation fast track batches We are forced to start third fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0
2192
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first three automation fast track batches We are forced to start fourth fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
2066
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first four automation fast track batches We are forced to start fifth fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
4
3726
by: =?Utf-8?B?QWxleGFuZGVy?= | last post by:
Hi! I am new to C#. I read two C# books in the last two days which only covered the basics. And now I am on my third day. The books were really bad, because they did not cover windows applications, only ten to twenty pages how to create forms. So now you know why I want to have hotkeys in a CONSOLE Application. Is this possible? I would be glad if you could give me some links in the msdn or just the names of the functions needed. If...
1
1130
by: Perl Beginner | last post by:
I have written an automation using Perl (Win32). in a nutshell, it's layered on top of another software and the perl script manipulates the other software's windows and menus by moving around the mouse and automating keyboard strokes, etc. What if i wanted to capture this automation and put it into an mpeg file. is this possible?
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.