473,492 Members | 4,279 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

{UNSOLVED} SendKeys In AutoKeys in Windows XP

12 New Member
I recently purchased a laptop with Windows XP. I installed Access 2000 and find that SendKeys does not work in my AutoKeys Macro. I get a message at the bottom of the screen when I close the Macro that says "Setting Up Wizards".

SendKeys does work in modules. Please help.
Nov 11 '06 #1
16 3418
southoz
24 New Member
Good ay ,
tell us exactly what you are trying to do - eg: why are u trying to use sendkeys and we maybe able help with a clearer understanding

southoz
Nov 11 '06 #2
mddrains
12 New Member
I use AutoKeys in Access much like I would use a Macro in Word - i.e., to automate keystrokes for repetitive tasks. For example I have one autokeys function that copies the first line in the box that appears when you place the cursor on a macro command line into the comments field of the command line. I have another that will change the unicode compression option in a table to yes (for imported data). Another will insert code to create a specific output field in queries that displays a concatenation of the name fields.

Thanks,
D
Nov 12 '06 #3
PEB
1,418 Recognized Expert Top Contributor
In all combinations of keys is it the same or simply in one ot 2 combinations?
Nov 12 '06 #4
mddrains
12 New Member
Some of the functions send multiple keystrokes (e.g., {F6}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Dow n}{Down}No{F6}{Down} ) and others send only one (e.g., {F6} followed by a RunCommand Copy, etc. The RunCommand Copy works, just not the SendKeys.

I'm pretty sure the problem is with Access 2000 running in the Windows XP operating environment. The functions worked perfectly well in Windows 98. They also work in Access 97 in the Windows XP operating environment. It's just that they don't work in Access 2000 under Windows XP. I was hoping someone had had this problem and resolved it.

I've tried everything I know to do, including uninstalling and reinstalling Access 2000. I can't find the problem in the Microsoft Knowledge database.

Thanks for any help you can offer.

D.
Nov 12 '06 #5
mddrains
12 New Member
If there is someone out there who runs Access 2000 in the Windows XP Pro operating system, could you try this for me?

Set up a macro named AutoKeys if you don't have one already.

Open AutoKeys in design mode and
Enter ^6 in the MacroName column
Enter Sendkeys in the action column
Enter {F6} in the Keystrokes window in the lower part of the window
Save the macro

Open any table in design mode
Position your cursor on any field name
Hold down the CTRL key and press the 6 key on the keyboare (not the keypad)
Let me know if the cursor branches to the lower part of your screen or if you get the message Setting up Wizards on the message bar

That will at least tell me if it's something on my computer of if it's a Microsoft problem.

Thanks.

D
Nov 12 '06 #6
PEB
1,418 Recognized Expert Top Contributor
Sorry i'ven't this configuration available..

But have you tried to use SendKeys by VB?

If it works it should be very easy to create a function MySendKeys() for exemple

And transmit to this function all of your combinations... And it should works :)

So you will always use your macro and should be easy to modify your combinations of keys but using your user defined function?

Is it suitable for you?
Nov 12 '06 #7
mddrains
12 New Member
I have thought about setting up a VB function but don't know how to activate it (possibly multiple times in a row) from inside a table design view (for example). The advantage, as I see it, of AutoKeys is that it is activated by pressing the CTLR key and one other key.

Thanks,

D
Nov 12 '06 #8
Killer42
8,435 Recognized Expert Expert
If there is someone out there who runs Access 2000 in the Windows XP Pro operating system, could you try this for me?
...
I have, at home. Will be there in around 8 hours (it's Monday morning here now). If I can remember, I'll be happy to give it a try.
Nov 12 '06 #9
mddrains
12 New Member
Thanks, I appreciate that.
Nov 13 '06 #10
Tanis
143 New Member
As an aside, SendKeys is one of those functions that should come with health warning, "use at your own risk". Sendkeys can be unstable, which is why Microsoft don't advocate the use of them.
Nov 13 '06 #11
mddrains
12 New Member
Do you know another way to automate keystrokes and functions (like macros in Word and Excel)? I seldom use sendkeys in applications but often use AutoKeys with the SendKeys Action during development.
Nov 13 '06 #12
Killer42
8,435 Recognized Expert Expert
Do you know another way to automate keystrokes and functions (like macros in Word and Excel)? I seldom use sendkeys in applications but often use AutoKeys with the SendKeys Action during development.
Sorry, I've just got back to work - I completely forgot to try the AutoKeys at home.

I'll e-mail myself a reminder right now, but once again, it's going to be a good 8 hours or more before I'm there to read it.
Nov 13 '06 #13
Killer42
8,435 Recognized Expert Expert
Leaving work soon, so I should be able to try this out for you in an hour or two.
Nov 14 '06 #14
MMcCarthy
14,534 Recognized Expert Moderator MVP
Leaving work soon, so I should be able to try this out for you in an hour or two.
Wasn't commenting on your resposnse just testing the new tagging.

Mary
Nov 14 '06 #15
Killer42
8,435 Recognized Expert Expert
Wasn't commenting on your resposnse just testing the new tagging.
Mary
I have no idea what you mean. Anyway...

mddrains, I just created the AutoKeys entry for ^6 as requested, in Access 2000 under Windows XP. It worked. (I must file that away for future reference - looks handy).
Nov 14 '06 #16
mddrains
12 New Member
Thank you very much. At least I now know it's my setup and can work from that position.

D
Nov 14 '06 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

4
11439
by: dixie | last post by:
The Ctrl key is represented by a ^ in the autokeys macro. What is the Alt key symbol? dixie
0
1659
by: Jim Caddy | last post by:
Hi all, I have an Autokeys Macro that's all in a sudden not working in access 2000 when pressing the key combinations. Open up the database in Access 2002 and the macro works, reopen the...
2
6228
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the...
1
7699
by: Bryan | last post by:
I am writing a C# Windows App that updates out Excel reports' modules. The app is complete, but has a problem. The only way MS allows you to unprotect the VBA code in Excel is to do it by hand or...
1
27160
by: GrantS | last post by:
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in...
6
30979
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the...
2
11585
by: David Kanter | last post by:
Hi, I am relatively inexperienced with VB.Net, but I am familiar with many concepts from programming; I have some basic level of competence with C/C++ and Perl, but I just started using VB this...
4
11655
by: ApexData | last post by:
Hello 1- What is the AutoExec Macro? Is it the same thing as AutoKeys Macro? 2- I'm looking to Control Keys equally on startup for my entire app. I understand that the AutoKeys Macro is the...
9
23811
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have this code for sendKeys. This simply sends a text to the notepad. This method runs fine, but I don't see the notepad and the text entered in that notepad. Is there any way...
0
7118
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,...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7192
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...
1
6862
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...
0
5452
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,...
1
4886
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...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
282
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...

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.