Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 09:21:56 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Make window transparent when moving it.  (Read 14224 times)

cheeaun

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
DONE: Make window transparent when moving it.
« on: September 29, 2006, 01:19:05 PM »
When moving a window, (Click + Drag), the window becomes semi-transparent. That's all.

Can be done?  ;)

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #1 on: September 29, 2006, 09:02:07 PM »
There's a Display setting, under Appearances>Effects, that toggles "show window contents while dragging".  If you turn this off, is this what you want?

cheeaun

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #2 on: September 29, 2006, 09:16:52 PM »
uh, no. I just want the window the be alpha-transparent, maybe 50%, while the window is moved with the cursor.

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #3 on: September 30, 2006, 12:34:51 AM »
there's plenty of free utils that can do this - i thought someone would have mentioned one by now.

OR, i might be just mistaking it with the way nvidia cards can do it with the options they add to the display properties config.

if i remember the name of a program that does it, i'll post again.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #4 on: September 30, 2006, 05:15:38 AM »
I have tried to do this in ahk (it's about 10 lines of code), but my first experiment didn't work, possibly because of a, ahk bug (or i'm really dumb).
I'll post in the ahk forum the info about this to see if i get any response.

Blaster

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 85
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #5 on: September 30, 2006, 07:52:06 AM »
I wrote something that can help you if you are moving Forms by clicking on it, not the captionBar...
if this can help you...

bool draging=false;
bool a=false;

void MoveForm()
{
ReleaseCapture();
SNDMSG( Form1->Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0 );
}


__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormMouseDown(TObject *Sender, TMouseButton Button,
  TShiftState Shift, int X, int Y)
{
draging=true;
a=true;


}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift, int X,
  int Y)
{
if(a)
{
if(draging)
{
Form1->AlphaBlendValue=127;
MoveForm();
Form1->AlphaBlendValue=255;
}
}
a=false;


}

This, off course, could be written better, but i'm in a hurry... :-)
« Last Edit: September 30, 2006, 08:04:39 AM by Blaster »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #6 on: September 30, 2006, 09:05:06 AM »
Here's your solution!


TransparentMove v1 created 30-09-2006:
Quote
When the user presses ctrl and drags the window, it becomes trasnparent and is moved.
[Forum Topic][.ahk Version][.exe Version]

Blaster

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 85
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #7 on: September 30, 2006, 12:28:03 PM »
I don't understand, do you need this for your app, or for any window in your OS...??

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #8 on: September 30, 2006, 01:43:01 PM »
I don't understand, do you need this for your app, or for any window in your OS...??
Notice that the solution i presented above is a complete program. You download the ".exe" version, execute it and it'll display an icon on the tray (which should be in the right corner of the screen). To quit it, just right-click the icon and select "exit".

Blaster

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 85
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #9 on: October 01, 2006, 03:39:01 AM »
No, no, jgpaiva, I downloaded your app and it's ok...
 i asked cheeaun this because he said:

Quote
When moving a window, (Click + Drag), the window becomes semi-transparent. That's all.

Can be done? 


Cheeaun, do you need this in your app, or do you want your OS to behave like this...??



jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #10 on: October 01, 2006, 05:00:24 AM »
No, no, jgpaiva, I downloaded your app and it's ok...
:-[ :-[ Sorry, i misread your post and understood you were cheeaun  :-[ :-[

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #11 on: October 01, 2006, 10:11:52 PM »
cheeaun: are you the phoenity guy, by any chance?

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 727
    • View Profile
    • Just Plain Super
    • Read more about this member.
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #12 on: October 20, 2006, 09:50:22 PM »
you meen the transparent view that microsoft made in there os which makes the window transparent when you drag it, slowing down a slow computer?
edit: you know, that may have just been somthing added by nvidia... my bad
[Insert really cool signature here]
« Last Edit: October 20, 2006, 09:52:12 PM by nite_monkey »

dragon788

  • Participant
  • Joined in 2011
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #13 on: January 06, 2011, 07:22:20 PM »
jgpaiva, I know you haven't played with this in FOREVER, but I very much like this app. The only issue I ran into is that it won't automatically make the next window you click transparent, it only works for the currently highlighted window, whether it is the one clicked while holding control or not. It would be really nice if the transparency followed the click and wasn't locked to the currently active window.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #14 on: January 11, 2011, 11:38:13 AM »
Hi dragon788!
Unfortunately, I can't compile the script right now as I'm now a Mac user. However, if someone is able to compile the script, I've attached the .ahk version with the fix you requested to this post.

ps: another option is for you to install autohotkey and just run the file I attached to this post.

Winkie

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 82
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #15 on: January 15, 2011, 04:18:59 AM »
However, if someone is able to compile the script

Done, also applied two tweaks:
- Prohibited moving of maximized windows
- Changed CTRL + left click to WIN + left click

See attachment to this post for exe + ahk.

HTH,
Winkie
« Last Edit: January 15, 2011, 05:37:51 AM by Winkie »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Make window transparent when moving it.
« Reply #16 on: January 15, 2011, 12:13:17 PM »
Thanks Winkie!