English
Forum

@ Command IsKey (1) in procedure utilize

 

Web
Scanner


my drawing can itself now wonderful move.
Since I rotten be, would like I do not jedesmal The Richtungstaste new pressing, circa 10 Pixel weiterzuspingen.
means have I me consider, I question The Richtungstaste in the Hauptprogramm with elsif clicked ex, and spring then in
a procedure and as long as The Button even is pressed, drives the image walk.
goes unfortunately not...
sees someone Error?
If I The Button loslasse, should The procedure exits go.
I have certainly again what not correctly. understood with the ISKEY commands?

Regards

Web
CompileMarkSeparation
proc Raufschieben_Vektoren

    SetTimer 50
    test% = 1

    while 1 = test%

        if @IsKey(1)

            schieby% = schieby% + 10

            IF schieby% > 1200

                schieby% = 1200

            ENDIF

            MCopyBmp schiebx%,schieby%-800,600>0,0;0
            test% = 1

        else

            test% = 0

        endif

    Endwhile

    KillTimer

endproc

 
Xprofan X3.1
Win7 auf AMDX6
07/21/08  
 



if @IsKey(1), Button with Keycode 1? look you The Tastaturcodes in the Help isKey on.

iskey(65) for A, 66 for B...

Übrigens reicht vlt. while isKey(38) 38=vk_up without Test%
 
07/21/08  
 




Web
Scanner
Hmm Have I wrong framed, sorry.
Button is no Tastaturtaste, I mean a Button whom I with the mouse betätige...

Scancode: 1$01left Mouse buttonVK_LBUTTON
 
Xprofan X3.1
Win7 auf AMDX6
07/21/08  
 



need clicked or. getFocus and gug %mousePressed.
 
07/21/08  
 




Web
Scanner


Grrrrrr....it is not hinzubkommen. I have have possible Keys and Mausabfragen ausprobiert.
If sometime a Mouse button on a Button pressed becomes, becomes The Loop automatically without Beendigungsmöglichkeit worn out.

I must but come along, if The Mouse button losgelassen becomes, so The shift aufhört. moreover should one The squeezed Button somehow zurücksetzen, or something like.
too with zustätzlichen Waitinputs GEHTS not.
If once one Button is pressed, is the pressed, To a another Button pressed becomes.

Gibts because there quite no Solution?

Regards

Web
 
Xprofan X3.1
Win7 auf AMDX6
07/21/08  
 



~getAsyncKeyState(1) (user32) helps you certainly.
 
07/21/08  
 



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.054 Views

Untitledvor 0 min.
Georg Teles11/04/18
Andre Rohland09/29/16
rquindt04/17/16
dr.dirk02/02/14
More...

Themeninformationen

this Topic has 2 subscriber:

iF (3x)
Web Scanner (3x)


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