AutoHotkey Community

It is currently May 27th, 2012, 1:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: April 30th, 2009, 7:08 pm 
Offline

Joined: April 30th, 2009, 5:20 pm
Posts: 11
Hi!,
I need to move a window whitout a caption (gui -caption)...just drag in desktop....any way to do ?
sorry about the english (i speak better in portuguese)
tks


Last edited by SeedSeifer on May 3rd, 2009, 10:13 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 11:39 am 
Bom dia :D (OK, that's the only thing I remember from the portuguese lessons which I had 3000 years ago :()

Code:
Gui, Show, w100 h100, MyStillDetectableWindowTitle
WinMove, MyStillDetectableWindowTitle,, 10, 10
Won't work?

Quote:
A GUI thread is defined as any thread launched as a result of a GUI action. GUI actions include selecting an item from a GUI window's menu bar, or triggering one of its g-labels (such as by pressing a button).

The default window number for a GUI thread is that of the window that launched the thread. Non-GUI threads use 1 as their default.

Whenever a GUI thread is launched, that thread's last found window starts off as the GUI window itself. This allows commands for windows and controls -- such as WinMove, WinHide, WinSet, WinSetTitle, and ControlGetFocus -- to omit WinTitle and WinText when operating upon the GUI window itself (even if it is hidden).

Clicking on a control while its g-label is already running from a prior click will have no effect and the event is discarded. To prevent this, use Critical as the subroutine's first line (however, this will also buffer/defer other threads such as the press of a hotkey).

The built-in variables A_Gui and A_GuiControl contain the window number and Control ID that launched the current thread. See their links for details.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 12:09 pm 
Offline

Joined: June 6th, 2006, 3:19 pm
Posts: 1654
Location: Denmark
Maybe you are looking for Easy Window Dragging from the script showcase.

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 6:52 pm 
Offline

Joined: April 30th, 2009, 5:20 pm
Posts: 11
For all help, tks! 8)
I find a way to do...after sleep a bit...hehehe
the code:
Code:
move:
MouseClick, left,,, 1, 0,D ;U
KeyWait, LButton, L
CoordMode, Mouse,screen
MouseGetPos,xpos,ypos
WinMove,WindowTitle ,, %xpos%, %ypos%
return

after this voilĂ  the window go to mouse coord !!!
Muito obrigado!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2009, 1:13 pm 
This was answered in (your?) other post! Move a window without caption


Report this post
Top
  
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: BrandonHotkey, chaosad and 16 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