Welcome Guest.   Make a donation to an author on the site October 25, 2014, 06:17:15 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Windows Control  (Read 2556 times)
Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« on: January 17, 2009, 03:26:39 PM »

Function: Restore or Maximize Windows with Double Click with the Right Mouse Anywhere Inside a Window

When a window is in restore mode then double clicking with the right mouse anywhere inside the window will maximize the window.
If the window is in maximized view then doubling clicking with the right mouse will restore the window.
Logged
kwacky1
Supporting Member
**
Posts: 178



i am Cody's cousin

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: January 18, 2009, 05:25:09 AM »

Here you go, try RestMax

Edit: Uploaded correct AHK

* RestMax.exe (198.91 KB - downloaded 209 times.)
* RestMax.ahk (0.81 KB - downloaded 134 times.)
« Last Edit: January 19, 2009, 04:41:49 AM by kwacky1 » Logged

Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #2 on: January 18, 2009, 11:53:56 AM »

Thanks for filling out the request.

The exe works fine, but I'm not quite sure why but the ahk file is causing me to get a screen distortion when using this.

Before:
http://i42.tinypic.com/2ezu04y.jpg

After:
http://i43.tinypic.com/5l2g6f.png
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: January 18, 2009, 02:57:35 PM »

 smiley Try RightMax!

This one catches the rightclicks! It slows down single rightclicks, though...

Skrommel

[copy or print]
;RightMax.ahk
; Doublerightclick in a window to maximize or restore it
;Skrommel @ 2009

#NoEnv
#SingleInstance,Force
SetWinDelay,0
CoordMode,Mouse,Screen
SendMode Input

RegRead,dblclickspeed,HKEY_CURRENT_USER,Control Panel\Mouse,DoubleClickSpeed
SysGet,dblclickx,36
SysGet,dblclicky,37
time:=A_TickCount
Return

$RButton::
oldmx:=mx
oldmy:=my
oldmwin:=mwin
oldmctrl:=mctrl
MouseGetPos,mx,my,mwin,mctrl
oldtime:=time
time:=A_TickCount
SetTimer,RIGHT,% "-" dblclickspeed
If (mx<oldmx-dblclickx Or mx>oldmx+dblclickx Or my<oldmy-dblclicky Or my>oldmy+dblclicky Or time-oldtime>dblclickspeed Or mwin<>oldmwin)
  Return
SetTimer,RIGHT,Off
WinGet,minmax,MinMax,ahk_id %mwin%
If minmax=0
  WinMaximize,ahk_id %mwin%
Else
  WinRestore,ahk_id %mwin%
Return

RIGHT:
Click,Right
Return
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #4 on: January 18, 2009, 06:38:45 PM »

Would someone be kind enough to tweak the script to detect dragging of the right mouse button because it interferes with mouse gestures on Opera.
Logged
kwacky1
Supporting Member
**
Posts: 178



i am Cody's cousin

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: January 19, 2009, 03:31:43 AM »

The exe works fine, but I'm not quite sure why but the ahk file is causing me to get a screen distortion when using this.

Sorry about that  embarassed, I uploaded the wrong ahk, change line 20
from
[copy or print]
Click, Right
to
[copy or print]
Send, {Alt}
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.028s | Server load: 0.14 ]