| |
|
|
 Jac de Lad | Jaja, je encore...
dans Profan Gabs la fois une Befehl GetUsage. qui ist dans Xprofan 8.0a mais pas plus drin (zumindest habe je keinen Hinweis puis trouvé...)  je voudrais un Programme écrivons, cela un d'autre aufruft mais quand même weiterläuft (alors hilft mir WinExecWait là pas plus...). comment peux on cela realisieren? 
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 | 31.10.2005 ▲ |
|
|
|
|
 Torsten Rümker | avec WinExec() würd je meinen
Steht très joli sur einer page dans qui Aider, dessus WinExec au-dessous WinExecWait.
mfg Torsten |
|
|
| Ich lerne, ob ich will oder nicht! Betriebssystem: - Ubuntu 15.x - Windows (diverse) XProfan Version: X2 | 31.10.2005 ▲ |
|
|
|
|
 Jac de Lad | Hm, dire wirs la fois so rum: je starte un Programme per WinExec et voudrais savons, si es encore aktiv ist...sans dass cela Programme dabei pausiert. cela mon je!
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 | 31.10.2005 ▲ |
|
|
|
|
 Torsten Rümker | Ok, hab toi faux verstanden.
alors je serait dire, (iF möge mich korrigieren) cela es sich um une le cas pour qui Fil.pcu handelt, ensuite doch avec WinExecWait.
Alternativ peux du naturellement aussi régulier per Findwindow(Fenstername) chercher si es cela la fenêtre des Programmes encore gibt.
Ähem ce sont alle möglichkeiten qui je mir justement so aus den Fingern téter peux (suis oui ne...aucune Profi)
MfG Torsten |
|
|
| Ich lerne, ob ich will oder nicht! Betriebssystem: - Ubuntu 15.x - Windows (diverse) XProfan Version: X2 | 31.10.2005 ▲ |
|
|
|
|
 Jac de Lad | oui, à FindWindow hab je inzwischen aussi gedacht! je crois so werde ego lösen. Hatte seulement gedacht, pour gibts n API ou bien so!!
merci, 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 | 31.10.2005 ▲ |
|
|
|
|
 Torsten Rümker | si es pour une API gibt suis je qui Falsche um cela trop répondre, là je mich avec APIs seulement ensuite beschäftigt habe si es pas anders ging. Sozusagen  je versuche chez purem Profan trop rester, mais dat is gar pas so simple.
MfG Torsten |
|
|
| Ich lerne, ob ich will oder nicht! Betriebssystem: - Ubuntu 15.x - Windows (diverse) XProfan Version: X2 | 31.10.2005 ▲ |
|
|
|
|
 Jac de Lad | Hm...je dachte seulement, weil es GetUsage oui déjà la fois donnais, dass cela irgendwie wieder auferstehen peux. 
merci, 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 | 31.10.2005 ▲ |
|
|
|
|
 Ragnar Rehbein | j'ai pour solche sachen une gentille INC KompilierenMarqueSéparationDEF 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/'>Fin
il faut seulement tour penser pour dem starten des programms einmal trop attendre jusqu'à qui Status sur 259 ist, là on au cours de qui startphase (chez grand programmen) d'abord 0 zurückbekommt.
r.r. |
|
|
| |
|
|
|
 Jac de Lad | merci, je 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 | 31.10.2005 ▲ |
|
|
|
|
 Jac de Lad | Hm, ok, alors cela allez déjà la fois. je hatte la fois quoi angsprochen, un Programme im HWnd eines anderen Programmes auszuführen. là funzt malheureusement weder cela une encore FindWindow...peux on cela realisieren???
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 | 31.10.2005 ▲ |
|
|
|
|
 Ragnar Rehbein | je fürchte mon treffenquote beim deviner des sinns deiner fragen nimmt rapide ab. 
tu peux ne...aucune 2 programm aus einem programm heraus starten et cela 2. programm hat cela HWND des aufrufenden programms.
cela allez seulement avec DLL (pour meinem bisherigen verständnis) 
sag doch lieber la fois quoi du eingentlich faire bzw. erreichen veux.
il y a très wenig sur cette (Windows) monde quoi on avec XProfan (et dem netten drumherum comment XPIA / Profan2CPP) pas faire peux. pour alles autre gibt es Java (kostenlos / beste IDE / beste dokumentation / chacun la quantité freien quelltext / seulement malheureusement schwieriger trop comprendre comme XProfan)
r.r. |
|
|
| |
|
|
|
 Jac de Lad | oui, cela allez. avec avec FindWindow Handle ermitteln et SetParent sur cela eigene HWnd se mettre. Funktioniert aussi, mais FindWindow finde je cela la fenêtre pas wieder. je probiers la fois avec dem Handle, cela FindWindow beim ersten Aufruf zurückgibt. demain Poste je cela Ergebnis.  si cela Prog fertig ist, peut ihrs la fois ausprobieren, toujours hin scheint maintenant qui gesamte 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 | 01.11.2005 ▲ |
|
|
|