English
Forum

Done: %key-trouble ...

 

Michael
Punkt
... or be I simply stupid? (Anm. the was only a rethorische question )

%key does not work for me.is so what possible?
I have here minimales example. prepares watts it with Rokos Dialogeditor. only a little bit gekürzt.
CompileMarkSeparation
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 one dialog (dialog/Window) functions by me quite no Tastenabfrage. Habs already with WAITKEY attempts.
have I something overlooking? can still really not his, that not goes.
 
XProfan 11, Windows XP (2GB RAM), XProfEd
08/17/09  
 



I mean, XProfan reacted here integrally sincere, How windows the too handling or. distinguish.

Gib time in the Help "Tastatur" one, there's many Opportunities circa on "Tasteninfos" heranzukommen, each has sure your to- and detriments.

One lane over User Messages could his:
CompileMarkSeparation
 {$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

Related: iskey 
 
08/17/09  
 




Michael
Punkt
Hello If,

you have again nacheditiert, gell?! have the whole yesterday ausprobiert and first a Error Message receive. thought already, You wanted me testing, whether I aufpasse.
Have then but the windows.ph and Messages.ph eingebunden and from wm_keydown one ~wm_keydown made.
then went it too, only ...

I had all Opportunities inklusive @iskey(90) ausprobiert and nothing went.
any Examples and References to the Topic under Help verrieten nothing, I here with windows-Rückgabewerten works must (and well too only of these, if I something not überlesen having ought to).

the sinnvollste is then well really, only yet with the windows-Messages To works, once to the Mainwindow leave has.

but for all that Gibts there another trouble (The Combobox involved with the ENTF-Button), but the write I then later rather into suitable Thread.

Vielen Thanks.
 
XProfan 11, Windows XP (2GB RAM), XProfEd
08/18/09  
 



clear, one must hold discern, when How where which Button quizzed go should or. for which Control.

on the Einfachsten z.B. for Games is therefore mostly the normal Mainwindow for the most Tastenbefehle zutreffen.
 
08/18/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.413 Views

Untitledvor 0 min.
Georg01/16/21
H.Brill02/09/19
holmol9306/13/13
Julian Schmidt10/06/12
More...

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
Michael Punkt (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie