Jump to content

Recommended Posts


Hi, how can I put the exact location of the text on the screen? (Google translator)

_SDL_stringRGBA = I can put the location, but not the font size and style.


_TTF_RenderText_Solid = I can put the font and font style, but I can not change the position.



#Include "SDL_ttf.au3"
#Include "SDL.au3"
#Include "SDL_gfx.au3"

#Include "SDL_sprig.au3"
#Include "SDL_sge.au3"

$pFont = _TTF_OpenFont(@WindowsDir & "\fonts\arial.ttf", 28)

EnvSet("SDL_VIDEO_WINDOW_POS", 0 & ", " & 0)
;~ $pSurface = _SDL_GuiCreate(@ScriptName, 640, 480, 32, $_SDL_FULLSCREEN)
$pSurface = _SDL_GuiCreate(@ScriptName, 640, 480, 32, BitOR($_SDL_SWSURFACE, $_SDL_NOFRAME))

Local $test=0
While 1
    _SDL_FillRect($pSurface, 0, 0x000000)

    ;Test 1
    _SDL_stringRGBA($pSurface, 200, 100, $test, 0xFF, 0xFF, 0xFF, 0xFF)

    ;Test 2
    $sMessage = _TTF_RenderText_Solid($pFont, $test, 0x00FF00)
    _SDL_BlitSurface($sMessage, 0, $pSurface, 0)



Edited by PedroWarlock
Link to post
Share on other sites
  • 4 weeks later...

You have to take a look inside SDL_ttf.au3 to see how is the text being placed to then manipulate it, and the same for the _SDL_stringRGBA, check correspondent udf and investigate.


Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...