| View previous topic :: View next topic |
| Author |
Message |
mb777
Joined: 08 Jan 2009 Posts: 42
|
Posted: Fri Jan 09, 2009 5:36 am Post subject: How to use gradient Background with Tab? |
|
|
Is it possible to use this as a background with a tab. I am trying, but cannot make the tab transparent for the image to show through |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Sun Jan 11, 2009 8:01 am Post subject: Re: How to use gradient Background with Tab? |
|
|
| mb777 wrote: | | Is it possible to use this as a background with a tab. |
I do not think so. Most of the standard controls use window color to paint it background and to workaround it would be a great mess. |
|
| Back to top |
|
 |
fsnow55
Joined: 08 Jun 2006 Posts: 33
|
Posted: Sat Mar 28, 2009 8:55 pm Post subject: Re: TipsNTricks: How to programmatically Tile/Cascade window |
|
|
SKAN, I'd been using variants of your programs, with a hotkey to tile
all windows or cascade them. I'd like to have a little more control
though, but don't know if it can be done:
1. tile only selected windows
Say there are 5 windows on the desktop. I'd like to tile just 2 of them (select with Control-LMB) ie. the 2 selected windows gets tiled on top of the other windows.
2. Cascade all windows based on a selected windows
size
Say there're 5 windows on the desktop. I resize one of them (thus it becomes the topmost window) and cascade all windows. All windows sizes will be the same size as the selected one, but cascaded behind it.
Thanks. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Wed Apr 01, 2009 5:21 am Post subject: Re: TipsNTricks: How to programmatically Tile/Cascade window |
|
|
| fsnow55 wrote: | 1. tile only selected windows
Say there are 5 windows on the desktop. I'd like to tile just 2 of them (select with Control-LMB) ie. the 2 selected windows gets tiled on top of the other windows. |
I do not get the idea. The exact facility is already available in XP atleast.
You may select any number of Windows from taskbar with Ctrl+LButton and right click and select Tile windows from Context menu
| Quote: | 2. Cascade all windows based on a selected windows
size
Say there're 5 windows on the desktop. I resize one of them (thus it becomes the topmost window) and cascade all windows. All windows sizes will be the same size as the selected one, but cascaded behind it. |
For custom cascading, we will have to use WinMove on every other window on Desktop.. |
|
| Back to top |
|
 |
Visioneer
Joined: 19 Nov 2007 Posts: 67
|
Posted: Thu May 14, 2009 8:21 pm Post subject: |
|
|
Great works SKAN,
This thread is so long that I fear that the very important:
How to Hook on to Shell to receive its messages is
lost in the sauce.
But anyway, could you add an experiment or thread or PM me
on how to get instant onMessage notification of when a screensaver
activates. Hopefully it should work on W98-XP-Vista all windows
versions.
This thread says that your technique could do this but I can't see it anywhere. orbik said in:
http://www.autohotkey.com/forum/topic31038.html
Thanks |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Thu May 28, 2009 11:45 am Post subject: |
|
|
Visioneer, Sorry for the late reply.
| Quote: | | How to get instant onMessage notification of when a screensaver activates. |
| Code: | Process, Priority,, High
Gui +LastFound
hWnd := WinExist()
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
Return
ShellMessage( wParam,lParam ) {
If ( wParam = 1 ) ; HSHELL_WINDOWCREATED := 1
{
WinGet, PN, ProcessName, ahk_id %lParam%
If ( SubStr(PN,-3) = ".scr" )
SetTimer, ScreenSaverHandler, -1
}
}
ScreenSaverHandler:
Send {Esc} ; Cancel ScreenSaver
MsgBox, ScreenSaver was detected and cancelled immediately
Return |
| Quote: | | Hopefully it should work on W98-XP-Vista all windows versions. |
I hope. |
|
| Back to top |
|
 |
Drugwash
Joined: 07 Sep 2008 Posts: 608 Location: Ploiesti, RO
|
Posted: Fri May 29, 2009 4:04 pm Post subject: |
|
|
| RegisterShellHookWindow does not exist in Win98SE's user32.dll so the above doesn't work. Not sure about WinME, but I guess the info at MSDN is accurate that it has only been implemented beginning with Win2000. |
|
| Back to top |
|
 |
aandroyd
Joined: 28 Jan 2009 Posts: 5 Location: MN, USA
|
Posted: Wed Jun 10, 2009 1:44 am Post subject: |
|
|
SKAN you are the greatest! this has helped out so much
a couple notes i have: on experiment 3 (the volume OSD), where you have
If ( wParam = 12 AND ( (lParam>>16) >= 8 OR (lParam>>16) <= 10) )
you should have
If ( wParam = 12 AND ( (lParam>>16) >= 8 AND (lParam>>16) <= 10) )
otherwise the OSD triggers for every wParam=12 event
also, for anybody out there using a standard DELL multimedia keyboard (such as SK-8135 ), it might be helpful to note that the volume wheel uses (lParam>>16)=4106 for volume up and (lParam>>16)=4105 for volume down _________________ -AJ |
|
| Back to top |
|
 |
Maria-
Joined: 29 May 2009 Posts: 17
|
Posted: Sun Jul 05, 2009 8:49 am Post subject: |
|
|
| similar topic. sound alert whenver a network cable is unplugged. any idea? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Wed Jul 08, 2009 5:16 am Post subject: |
|
|
| aandroyd wrote: | | the OSD triggers for every wParam=12 event |
Thank you. I will correct it.
| Maria- wrote: | | similar topic. sound alert whenver a network cable is unplugged. any idea? |
Sorry! I do not know of a solution for it.
( Wake up forum! Wake up! ) |
|
| Back to top |
|
 |
ballyhairs
Joined: 02 Feb 2009 Posts: 112
|
Posted: Sun Jul 26, 2009 10:45 am Post subject: Vista Start Button |
|
|
Hi Skan.. Is it possible you make a working solution to hide/disable Vista start button? Because the one you have doesn't work on Vista  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Sun Jul 26, 2009 12:03 pm Post subject: Re: Vista Start Button |
|
|
| ballyhairs wrote: | | Is it possible you make a working solution to hide/disable Vista start button? |
Vista Start Button is a not a standard button (or) is not a button at all. ( you can see it with AU3 spy utility ). I do not know of a way to hide/alter it.  |
|
| Back to top |
|
 |
spazpunt
Joined: 12 Jul 2009 Posts: 71
|
Posted: Sun Jul 26, 2009 2:45 pm Post subject: |
|
|
the answer exist google vista start killer
do not worry
lifehacker recommends it.
it will basically hide the start button and you can get it by using the windows key  |
|
| Back to top |
|
 |
ballyhairs
Joined: 02 Feb 2009 Posts: 112
|
Posted: Sun Jul 26, 2009 2:51 pm Post subject: |
|
|
| spazpunt wrote: | the answer exist google vista start killer
do not worry
lifehacker recommends it.
it will basically hide the start button and you can get it by using the windows key  |
I know and I have been using it for few months, but what I don't like about it is that its always running in the background and sometimes it stops working and I have to kill it and start it again.
But oh well... better than nothing
Thanks for taking the time to try and help anyway
I love you |
|
| Back to top |
|
 |
J
Joined: 28 Jul 2009 Posts: 1
|
Posted: Tue Jul 28, 2009 9:40 pm Post subject: wparam 41504 |
|
|
| Found this helpful. wparam 28931 was required to make this work correctly under XP, but using a windows spy, wparam 41504 is posted when the user initiates the process not 28931. Is there a reason for this? |
|
| Back to top |
|
 |
|