Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sendkeys mit der MFC

Empfohlene Antworten

Veröffentlicht

Hallo,

Ich hab mal wieder ein Problemchen, bei dem ich keine Lösung finde.

Ich bräuchte nämlich eine Möglichkeit bestimmte Tastatureingaben, ohne das ich die Tastatur drücke, zu senden.

In Visual Basic gibts die Funktion SendKeys, aber wisst eine equivalente Funktion in der MFC.

Schon im voraus Danke für eure Mühen !!!

Das sollte hiermit gehen:

SendInput

The SendInput function synthesizes keystrokes, mouse motions, and button clicks.

UINT SendInput(

UINT nInputs, // count of input events

LPINPUT pInputs, // array of input events to insert

int cbSize // size of an INPUT structure

);

Parameters

nInputs

Specifies how many structures pInputs points to.

pInputs

Pointer to an array of INPUT structures. Each structure represents an event to be inserted into the keyboard or mouse input stream.

cbSize

Specifies the size of an INPUT structure. If cbSize is not the size of an INPUT structure, the function will fail.

Return Values

hm, ich habe quasi dasselbe problem, nur im borland builder5.

kann mir da auch einer weiterhelfen?

Mit SendInput gehts einwandfrei. Nochmals vielen Dank !!!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.