J'aurai besoin de petits conseils sur l'utilisation de ce script :
Code : Tout sélectionner
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <FontConstants.au3>
Global $tRECT, $hFont, $hOldFont, $hDC
HotKeySet("{ESC}", "_Exit")
$tRECT = DllStructCreate($tagRect)
DllStructSetData($tRECT, "Left", 5)
DllStructSetData($tRECT, "Top", 5)
DllStructSetData($tRECT, "Right", 250)
DllStructSetData($tRECT, "Bottom", 50)
$hDC = _WinAPI_GetDC(0)
$hFont = _WinAPI_CreateFont(50, 0, 0, 0, 400, False, False, False, $DEFAULT_CHARSET, _
$OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, 'Arial')
$hOldFont = _WinAPI_SelectObject($hDC, $hFont)
_WinAPI_SetTextColor($hDC, 0x0000FF)
_WinAPI_SetBkColor($hDC, 0x000000)
; comment next line to get black background instead of transparent one
_WinAPI_SetBkMode($hDC, $TRANSPARENT)
While 1
_WinAPI_DrawText($hDC, "Hello world!", $tRECT, $DT_CENTER)
Sleep(100)
WEnd
Func _Exit()
_WinAPI_SelectObject($hDC, $hOldFont)
_WinAPI_DeleteObject($hFont)
_WinAPI_ReleaseDC(0, $hDC)
_WinAPI_InvalidateRect(0, 0)
$tRECT = 0
Exit
EndFunc ;==>_Exit
Code : Tout sélectionner
$tRECT = DllStructCreate($tagRect)
DllStructSetData($tRECT, "Left", 1)
DllStructSetData($tRECT, "Top", 850)
DllStructSetData($tRECT, "Right", 75)
DllStructSetData($tRECT, "Bottom", 1440)
Code : Tout sélectionner
$tRECT = DllStructCreate($tagRect)
DllStructSetData($tRECT, "Left", 1)
DllStructSetData($tRECT, "Top", 815)
DllStructSetData($tRECT, "Right", 75)
DllStructSetData($tRECT, "Bottom", 1440)
Ou alors peut on afficher du texte sur une fenetre voulu ? parce que j'ai realisé que le texte disparraissait sur itune , jeux vidéo , et films
Est-ce possible de faire changer la couleur du texte par une variable exterieur ? :
Je lance le menu = texte1 = ON en rouge = texte2 = OFF en vert
J'appui sur une touche et les couleur s'inverse. ON vert et OFF rouge
Merci pour vos futur réponses =)


