English
Source / code snippets

Gedankenlesende Messagebox

 
small jest of me - Please not in Own programs install!!
CompileMarkSeparation
Declare Random%,ICON%,Buttons%,ICON$,Buttons$
Def @GetAsyncKeyState(1) !"User32","GetAsyncKeyState"
Windowstyle 31+512
WINDOWTITLE "Verrückte Messagebox => Funktioniert nur als EXE compiliert!"
Window 0,0-640,440

While @GETASYNCKEYSTATE(27)=0

    Randomize
    LET ButtonS%=@RND(6)
    LET ICON%=@RND(5)

    IF ICON%=1

        LET ICON%=16
        LET ICON$="Stop"

    elseif ICON%=2

        LET ICON%=32
        LET ICON$="Fragezeichen"

    elseif ICON%=3

        LET ICON%=48
        LET ICON$="Ausrufezeichen"

    elseif ICON%=4

        LET ICON%=64
        LET ICON$="Info"

    endif

    IF Buttons%=0

        LET Buttons$="OK"

    elseif Buttons%=1

        LET Buttons$="OK+Abbrechen"

    elseif Buttons%=2

        LET Buttons$="Abbrechen+Wiederholen+Ignorieren"

    elseif Buttons%=3

        LET Buttons$="Ja+Nein+Abbrechen"

    elseif Buttons%=4

        LET Buttons$="Ja+Nein"

    elseif Buttons%=5

        LET Buttons$="Wiederholen+Abbrechen"

    endif

    PRINT "Icon: ";Icon$,ICON%
    PRINT "BUTTONS: ";BUTTONS$,Buttons%
    PRINT ""
    LET RANDOM%=BUTTONS%+ICON% Das kann die Messagebox nicht wissen, oder??
    @messagebox("Eine Verrückte Messagebox! Das Ding kann Gedankenlesen!","Was ist denn das??","OOPS, was falsch gemacht!",64)

s4 href='./../../Function-References/XProfan/wend/'>WEND


Habs once more something changed. Runs In any drop Windows95/98/2000. particularly for the Behavior of @GetAsyncKeyState() (through these function becomes a Profan Error Message suppress), missing me each Statement. who can me this behaviour plausibel make??
 
10/19/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.089 Views

Untitledvor 0 min.
p.specht06/27/22
Michael Hettner09/03/21
RudiB.04/18/21
AndreasS11/27/18
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


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