AutoHotkey Community

It is currently May 27th, 2012, 12:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: February 14th, 2010, 9:51 am 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
I'm wondering if there's some way to make a given window not draggable? In other words, I'd like to take away the ability of the mouse to click and drag the window. The window I'm trying to control isn't an AHK window, its some other program.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2010, 10:08 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
I would use #IfWinActive to make it so click and drag dosen't work in that window.
Code:
#IfWinActive , ahk_class IEFrame ;Internet Explorer
$LButton::Send {LButton}
Works as long as they don't click from another window onto the title bar and hold to drag.


Last edited by None on February 14th, 2010, 5:27 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2010, 10:26 am 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
Is this a property I can set once, or would I need to leave the AHK script running for it to work?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2010, 5:29 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
You would have to leave AutoHotkey running For this to work


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2010, 7:33 pm 
If you can remove the windows caption using postmessage, controlmove or DllCall() then it can be run once.
Just have to find the appropriate messages or constants (in theory).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2010, 9:44 pm 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
http://www.autohotkey.com/forum/topic36987.html

For some examples


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad, jrav, Yahoo [Bot] and 22 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