Oh found it all i need was to put "Opt("WinTitleMatchMode", 2)" in my script :') and then i can use something like WinSetTrans("Google Chrome", "", 210) The full code if someone wants it: #include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ListviewConstants.au3>
Global $Handle, $Value, $aHandle, $aValue
Opt("WinTitleMatchMode", 2)
Opt("GUIOnEventMode", 1)
Main()
Func Main()
$Main = GUICreate("Transparent Test", 420, 420, 100, 200)
$Handle = GUICtrlCreateInput("Enter program...", 50, 25)
$Value = GUICtrlCreateInput("Enter Value. 0/255", 50, 50)
$Send = GUICtrlCreateButton("Make Transparent", 50, 75)
GUICtrlSetOnEvent($Send, "Submit")
GUISetState()
GUISetOnEvent($GUI_EVENT_CLOSE, "stop")
EndFunc
Func Submit()
$aHandle = GUICtrlRead($Handle)
$aValue = GUICtrlRead($Value)
WinSetTrans($aHandle, "", $aValue)
EndFunc
Func stop()
Exit
EndFunc
While 1
Sleep(50)
WEnd