PedroWarlock Posted June 22, 2018 Posted June 22, 2018 (edited) @AdmiralAlkex 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" _SDL_Init($_SDL_INIT_VIDEO) _SDL_Init_ttf() _SDL_Startup_gfx() _TTF_Init() $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) ;----- _SDL_Flip($pSurface) $test+=1 WEnd Edited June 22, 2018 by PedroWarlock
careca Posted July 14, 2018 Posted July 14, 2018 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. Spoiler 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 Au3Record.exe
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