Jump to content
Sign in to follow this  
gil900

how can i use it in autoit3 ?

Recommended Posts

gil900

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

Share this post


Link to post
Share on other sites
mrflibblehat

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

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


[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites
gil900

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

Share this post


Link to post
Share on other sites
mrflibblehat

Look into DLLOpen and DLLCall for opening and accessing DLL Functions


[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites
Belini

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

Share this post


Link to post
Share on other sites
gil900

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 gil900

Share this post


Link to post
Share on other sites
Belini

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.

Share this post


Link to post
Share on other sites
gil900

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.

Share this post


Link to post
Share on other sites
Belini

Share this post


Link to post
Share on other sites
Belini
gil900

@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 gil900

Share this post


Link to post
Share on other sites
Belini

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

Share this post


Link to post
Share on other sites
gil900

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 :)

Share this post


Link to post
Share on other sites
Belini
Belini

Share this post


Link to post
Share on other sites
Belini

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

Share this post


Link to post
Share on other sites
gil900

@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 gil900

Share this post


Link to post
Share on other sites
Belini

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×