ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: ALT-TAB edge of the screen (new)

<< < (4/6) > >>

AndyM:
I've been trying to change the code, could anyone help me do 2 things:

1. Invoke ALT + TAB when at the right edge of the screen
2. Have the program work not on the whole edge, but on a certain part (eg. the middle)
-philip2005 (February 20, 2008, 01:35 PM)
--- End quote ---

Probably revise the If(mx=0) line to If(mx=whatever your right edge is and my is greater than the top of your middle range but less than the bottom)

AndyM:
Here's the line I have to invoke the script by holding the mouse against the right edge of my monitor (it's wide 1920x1200) and only in a large center area:

  If (mx=1919) and (my>200) and (my<800)

I also prefer the Alt-Escape behavior to Alt-Tab, so I changed two lines to:

   Send,{Alt Down}{Esc}

This is cool, I'm keeping it!

Thanks Skrommel!!!

skrommel:
 :) The first version I made, before reading the request properly, again, actually changed programs as they were layed out on the Taskbar. Much harder to do, maybe not so useful.

Skrommel

AndyM:
If I drag a window border all the way to the right edge, I don't want to Alt-Tab/Esc, so I checked first if the Left Mouse Button wasn't down, dragging:

--- ---Loop
{
  MouseGetPos,mx,my
  GetKeyState,lbutton,LButton,P
  If (mx=1919) and (my>200) and (my<800) and (lbutton="U")
  {
    .
    .
    . Except as soon as I let go, the script does it's thing.  Any clues on how to fix this?

philip2005:
Thank you so much AndyM and skrommel --> It's perfect!!!!  :Thmbsup:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version