Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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?

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.