Español
Foro

Hecho: %key-Problema ...

 

Michael
Punkt
... oder bin Yo simplemente blöd? (Anm. Das war sólo una rethorische Cuestión )

%key no trabajo para mí.Ist así qué posible?
Yo habe hier una minimales Ejemplo. Erstellt wurde lo con Rokos Dialogeditor. Nur una wenig gekürzt.
KompilierenMarcaSeparación
Proc DIALOG

    Declare DLG&, DIALOGENDE%
    DLG&=CREATE("WINDOW",%HWND,"Neues Fenster",22,20,640,500)
    SETFOCUS(DLG&)
    DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT

        If %KEY=2

            DIALOGENDE%= 1

        ELSEIF %KEY=90 z-Taste

            DIALOGENDE%= 1

        ENDIF

    ENDWHILE

    DESTROYWINDOW(DLG&)

ENDPROC

WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW (%maxx-300),10-280,80
CLS RGB(0,0,0)
DIALOG

In una Diálogo (Diálogo/Ventana) funktioniert en me gar no Tastenabfrage. Habs auch ya con WAITKEY intenta.
Posesiones Yo algo übersehen? Kann doch eigentlich no ser, dass el no va.
 
XProfan 11, Windows XP (2GB RAM), XProfEd
17.08.2009  
 



Yo mi, XProfan reagiert hier bastante ehrlich, como Windows el auch handhabt o. unterscheidet.

Gib veces en el Ayuda "Tastatur" una, lo son viele Möglichkeiten en a "Tasteninfos" heranzukommen, jede ha sicherlich ihre Vor- y Nachteile.

Ein Weg encima Mensajes del usuario podría ser:
KompilierenMarcaSeparación
 {$cleq}
Gemerkt/Separiert von http://xprofan.com/thread.core?t=7793

Proc DIALOG

    Declare DLG&, DIALOGENDE%
    DLG&=CREATE("WINDOW",%HWND,"Neues Fenster",22,20,640,500)
    SETFOCUS(DLG&)
    DIALOGENDE%=0
    userMessages 256 ~wm_keyDown

    WHILENOT DIALOGENDE%

        WAITINPUT
        locate 1,1
        print &getTickCount
        print "Taste: ",&uwParam,"  "

        If %KEY=2

            DIALOGENDE%= 1

        ELSEIF (%UMessage=256) and (&uwParam=90)%KEY=90Z-Taste

            DIALOGENDE%= 1

        ENDIF

    ENDWHILE

    DESTROYWINDOW(DLG&)

ENDPROC

WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW (%maxx-300),10-280,80
CLS RGB(0,0,0)
DIALOG

Siehe auch: iskey 
 
17.08.2009  
 




Michael
Punkt
¡Hola If,

Usted hast otra vez nacheditiert, gell?! Posesiones todos gestern ausprobiert y sólo una Fehlermeldung obtener. Dachte ya, Usted wolltest mich testen, si Yo aufpasse.
Hab entonces aber el windows.ph y Messages.ph eingebunden y de wm_keydown una ~wm_keydown gemacht.
Dann ging lo auch, sólo ...

Tuve sämtliche Möglichkeiten inklusive @iskey(90) ausprobiert y nichts ging.
Alle Beispiele y Anleitungen a el Thema bajo el Ayuda verrieten nichts, dass Yo hier con Windows-Rückgabewerten trabajo muss (y wohl auch sólo esta, si yo algo no überlesen haben debería).

Das sinnvollste es entonces wohl wirklich, sólo todavía con el Windows-Messages a trabajo, sobald al Ventana principal verlassen ha.

Trotz allem gibts como todavía una Problema (el Combobox betreffend con el ENTF-Taste), aber el escribir Yo entonces später mejor en el entsprechenden Hilo.

Vielen Dank.
 
XProfan 11, Windows XP (2GB RAM), XProfEd
18.08.2009  
 



Klar, uno muss sólo unterscheiden, wann como wo welche Taste abgefragt voluntad se o. para welches Control.

Am Einfachsten z.B. para Juegos Por consiguiente, meist el normale Ventana principal para el el meisten Tastenbefehle zutreffen.
 
18.08.2009  
 



Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

1.412 Views

Untitledvor 0 min.
Georg16.01.2021
H.Brill09.02.2019
holmol9313.06.2013
Julian Schmidt06.10.2012
Más...

Themeninformationen

Dieses Thema ha 2 subscriber:

iF (2x)
Michael Punkt (2x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie