| |
|
|
funkheld | Hello, good day. I Have a problem with data zurückzuholen of Loksim3d. with Sendmessage can I at Loksim3D The Indusi activate, the works.
now can with the string : cLOK_INSTRUMENT_TACHO = "LOK.INSTRUMENT.TACHO" The speed inquire, return is a String, the Yes in a Pointer zurückgegeben becomes. now knows I do not How to the make can with the commands "Postmessage". who can me the please times explain?
Thank you.
greeting
Tastendruck can I Loksim3D Send :
|
|
|
| |
|
|
|
| Hi!
according the Topictitle "Wie functions the Postmessage by me in the example ?" find I quite no PostMessage in Your example.
Postmessage is in the Difference To SendMessage too sooner not moreover there, on a Return Value To Waiting.
If the address one Strings zurückgegeben becomes then can You The characters simply so read/ spend: CompileMarkSeparation |
|
|
| |
|
|
|
| Nachtrag: Dollarzeichen forget/ nachgetragen.
(even if it with xpse too without functions ^^ ) |
|
|
| |
|
|
|
funkheld | Jup, thanks. must once more rebuild whom whole Kram.
greeting |
|
|
| |
|
|
|
| no trouble. And if You a anderssprachigen View source have then simply show because whom You can then slight to XProfan paraphrase. |
|
|
| |
|
|
|
funkheld | time simply demand, i want with Postmessage of a others Program(Freebasic) one String Send on the window "Profan". STRPTR GetControlParas (B a Stringvariable in a address circa.
Dim Text as String text="Test" window = FindWindow(0, "Profan") Postmessage(profane,STRPTR(Text),0,0)
Diesen Text of Freebasic should the Profanfenster receive. How are the?
Thank you.
greeting |
|
|
| |
|
|
|
| Hi,
there there lauter ways for,
the Simplest would moreover well that the program(Freebasic) the lever a by the XProfan-Program begot ListBox-list sustain and directly on The ListBox Entries anhängt.
the would too threadsicher and simply then by the XProfan-Program (getString$(..., getCount(... ) abzurufen.
otherwise... this appeal isn't meaningfully:
Postmessage(profane,STRPTR(Text),0,0)
there hierbei The Nachrichtennummer The address the Strings is and You in the Empfänger- Program Yes The address not know or. The Nachrichtennummer a already übliche/ used Nachrichtennummer his can.
then sooner...
PostMessage(profane,wm_user+12345,strptr(Text),0)
and then in the XProfan-Program inside the so-called SubClassProc on Message wm_user+12345 Waiting and then whom String from the &swParam loading by print string$(&swParam,0).
for Strings/ data between Prozessen replace Gibts windowsweit against really The wm_copydata -Message ( [...] ).
XProfan-example: [...]
here yet More: [...]
what You too make can is simply with SetText/ GetText or. SetWindowText ( [...] ) Window Title settle and inquire z.B. of Fensterndie not visible are. |
|
|
| |
|
|
|
funkheld | so, thanks, The take I now in Freebasic around the TCP-data of Loksim3d by: PostMessage(profane,wm_user+12345,strptr(Text),0) to profane To Send circa these then as graphic present .
How are because the now here Please? :
and then in the XProfan-Program inside the so-called SubClassProc on Message wm_user+12345 Waiting and then whom String from the &swParam loading by print string$(&swParam,0)
Thank you.
greeting |
|
|
| |
|
|
|
| |
|
| |
|
|
|
| in lieu of of StrPtr(Text) must You Addr(Text$) use.
PostMessage is something faster as SendMessage, wait but not The Rückantwort the Message. |
|
|
| |
|
|
|
| @Frank: How I it understood have related his "StrPtr(Text)" on FreePascal. |
|
|
| |
|
|
|
funkheld | Hello, jup thanks for Help. it was Freebasic. but somehow hakt it there in the Freebasic with the Datenversenden. I take now time Purebasic as TCP-Grundgerüst which whom Datentransfer undertaking with Send/Postmessage. Currently works it with the TCP-Gerüst by me with XProfan not, with the Server and Clienten. it ought to there time one Grundgerüst with einfachen command created go of you Specialists, because TCP and the dazugehörige Kram is for a users the whom Datentransfer Server/Client for its Program having would like not at all simply. thereby is it, if it functions a grosse Bereicherung for the XProfan.
Related to the SubClassing must I first digest.The Automatic term of it begreife I not yet.
Thank you.
greeting |
|
|
| |
|
|