AutoHotkey Community

It is currently May 27th, 2012, 11:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 10th, 2009, 7:18 pm 
Offline

Joined: June 18th, 2009, 4:39 pm
Posts: 19
Location: Salt Lake City, Utah
I want to press a hotkey and either move the active window up or down in its z-order, but still keep it active. I can't find any forum posts on this. Does anyone know how to do it? Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 2:01 am 
not sure what u meant by Z-order, but it can be done by WinMove


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 2:23 am 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6074
Location: San Diego, California
@kylirh -- I have only found references to DLL calls which I don't have sufficient knowledge to implement. AHk does have documentation and discussion on DLL calls. I just have not persued that information.

GetTopWindow Function
http://msdn.microsoft.com/en-us/library/ms633514(VS.85).aspx
GetNextWindow Function
http://msdn.microsoft.com/en-us/library/ms633509(VS.85).aspx

What exactly are you trying to accomplish? Perhaps it can be done a different way.
Did you know that it is possible to communicate with windows that are not 'top' eg. controlsend, controlget, controlclick?




Anonymous wrote:
not sure what u meant by Z-order, but it can be done by WinMove
I you are not sure what was meant, why did you reply? WinMove will not help. Your reply suggests you are none-too-bright.

http://en.wikipedia.org/wiki/Z-order -- Z-order is an ordering of overlapping two-dimensional objects,
such as windows in a graphical user interface (GUI) or shapes in a vector graphics editor.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 4:42 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
In this topic by Lexikos, you may check the JustActivate() function,
which uses GetPrevWindow(), which uses GetPrevWindow_EnumChildProc().

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 9:07 pm 
Offline

Joined: June 18th, 2009, 4:39 pm
Posts: 19
Location: Salt Lake City, Utah
Thank you everyone for replying.

@Leef_me - I want to figure this out mostly for educational purposes. I would like to have a hot key that will push the active window down so I can see whatever is under it and then push it back up with another hot key. I know alt-tab does this, but I still wanted to have more granular control over it.

I'll look into this more at a later time and post anything I might find out. But thanks again for responding. I love the AutoHotKey community. :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bowen666, Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group