SetLayeredWindowAttributes: Is there an equivalent in Javascript?

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Posts: 51
Joined: Wed Mar 18, 2015 5:52 am

SetLayeredWindowAttributes: Is there an equivalent in Javascript?

Post 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)
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: SetLayeredWindowAttributes: Is there an equivalent in Javascript?

Post 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");
Post Reply