Announcement

Collapse
No announcement yet.

Tastenkombi per message verschicken.......

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tastenkombi per message verschicken.......

    Hallo Leute
    muß nochmal eine Frage stellen, hab hier auch schon alle beiträge zu diesem themen gelesen,hat mir aber nicht sehr geholfen.
    seit stunden probier ich rum, jetzt frag ich einfach....

    möchte strg+s für speichern als send oder postmessage verschicken.
    Fensterhandle hab ich, zwei messages hintereinander schicken geht nicht.
    Bitte um hilfe....

    Danke schon mal im Voraus....

  • #2
    <pre>
    versuchs mal mit dieser Info:
    Platform SDK

    GenerateConsoleCtrlEvent
    The GenerateConsoleCtrlEvent function sends a specified signal to a console process group that shares the console associated with the calling process.

    BOOL GenerateConsoleCtrlEvent(
    DWORD dwCtrlEvent, // signal to generate
    DWORD dwProcessGroupId // process group to get signal
    );
    Parameters
    dwCtrlEvent
    [in] Specifies the type of signal to generate. This parameter can be one of the following values. Value Meaning
    CTRL_C_EVENT Generates a CTRL+C signal.
    CTRL_BREAK_EVENT Generates a CTRL+BREAK signal.

    dwProcessGroupId
    [in] Specifies the identifier of the process group that receives the signal. A process group is created when the CREATE_NEW_PROCESS_GROUP flag is specified in a call to the function. The process identifier of the new process is also the process group identifier of a new process group. The process group includes all processes that are descendants of the root process. Only those processes in the group that share the same console as the calling process receive the signal. In other words, if a process in the group creates a new console, that process does not receive the signal, nor do its descendants.
    If this parameter is zero, the signal is generated in all processes that share the console of the calling process.

    Return Values
    If the function succeeds, the return value is nonzero.

    If the function fails, the return value is zero. To get extended error information, call .

    Remarks
    GenerateConsoleCtrlEvent causes the control handler functions of processes in the target group to be called. All console processes have a default handler function that calls the function. A console process can use the SetConsoleCtrlHandler function to install or remove other handler functions.

    SetConsoleCtrlHandler can also enable an inheritable attribute that causes the calling process to ignore CTRL+C signals. If GenerateConsoleCtrlEvent sends a CTRL+C signal to a process for which this attribute is enabled, the handler functions for that process are not called. CTRL+BREAK signals always cause the handler functions to be called.

    Requirements
    Windows NT/2000 or later: Requires Windows NT 3.1 or later.
    Windows 95/98/Me: Requires Windows 95 or later.
    Header: Declared in Wincon.h; include Windows.h.
    Library: Use Kernel32.lib.

    See Also
    Consoles and Character-Mode Support Overview, Console Functions, , , SetConsoleCtrlHandler
    </pre&gt

    Comment


    • #3
      hallo
      aber ist das nicht nur für eine console gedacht ???

      Comment


      • #4
        Strg+S: Du willst nicht zufällig in einem Menü auf Speichern klicken? Wenn ja dann kuck mal hier: <a href="/webx?50@@.ee7127e.ee8d5d2/3">Luckie "CTRL+P zum fremden Programm senden" 18.12.2002 04:56</a&gt

        Comment

        Working...
        X