DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Modified AltEdge  (Read 7,510 times)

jkluge

  • Participant
  • Joined in 2010
  • *
  • Posts: 1
Modified AltEdge
« on: November 24, 2010, 05:31 PM »
Hey,

i modified AltEdge today - maybe someone else finds this useful, too:

When you move the mouse to the left edge (4 pixels or closer), you can TAB through the open apps.
Move the mouse up and down to select a window.
Also just touching the edge won't do anything, so no problems with accidental hits.

The new code for the loop, the TAB function is gone:
Spoiler (click to show/hide)
Loop
{
  MouseGetPos,mx,my

  If (mx<5)
  {
    If tabbed=0
    {
        Send,{Alt Down}{Tab}
Send,{Alt Down}{Left}
old_my := my
    }

    diff_my := old_my - my

    If (diff_my>30)
    {
old_my := my
Send,{Alt Down}{Left}
    }
    If (diff_my<-30)
    {
old_my := my
Send,{Alt Down}{Right}
    }

    tabbed=1

  }
  Else
  {
    If tabbed=1
    {
      Send,{Alt Up}
      tabbed=0
    }
  }
  Sleep,50
}     


Cheers,
Janis

worstje

  • The Gent with the White Hat
  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 589
    • Coding Snacks
    • Participated in NANY Challenge Three Times
Re: Modified AltEdge
« Reply #1 on: November 25, 2010, 04:36 AM »
I never used the original, and probably won't use yours. But thanks for sharing; I am sure someone will find a use for it! :)

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
Re: Modified AltEdge
« Reply #2 on: December 17, 2010, 04:06 PM »
hmm interested it has a unexpected effect when you have Total commander open! It tabs through the total commander open tabs!
Edit, hey its great for use with firefox! just move the mouse to the side and you go back a page!
« Last Edit: December 17, 2010, 04:09 PM by delwoode »

CSWinnall

  • Participant
  • Joined in 2017
  • *
  • Posts: 1
Re: Modified AltEdge
« Reply #3 on: August 04, 2017, 01:25 AM »
I've looked all over but I'm trying to add a 3 second delay before the script runs so that i don't accidentally run the script when the mouse touches the edge of the screen. his versions is better than the original imo.  but it still switches screen with accidental touches.  A short delay would fix this.

Original address: https://www.donationcoder.com/forum/index.php?topic=24685.0