Page 1 of 1

SetLayeredWindowAttributes: Is there an equivalent in Javascript?

Posted: Sat Sep 25, 2021 6:09 am
by loulou2522
Is there an equivalent to these two api's function in Spiderbasic
SetWindowLong_(WindowID(#window_2), #GWL_EXSTYLE, #WS_EX_LAYERED)
SetLayeredWindowAttributes_(WindowID(#window_2), RGB(color,color,color), 0 , #LWA_COLORKEY)
Thanks in advance

// Subject adjusted (Peter)

Re: SetLayeredWindowAttributes: Is there an equivalent in Javascript?

Posted: Sat Sep 25, 2021 12:25 pm
by Peter
It would be nice of you to explain in the future what these API calls do.

Code: Select all

Enumeration
  #Window1
  #Window2
EndEnumeration

OpenWindow(#Window1, 100, 100, 200, 100, "OpacityWindow1")
OpenWindow(#Window2, 200, 200, 200, 100, "OpacityWindow2")

WID = WindowID(#Window2)

! $(v_wid.element).css("opacity", "0.5");