English
Forum

Multiprozessing with XProfan - Prozessuebergreifend on Controls grab.

 

Julian
Schmidt
Hi,
I try straight the Mainwindow, one of me erstellten Prozesses, from the "Standart-Prozess", whom Fokus zuzuweisen.
the functions unfortunately not so, How I it gladly had.

momentarily do I simply by Filemap the deal the Mainwindow the Prozesses transfer and then by Setactivewindow anfokussieren. thereupon follows one Error Message (per Process).
Why functions not, How of me angedacht? Can at all on Controls of others Prozessen grab? If Yes, How are correctly.?
declare prozess_id&
Windowstyle 24
Windowtitle "Hauptfenster"
Window 400,400,200,100
cls RGB(0,255,0)
print "Enter circa into Process To wechseln"
StartProzess()
User Messages 16
var hfm& = Filemap("Open", "Daten")
var daten& = Filemap("Map", hfm&)

whilenot ((%umessage=16) or iskey(27))

    waitinput 30
    case iskey(13) : SetActiveWindow(long(daten&,4*0))'Enter betätigt

endwhile

Process("Kill", prozess_id&, 0)
Filemap("Close", hfm&)
end

Proc StartProzess

    prozess_id&=pExec("|Prozess")

    Proc Process

        var hfm& = Filemap("Open", "Daten")
        var daten& = Filemap("Map", hfm&)
        Windowstyle 24
        Window 100,100-300,200
        cls RGB(255,0,255)
        long daten&, 4*0 = %hwnd

        whilenot (%key=2)

            waitinput

        Endwhile

        Filemap("Close", hfm&)

    Endproc

ENDPROC

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/22/12  
 



look:  [...]  Activates a window. The window must be attached to the calling thread's message billiardcue.

these not the case.

Try SetForegroundWindow :  [...]  and look on The Remarks.
 
03/23/12  
 




Julian
Schmidt
functions unfortunately immernoch not How pseudo.
declare prozess_id&
Windowstyle 24
Windowtitle "Hauptfenster"
Window 400,400,200,100
cls RGB(0,255,0)
print "Enter circa into Process To wechseln"
StartProzess()
User Messages 16
var hfm& = Filemap("Open", "Comm")
var pcomm& = Filemap("Map", hfm&)

whilenot ((%umessage=16) or iskey(27))

    waitinput 30
    case iskey(13) : External("User32","SetForegroundWindow",long(pcomm&,(4*0)))'SetActiveWindow(long(daten&,4*0))'Enter betätigt

endwhile

Process("Kill", prozess_id&, 0)
Filemap("Close", hfm&)
end

Proc StartProzess

    prozess_id&=pExec("|Prozess")

    Proc Process

        var hfm& = Filemap("Open", "Comm")
        var pcomm& = Filemap("Map", hfm&)
        Windowstyle 24
        Window 100,100-300,200
        cls RGB(255,0,255)
        long pcomm&, (4*0) = %hwnd

        whilenot (%key=2)

            waitinput

        Endwhile

        Filemap("Close", hfm&)

    Endproc

ENDPROC


should "There is no foreground process.From [...]  (see Remarks) hot that, I first because Standart-Process Hide must, before I the new Process whom Fokus zuteilen can?
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/23/12  
 




Julian
Schmidt
it functions too with SetActiveWindow! I had a Errors in the code, this have it now removes and now runs it....
declare prozess_id&
Windowstyle 24
Windowtitle "Hauptfenster"
Window 400,400,200,100
cls RGB(0,255,0)
print "Enter circa into Process To wechseln"
StartProzess()
User Messages 16
var hfm& = create("Filemap", "Comm", 36)
var comm& = Filemap("Map", hfm&)

whilenot ((%umessage=16) or iskey(27))

    waitinput 30
    case iskey(13) : SetactiveWindow(long(comm&,0))'Enter betätigt

endwhile

Process("Kill", prozess_id&, 0)
Filemap("Close", hfm&)
end

Proc StartProzess

    prozess_id&=pExec("|Prozess")

    Proc Process

        Windowstyle 24
        Window 100,100-300,200
        cls RGB(255,0,255)
        var hfm& = Filemap("Open", "Comm")
        var pcomm& = Filemap("Map", hfm&)
        long pcomm&,0=%hwnd

        whilenot (%key=2)

            waitinput 30

        Endwhile

        Filemap("Close", hfm&)

    Endproc

ENDPROC

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/24/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.688 Views

Untitledvor 0 min.
Rolf Koch11/26/15
Peter Max Müller04/15/15
Andre Rohland01/20/15
p.specht08/03/14
More...

Themeninformationen

this Topic has 2 subscriber:

Julian Schmidt (3x)
iF (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