English
Forum

is gestartetes Program yet active

 

Thomas
Freier
in the momentum be I with my Solution not happy, there tappt im dunkeln not absulut hinhaut.
I starte a Office application, and if The exits is, should one PDF-Reader started.
CompileMarkSeparation
WinExecWait(Prog$,1)
>
geift not. anyway by me with Portable OpenOffice 2.2
it'll immediate the PDF-Reader launched.
alternatively question I, whether The with Ooo opened File to further edit opened go can.
CompileMarkSeparation
Prog$ = Ooo_Pfad$+" "+text$
@WinExecWait(Prog$,1)

If GetCheck(odt_pdf&)

    Sleep 10000
    Assign #1,Translate$(text$,"\","\\")

    while 1

        sleep 100
        Append #1
        case %IoResult=0 :BREAK

    wend

    Close #1
    text$=PDF_Pfad$+SubStr$(L_Seite$,1,".")+".pdf"
    ......

EndIf


but self the "Sleep 10000" reicht sometimes not, To Ooo itself arranged has and on The File zugreift. in that particular, if everything on one USB-Stick runs.

gives it a a elegantere Solution?
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/20/10  
 



look time To WinExec:
Help
since Version 11 supply The function The process-ID the launched Program back, as in the Taskmanager displayed becomes. in the Fehlerfall is it the worth 0. with previous versions was the worth in the Erfolgsfall without weight.


then time look what GetExitCode(ProzessID) returns - vlt. helps the already.

Specifically of OpenOffice white I but that this with the Prozessen self already herumspielt - means many Process only others launch or benachrichtigt and itself self but then same again exits - here remaining then vlt. only a on OO adjusted Solution How z.B. FensterFinden etc. .
 
11/20/10  
 




Paul
Glatz
Starte time at Portable not The normal exe separate The under APP
 
11/20/10  
 




Thomas
Freier
@Paul, the have I already tested and has none influence with: "@WinExecWait(Prog$,1)"
@iF, with:
CompileMarkSeparation
Prog$ = Ooo_Pfad$+" "+text$
x&=WinExec(Prog$,1)

while GetExitCode(x&)=256

    sleep 100

wend

Prog$ = XCVIEW_Pfad$+" "+text$
WinExecWait(Prog$,1pan>

brought nothing. possibly, that 256 not correctly. is.

Nachtrag: has someone experience at Umbennen of odt-Files with XProfan?
CompileMarkSeparation
LOESCH_SEITE(ODT_Pfad$,L_Seite$,R_Seite$,".odt")
....

Proc LOESCH_SEITE

    Parameters a$,b$,c$,d$
    Assign #3, a$+b$+d$
    Rename #3, a$+c$+d$
    Close #3

ENDPROC

lead always moreover, that Ooo a "beschädigte" File restore wants.
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/20/10  
 



@Thomas: Yes, habs vermutet - OO uses many Process only circa a others To inform. I know now only once more with AddWindows/ FindWindow To look whether one it on it somehow "festmachen" can.
 
11/20/10  
 




Thomas
Freier
@iF: with the FindWindow suspect I, if I not already first thing tested having, end How with the Test, The on Ooo übergebene File to open. D.h. the Window Title is first complete present, if The File opened watts. means n-Time Waiting To the Window Title abfragbar is.
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/20/10  
 



>> means n-Time Waiting To the Window Title abfragbar is.

or simply "warten To the Window Title abfragbar ist" means while hardship window there Waiting...
 
11/21/10  
 



Perhaps. helps you too a processes-list: [...] 
 
11/21/10  
 




Thomas
Freier
means the example have I once tested with
CompileMarkSeparation
x&=WinExec(Prog$,1)
>

and then attempts x& to find with
CompileMarkSeparation
case Str$(x&)=Str$(Entry#.th32ProcessID&)
>

and not found. Mach I as a Error? is PID not The process-ID?
Eingentlich have I any Examples from the babybox.exe through.
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/21/10  
 



very, PID is the Process-ID - if the Process but already exits is then becomes it neither More in the list stand.

thatswhy meant I Yes: "also many Process only others launch or benachrichtigt and itself self but then same again beendet"...

Perhaps but uses it you a list all processes to Openoffice-Prozessen To search in order to look whether at all yet one active or not.
 
11/21/10  
 




Thomas
Freier
i'll once more whom lane over

or simply "warten To the Window Title abfragbar ist" means while hardship window there Waiting...

and then, if found with zweiter Loop while hardship window =weiter, try.
mandatory then but whom possible Fensternamen the Anwendungs.exe, there spare wählbar and the Base always The soffice.exe is, for StarOffice (Window = 02-27.odt - StarOffice 8) and with OpenOfice (Window = 02-27.odt - OpenOffice.org Writer) determine.

alas, could one this Office-Hackern still Scribus hither bring. there can a PDF and a PNG from the document create.


39 kB
Hochgeladen:11/21/10
Downloadcounter277
Download
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/21/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.768 Views

Untitledvor 0 min.
AndreasS01/06/19
rquindt12/05/15
Uwe Lang09/03/14
Peter Max Müller12/12/11
More...

Themeninformationen

this Topic has 3 subscriber:

iF (5x)
Thomas Freier (5x)
Paul Glatz (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