Sryth Posted January 21, 2004 Report Posted January 21, 2004 I can get text to display in Flightsim 2002 but I it will not scroll, And its acts very funny when A message from Flightsim it self tries to replace. I know VB 6 is not a main language of a lot of people but here is the function I am using to output the text Public Function FS_Output(output As String) 'Output to FS Dim marker As Long Dim dwResult As Long marker = -1 'Write to Flight Sim Call FSUIPC_WriteS(&H3380, 128, output, dwResult) Call FSUIPC_WriteS(&H32FA, 2, VarPtr(marker), dwResult) Call FSUIPC_Process(dwResult) End Function I am not sure its a VB problem but more or how I am using the WriteS the second WriteS does not seem to do anything. Any help would be great ful. Also one question I have been looking for an offset to write to the chat window as well as the text box at the top of the screen, any ideas?
jd Posted January 21, 2004 Report Posted January 21, 2004 i think the second write should be Call FSUIPC_Write(&H32FA, 2, VarPtr(marker), dwResult) write not writes and is your output string ending with a zero? output = output & chr$(0) jd
Sryth Posted January 21, 2004 Author Report Posted January 21, 2004 thanks for the help that fixed the problem
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now