Jump to content

Recommended Posts

Posted

hello,

i found function for display text on d3d output but i don't know how to use it in autoit.

this is what I found :

http://www.toymaker.info/Games/html/text.html

i want to display text with it..

Is it possible to use it?

i don't know how to use outside functions...

Posted

Unless its compiled into a DLL I dont beleive you can.

.h and .lib are usually associated C/C++ libraries

the Dll's: d3d9.dll / d3d10.dll / d3d11.dll have such functions?

if so then maybe we can use them ..

I think that they are in the "windows" folder ..

Posted (edited)

to display text on d3d output you need to use d3d9.dll and gpcomms.dll

Global $dll_dx, $W = 100, $H = 560, $font = 40
Const $color = 0xf0ffffff

$dll_dx = DllOpen(@ScriptDir & "\gpcomms.dll")
If @error Then
    MsgBox(4096, "ERROR", "gpcomms.dll not found", 3)
    Exit
EndIf

display()

While 1
    Sleep(500)
WEnd

Func display()
    DllCall($dll_dx, "int", "GPSL_SetTextLineData", "int", 1, "long", $H, "long", $W, "str", "HELLO WORLD!", "dword", $color, "int", 0, "int", $font, "int", 1, "int", 0)
    DllCall($dll_dx, "int", "GPSL_ShowText", "int", 1, "int", 1)
EndFunc   ;==>display

Test-dx.rar

Edited by Belini
Posted (edited)

Belini, Thank you very much!
But I do not see any text ..

Can you tell me how to use it?

i don't see that you use d3d9.dll in your example code

Edited by Guest
Posted

The gpcomms.dll makes a bridge to d3d9.dll, put the files in the same folder as the application that will run the script and then run your application.

Posted

i don't know what i am doing worng. i started your script and then i started some app that using d3d.

and i see nothing. i don't see any text on the app window/screan.

i also tried to start your script after i started the app but still nothing.

Posted
Posted (edited)

@gil900 you could display a message on the screen?

Thanks for your attempt to help.

But I do not need this functionality now because I know it will be too much big story at this time. I'm afraid that what you give me will not work on any application ..

Some aps using Oben AL and most use DX11.

If your solution works on a small group of "apps" then i prefer to give it up. if not then i will spend my time on your solution.

Thank you very much for the help

Edited by Guest
Posted

Unfortunately only works with DirectX9 and I would also like to find a way to work in newer versions.

Posted

Unfortunately only works with DirectX9 and I would also like to find a way to work in newer versions.

If you find a solution then let me know :)

Posted
Posted (edited)

In windowed mode the message appears on the screen then resize the window to appear fullscreen will work, this program I posted the link works this way.

Edited by Belini
Posted (edited)

@gil900 i found a program that puts in fullscreen and accepts messages on the screen just has to stay open all the time: https://gc-modding.googlecode.com/files/WindowedBorderlessGaming_1.1.1.2.zip

Thank you.

I do not know if I need it.

It displays text in the the games?

If so then I need its source code.

I understood his program compiled with AutoIt3.

I'm not sure about this .. I just opened the exe file in "notepad++" and I saw that the file ends with "AU3!EA06"

so if this software is written in AutoIt3 and this software contains the function I'm looking for in the source code then all we nead to do is to ask him the source code or only this function that can display text on d3d output.

this software have a behavior of a AutoIt3 program.. the gui window sometimes responding with delay. I can imagine the "While 1" loop and the sleep($sleep) while i watching the gui delays.

Edited by Guest
Posted (edited)

It displays text in the the games?

Displays message in any game or program if it is in window mode will be in fullscreen.

I also think that this program was made in Autoit.

Edited by Belini

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...