English
Source / code snippets

Process informed ongoing the Mainwindow

 

p.specht

O-Text H.Brill:

sometimes would it Yes important, if one Process the Hauptprogramm over something informed, z.B. if the Process turnusmäßige releases in a Loop executing and each Durchlauf the Mainwindow informieren would like.
Declare lever GridBOX1
Declare Int end
Window Title "Ende too with ESC !"
Window 800, 600
GridBOX1 = @Create("Gridbox", %HWnd, "Name;0;120;Wert 1;0;80;Wert 2;0;80", 0, 10, 80, 300, 200)
end = 0
pExec("|Werte", %HWnd, GridBOX1)
User Messages 1001
Locate 1, 2
Print "Ende too with ESC"

WhileNot end

    WaitInput

    If %UMessage = 1001

        SetText %HWnd, "Gridbox " + Str $(&UwParam) + " time updated !"

    EndIf

    Case %Key = 2  : end = 1
    Case %Key = 27 : end = 1

EndWhile

Proc values

    Parameters lever Win, Grid
    Declare Int end1, a, b
    end1 = 0
    a = 0
    b = 0
    Randomize

    WhileNot end1

        If GetText$(Win) <> ""

            Inc a
            AddStrings(Grid, "Werte :|" + Str $(Rnd(100)) + "|" + Str $(Rnd(1000)))

            If a > 10

                a = 0
                ClearList Grid
                Inc b
                SendMessage(Win, 1001, b, 0)

            EndIf

        EndIf

        Sleep 200
        case getText$(Win) = "" : end1 = 1

    EndWhile

ENDPROC

User Messages 0
End

too the FileMapping would there To name, if the Process about in a Map writes and if it is done, the program informed, so this about The Map read can.

Perhaps can it someone Yes use.
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
06/13/21  
 



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

1.380 Views

Untitledvor 0 min.
p.specht07/31/22
RGH12/26/21
E.T.11/20/21
Manfred Barei11/19/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (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