Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Join Date
    Sep 2009
    Location
    Russia, Petropavlovsk-Kamchatsky
    Posts
    22

    Transparent Action Plugin

    This plugin sets the transparency of the window and the background.

    If you have any problems, write on e-mail: killer23_maska@mail.ru
    Attached Files

  2. #2
    Join Date
    Jul 2007
    Posts
    1,512
    Ok this would be really good but it crashed on close on windows 7 in using standard not flat and no matter want mode it not movable you need to look in
    to this problem part from this if you can fix it then its a good plugin and something i would use as i wanted a way to make the body transparent and
    the objects not.

  3. #3
    Join Date
    Aug 2007
    Location
    Tampon, Reunion island
    Posts
    191

    Hello !

    A very cool plugin ! But, is their a possibility for just DialogEX ?

  4. #4
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Looks like this uses MicroByte's plugin compiler which crashes on Windows Vista and Winodws 7.

  5. #5
    Join Date
    Apr 2009
    Posts
    277
    oooo, dont use my tool FGS, its a little bit buggy

    search the forum for "transparent window" there have been a few dll's that do this task, to use it on a dialog use DialogEx.GetWndHandle in place of Application.GetWndHandle

  6. #6
    Join Date
    Jun 2008
    Location
    AMSWaves
    Posts
    231
    create transparent window is easy and possible just with DLL.CallFunction use & see this function :
    Code:
    function SetLayeredWindowAttributes(hwnd, Color, Opacity)
    	
    	if Opacity > 255 then
    		Opacity = 255
    	elseif Opacity < 0 then
    		Opacity = 0
    	end
    		
    	local ret = tonumber(DLL.CallFunction("user32.dll", "GetWindowLongA",  hwnd..", -20", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)) + 524288
    	result = DLL.CallFunction("user32.dll", "SetWindowLongA", hwnd..", -20, "..ret, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    	DLL.CallFunction("user32.dll", "SetLayeredWindowAttributes",  hwnd..", "..Color..", "..Opacity..", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    end
    
    SetLayeredWindowAttributes(Application.GetWndHandle(), Math.RGBToNumber(255, 255, 255), 90)

  7. #7
    Join Date
    Feb 2009
    Posts
    1,285
    Is it possible to set just the background to be transparent ? Because this plugin (or the script) makes the entire application transparent and it's not as useful as it should.

    Bye!

  8. #8
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,634
    Quote Originally Posted by T3STY View Post
    Is it possible to set just the background to be transparent ? Because this plugin (or the script) makes the entire application transparent and it's not as useful as it should.

    Bye!
    I seen one demo that could do this but it was very unstable. Sorry I don't have the demo and have no clue whom made it, it was before I reinstalled my computer last night and I really don't remember the name anyway of the example.


    Simply Rex

  9. #9
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Quote Originally Posted by AMSWaves View Post
    create transparent window is easy and possible just with DLL.CallFunction use & see this function :
    Code:
    function SetLayeredWindowAttributes(hwnd, Color, Opacity)
    	
    	if Opacity > 255 then
    		Opacity = 255
    	elseif Opacity < 0 then
    		Opacity = 0
    	end
    		
    	local ret = tonumber(DLL.CallFunction("user32.dll", "GetWindowLongA",  hwnd..", -20", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)) + 524288
    	result = DLL.CallFunction("user32.dll", "SetWindowLongA", hwnd..", -20, "..ret, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    	DLL.CallFunction("user32.dll", "SetLayeredWindowAttributes",  hwnd..", "..Color..", "..Opacity..", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    end
    
    SetLayeredWindowAttributes(Application.GetWndHandle(), Math.RGBToNumber(255, 255, 255), 90)
    Thanks AMSWaves! Nice little script.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  10. #10
    Join Date
    Feb 2009
    Posts
    1,285
    Thanks centauri soldier, but this doesn't work on seven.. the application crashes before loading... I'm going to try it on XP but i'm sure it works there.

    Any solutions for seven ?

    Bye!

  11. #11
    Join Date
    Feb 2009
    Posts
    1,285
    OK, today I had some free time and I tested the code on seven in a few ways but there is no way to make it work; just on XP it works.
    But this code is as same as the plugin, makes the entire window to become transparent.. what I was looking for is a way to make only the background transparent, the objects in the application should always be completely visible (or, visible as I set in the object's properties for those is possible as images).

    So, i ask again if is this possible, thanks.
    Bye!

  12. #12
    Join Date
    Feb 2009
    Posts
    1,285
    No one knows the solution ?

  13. #13
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by T3STY View Post
    No one knows the solution ?
    You've got a script kiddie pumping out "plugins" from code he found elsewhere; and then he doesn't test it -- and you're suprised it doesn't work?

    The basic code has already been posted, now you can take that and adapt to other OS's if you need it.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  14. #14
    Join Date
    Oct 2009
    Location
    127.0.0.1
    Posts
    279
    This trusted plugin from Reteset found here: http://www.indigorose.com/forums/sho...=WinAPI+plugin can also set window transparency. I myself haven't tested it on windows 7 tho.
    There are 10 types of people in the world: those who understand binary, and those who don't.

  15. #15
    Join Date
    Feb 2009
    Posts
    1,285
    Quote Originally Posted by jassing View Post
    ..and you're suprised it doesn't work?
    No, really I'm not. I was just asking for a solution, not an answer to know why this doesn't work..

    Anyhow, the WinApi plugin has the same type of transparency as in the script and plugin before, the entire window with all objects in will become transparent... I was looking for something to make only the background transparent leaving all other objects opaque... But it seems this isn't possible for now..

    Bye!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts