Renommer le menu démarrer
Publié : sam. 18/févr./2006 10:12
Voila un code permettant de changer le texte dans la barre de tâches et d'appliquer quelques petits effets amusants :
Code : Tout sélectionner
Procedure SetDemarrer(newtexte$, state)
c$ = ""
OpenLibrary(0, "user32.dll")
handle.l = CallFunction(0, "FindWindowA", "Shell_TrayWnd", "")
handle2.l = CallFunction(0, "GetWindow", handle, 5)
CallFunction(0, "GetClassNameA", handle2, @c$, 100)
If c$ = "Button"
CallFunction(0, "SetWindowTextA", handle2, newtexte$)
ShowWindow_(handle2, state)
EndIf
handle3.l = CallFunction(0, "GetWindow", handle2, 2)
CallFunction(0, "GetClassNameA", handle3, @c$, 100)
If c$ = "Button"
CallFunction(0, "SetWindowTextA", handle3, newtexte$)
ShowWindow_(handle3, state)
EndIf
handle4.l = CallFunction(0, "GetWindow", handle3, 2)
CallFunction(0, "GetClassNameA", handle4, @c$, 100)
ShowWindow_(handle4, state)
If c$ = "Button"
CallFunction(0, "SetWindowTextA", handle4, newtexte$)
EndIf
CloseLibrary(0)
EndProcedure
SetDemarrer("Awear", 1)