Search results for 'kbdevent'. 2 post(s) found.
- 2007/09/25 How to send char as message to another application
- 2007/08/26 Keyboard event detection (Key Tracker)
The following code is used to insert a character into another application - Notepad.
procedure TForm1.Button1Click(Sender: TObject) ;
var g,d:integer;
begin
{Find the main window of the Application}
g:=FindWindow('Notepad',nil) ;
{Find the window of the application's text box}
d:=ChildWindowFromPoint(g,point(50,50)) ;
{Now send it a character!!}
SendMessage(d,WM_CHAR,Ord('A'),0) ;
end;
var g,d:integer;
begin
{Find the main window of the Application}
g:=FindWindow('Notepad',nil) ;
{Find the window of the application's text box}
d:=ChildWindowFromPoint(g,point(50,50)) ;
{Now send it a character!!}
SendMessage(d,WM_CHAR,Ord('A'),0) ;
end;
Another posts included in "Delphi"
| How to save text from Clipboard to a file (0) | 2007/09/25 |
| How to show window contents while dragging (0) | 2007/09/25 |
| How to use TTF Font Without Installing (0) | 2007/09/25 |
| How to restrict mouse movement (0) | 2007/09/25 |
| List Devices (LPT, COM ports, ...) (0) | 2007/09/25 |
| How to know whether the font is TrueTypeFont or not (0) | 2007/09/25 |
| How to track a user's idle time (0) | 2007/09/25 |
| How to remove your application from TaskBar (0) | 2007/09/25 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 03:54
moneyideas
-
Subject different money making ideas
2010/01/29 12:46
moneyideas
-
Subject different money making ideas
2010/01/31 16:41
moneyideas
Track your key Press
<!--This is developed by Nepali Guys
for further information please email us at
ha.p@mailcity.com
shivascm@hotmail.com
-->
<html>
<head>
<title>Simple javascript key tracker</title>
<script language="javascript">
function handlePress(events) {
var whichCode = (window.Event) ? events.which : events.keyCode;
if (whichCode==13)
alert("You have pressed Enter key");
else if (whichCode==32)
alert("You have pressed space key");
else
alert("You have pressed the character\n " + String.fromCharCode(whichCode));
}
</script>
</head>
<BODY onKeyPress="handlePress(event)">
<form>
<table border=0>
<tr>
<td><font size=4 face=verdana><b>press any key </b></font></td>
</tr>
</table>
</form>
</body>
</html>
for further information please email us at
ha.p@mailcity.com
shivascm@hotmail.com
-->
<html>
<head>
<title>Simple javascript key tracker</title>
<script language="javascript">
function handlePress(events) {
var whichCode = (window.Event) ? events.which : events.keyCode;
if (whichCode==13)
alert("You have pressed Enter key");
else if (whichCode==32)
alert("You have pressed space key");
else
alert("You have pressed the character\n " + String.fromCharCode(whichCode));
}
</script>
</head>
<BODY onKeyPress="handlePress(event)">
<form>
<table border=0>
<tr>
<td><font size=4 face=verdana><b>press any key </b></font></td>
</tr>
</table>
</form>
</body>
</html>
Another posts included in "HTML, Javascript"
| Get A Print Dialog Box By Clicking A Button (0) | 2007/08/26 |
| Roman Numerals From Integers (0) | 2007/08/26 |
| Linking Drop Downs (0) | 2007/08/26 |
| IsIn For Arrays (0) | 2007/08/26 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 02:24
moneyideas
-
Subject different money making ideas
2010/01/29 10:52
moneyideas
-
Subject different money making ideas
2010/01/31 16:43
moneyideas

Prev

Rss Feed