473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Record and Replay another applications keystrokes

zak
I have some testing to do and I need to put a whole set of data in I want to
Record and replay in a loop keystrokes.

An idea
Nov 21 '05 #1
2 1645
Zak,

Can this sample I made 2 weeks ago do something for you (Look that the
button should be than an array of characters, that is only for the sample)

\\\
Private Sub Button1_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles Button1.Click
Dim mypress As New KeyPressEventAr gs("D"c)
TextBox1_KeyPre ss(sender, mypress)
End Sub
Private Sub TextBox1_KeyPre ss(ByVal sender As Object, _
ByVal e As System.Windows. Forms.KeyPressE ventArgs) Handles _
TextBox1.KeyPre ss
MessageBox.Show ("I am clicked by key " & _
e.KeyChar & " in " & _
DirectCast(send er, Control).Name)
End Sub
///

I hope this helps?

Cor
Nov 21 '05 #2
* =?Utf-8?B?emFr?= <za*@discussion s.microsoft.com > scripsit:
I have some testing to do and I need to put a whole set of data in I want to
Record and replay in a loop keystrokes.


You'll need a keyboard hook to capture these keystrokes system-wide:

Article on keyboard hooks:

<URL:http://www.developer.c om/net/net/article.php/11087_2193301_1/>

Documentation on hooks:

<URL:http://msdn.microsoft. com/library/en-us/dnwui/html/msdn_hooks32.as p>
<URL:http://msdn.microsoft. com/library/en-us/winui/winui/windowsuserinte rface/windowing/hooks.asp>

Then you can use p/invoke on 'keybd_event' to send the keystrokes.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

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

Similar topics

2
3198
by: Steven Raasch | last post by:
I would really like to send keystrokes to a QT application from another program. The ideal situation would allow me to use STDIN, but I'm guessing that this is not going to happen. Keeping in mind that I am NOT an experienced QT programmer, can anyone help? Thanks! -Steve
1
18467
by: Mark | last post by:
I am using an acess form to have people enter data for a small scale audit. Is it possible to hide the bar at the bottom of a form so that the people entering data cannot navigate through records? I would like to make it so that they can only see the record they are working on, and can only add a record by hitting an action button that says "Add Record." Thanks, Mark
0
2703
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main form. Then I have 3 pages on a tab control ( 4 if the type of candidate validates that is is to be shown) Each page has a subform. The subforms can be either single or continuous, I think I am still deciding what I want to lock down this entry...
1
2079
by: chatmili | last post by:
I am very frustrated after searching for three days. My problem seems to be so hard that no one really had an answer for it. I have seen postings with similar problem but they were either ignored or the codes/ direction didn't work. I would extremely appreciate for someone who can help me. I have more than 20,000 records for which I created a report. My goal is to print each page of the report into seperate PDF files. I want to suppress...
1
1802
by: Tor Inge Schulstad | last post by:
Hi group! I want to make a windows service application that counts all the keystrokes a user does on the computer. Can anyone give me a hint on how i can detect those keystrokes when they are in another application then the counting application itself? __ Thanks in advance
1
1925
by: newcomer | last post by:
I have traced action in XML. Now I would like to replay that. How could I do that based on this XML trace? I am using soap:tcp between client and server. thanks,
3
5055
by: Gunnar Syren | last post by:
I'm trying to implement a macro feature in my application by recording and playing back keystrokes. At first I thought it would be enough to catch KeyDown in my main form, but I soon realized that I needed to catch keystrokes in menues and other forms in my app as well. I realize I can implement a keyboard hook that catches keystrokes globally, but I only want the keystrokes that are sent to my application. Any suggestions on how to...
3
2465
by: Baheri | last post by:
Does any one have a sample on how can replay attacks be prevented in a webservice?
7
3480
by: thread | last post by:
Hi all i need to build progression calculator for a record and for this i need to have the possiblity to get the information for the previous record. is it posible to do it or i will need to use recordset for this?
0
9704
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
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
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...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
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
6845
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
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.