Code: Select all
SendMode Input
#SingleInstance Force
#UseHook on
#HotkeyInterval 0
#NoEnv
#MaxThreads
Process, priority, , High
SetWorkingDir %A_ScriptDir%
Setbatchlines, -1
SetKeyDelay , -1, -1
SetMouseDelay, -1
SetControlDelay, -1
SetWinDelay, -1
SetDefaultMouseSpeed, 0
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
Gui ItemsBasico: +AlwaysOnTop +LastFound +ToolWindow -Caption
Win_TransColor:=0x123456
Gui ItemsBasico: Color, %Win_TransColor%
MainHandle:=WinExist()
Gui ItemsBasico: Add, Picture, X5 Y5, imageName1.png
Gui ItemsBasico: Add, Picture, X50 Y5, imageName2.png
Gui ItemsBasico: Show, x0 y0 w500 h800 NoActivate, Items
WinSet, TransColor, %Win_TransColor%, ahk_id %MainHandle%
; first attempt to change the "ClassNN" of the control
GuiControl ItemsBasico: Text, Static1, imageName1
GuiControl ItemsBasico: Text, Static2, imageName2
; second attempt to change the "ClassNN" of the control
ControlSetText ItemsBasico: Static1, imageName1, Items
ControlSetText ItemsBasico: Static2, imageName2, Items