English
Forum

Getrusage

 

Jac
de
Lad
Jaja, I again...

In Profan gabs time a commands Getrusage. The is in XProfan 8.0a but not any more drin (at least have I none Info hereon found...)
i want one Program write, the one other aufruft but nevertheless weiterläuft (means help me WinExecWait there not further...). How can the release?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Torsten
Rümker
with WinExec() würd I my

standing very beautiful on of/ one Page in the Help, supra WinExec under WinExecWait.

mfg
Torsten
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/31/05  
 




Jac
de
Lad
Hm, say wirs time so rum: I starte one Program by WinExec and would like know, whether it yet active is...without that the program thereby pausiert. the my I!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Torsten
Rümker
OK, Have you wrong understood.

So I would say, (iF möge me correct) the it itself circa a drop for Thread.pcu deals, then still with WinExecWait.

alternatively can you naturally too regularly by Findwindow(Fenstername) nachschauen whether it the window the Program yet gives.

Ähem the any possibilities The I me straight so from whom Fingern suck can (be Yes no Profi)

MfG
Torsten
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/31/05  
 




Jac
de
Lad
Yes, on FindWindow Have I meanwhile too virtual! I faith so will be ichs solve. having only virtual, for Gibts n API or so!!

thanks, Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Torsten
Rümker
If it for a API gives be I the incorrect around the To answer, I me with APIs only then engage have if it not differently went.
Sozusagen
I try with purem Profan To stay, but dat is none so simply.

MfG
Torsten
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/31/05  
 




Jac
de
Lad
Hm...I thought only, because it Getrusage already time given, that the somehow again revive can.

thanks, Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Ragnar
Rehbein
I have for such things a nice INC
CompileMarkSeparation
DEF CreateProcessA(10)     ! "Kernel32","CreateProcessA"
DEF GetExitCodeProcess(2) ! "Kernel32","GetExitCodeProcess"
DEF TerminateProcess(2)   ! "Kernel32","TerminateProcess"
DEF ZeroMemory(2)         ! "Kernel32","RtlZeroMemory"
DEF CloseHandle(1)        ! "Kernel32","CloseHandle"
Declare lpCommandLine#
Declare lpStartupInfo#
Declare lpProcessInformation#
Declare ExitCode#

Proc CreateProcess

    Parameters CommandLine$
    Declare hProcess&
    Dim lpCommandLine#,Len(CommandLine$)+1
    Dim lpStartupInfo#,68
    ZeroMemory(lpStartupinfo#,68)
    Long lpStartupInfo#,0=68
    Dim lpProcessInformation#,16
    ZeroMemory(lpProcessInformation#,16)
    String lpCommandLine#,0=CommandLine$
    CreateProcessA(0,lpCommandLine#,0,0,0,0,0,0,lpStartupInfo#,lpProcessInformation#)
    hProcess&=Long(lpProcessInformation#,0)
    Dispose lpCommandLine#
    Dispose lpStartupInfo#
    Dispose lpProcessInformation#
    Return hProcess&

EndProc

Proc KillProcess

    Parameters hProcess&
    Dim exitcode#,4
    GetExitCodeProcess(hProcess&,Exitcode#)
    TerminateProcess(hProcess&,Long(exitcode#,0))
    Dispose Exitcode#

EndProc

Proc ProcessStatus

    parameters prozid&
    declare status&
    Dim exitcode#,4
    GetExitCodeProcess(prozid&,Exitcode#)
    status& = long(Exitcode#,0)
    Dispose Exitcode#
    return status&

endproc

----------Democode, später auskommentieren --------
Declare hProcess&
hProcess& = createprocess("NOTEPAD.EXE")
cls
settimer 400

while 1

    waitinput
    print ProcessStatus(hProcess&)   259 Prozess läuft

endwhile

WaitInput
KillProcess hProcess&Notepad wird mit dem Profan-Programm geschlossen
ss=s4 href='./../../function-references/XProfan/end/'>End

one must only dran think to the started the program once To Waiting To the status on 259 is, there one during the startphase (with large programmen) first 0 zurückbekommt.

r.r.
 
10/31/05  
 




Jac
de
Lad
thanks, I probiers...
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Jac
de
Lad
Hm, ok, So the goes already time. I had something angsprochen, one Program in the HWnd one others Program to execute. there working unfortunately weder the a yet FindWindow...can the release???

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/31/05  
 




Ragnar
Rehbein
I fürchte my treffenquote at guess the sinns your ask takes rapide ex.

You can no 2 Program a Program out Starting and the 2. Program has the HWND the aufrufenden program.

the goes only with DLLs (to my recent understanding)

say still rather something You eingentlich make or. achieve want.

there's very little on this (windows) world what with XProfan (and the nice drumherum How XPIA / Profan2CPP) don't can.
for everything else there Java (free / best IDE / best Documentation / aplenty disengaged quelltext / only unfortunately tougher To understand as XProfan)

r.r.
 
10/31/05  
 




Jac
de
Lad
Yes, the goes. with with FindWindow lever detect and Entry / the Own HWnd to put. functions too, but FindWindow find I the window not again. I probiers time with the lever, the FindWindow at first appeal zurückgibt. tommorrow poste I the Result.
If the Prog is done, can ihrs time try, always there shining now The entire Community mitzumachen!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
11/01/05  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.498 Views

Untitledvor 0 min.
iF11/06/12

Themeninformationen



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