AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tips N Tricks
Goto page Previous  1, 2, 3 ... , 25, 26, 27  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
mb777



Joined: 08 Jan 2009
Posts: 42

PostPosted: Fri Jan 09, 2009 5:36 am    Post subject: How to use gradient Background with Tab? Reply with quote

SKAN wrote:
Quote:
How to Simulate a Linear Gradient ? - Part 1 & 2
http://www.autohotkey.com/forum/viewtopic.php?p=61081#61081

What is a Linear Gradient?

There is something familiar about the snapshot above!
Does it look similar to an Installer's background?
.... etc.....


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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Sun Jan 11, 2009 8:01 am    Post subject: Re: How to use gradient Background with Tab? Reply with quote

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
View user's profile Send private message
fsnow55



Joined: 08 Jun 2006
Posts: 33

PostPosted: Sat Mar 28, 2009 8:55 pm    Post subject: Re: TipsNTricks: How to programmatically Tile/Cascade window Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Wed Apr 01, 2009 5:21 am    Post subject: Re: TipsNTricks: How to programmatically Tile/Cascade window Reply with quote

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
View user's profile Send private message
Visioneer



Joined: 19 Nov 2007
Posts: 67

PostPosted: Thu May 14, 2009 8:21 pm    Post subject: Reply with quote

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

Quote:

This sounds like a job for the shell hook method explained here http://www.autohotkey.com/forum/viewtopic.php?p=123323#123323
You'll get notified immediately when the screensaver starts instead of waiting inside a loop.


Thanks
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Thu May 28, 2009 11:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Drugwash



Joined: 07 Sep 2008
Posts: 608
Location: Ploiesti, RO

PostPosted: Fri May 29, 2009 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
aandroyd



Joined: 28 Jan 2009
Posts: 5
Location: MN, USA

PostPosted: Wed Jun 10, 2009 1:44 am    Post subject: Reply with quote

SKAN you are the greatest! this has helped out so much Very Happy

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
View user's profile Send private message
Maria-



Joined: 29 May 2009
Posts: 17

PostPosted: Sun Jul 05, 2009 8:49 am    Post subject: Reply with quote

similar topic. sound alert whenver a network cable is unplugged. any idea?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Wed Jul 08, 2009 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message
ballyhairs



Joined: 02 Feb 2009
Posts: 112

PostPosted: Sun Jul 26, 2009 10:45 am    Post subject: Vista Start Button Reply with quote

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 Sad
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Sun Jul 26, 2009 12:03 pm    Post subject: Re: Vista Start Button Reply with quote

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. Sad
Back to top
View user's profile Send private message
spazpunt



Joined: 12 Jul 2009
Posts: 71

PostPosted: Sun Jul 26, 2009 2:45 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message Send e-mail
ballyhairs



Joined: 02 Feb 2009
Posts: 112

PostPosted: Sun Jul 26, 2009 2:51 pm    Post subject: Reply with quote

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 Very Happy


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 Smile
I love you
Back to top
View user's profile Send private message
J



Joined: 28 Jul 2009
Posts: 1

PostPosted: Tue Jul 28, 2009 9:40 pm    Post subject: wparam 41504 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... , 25, 26, 27  Next
Page 26 of 27

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group