topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 4:23 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Modified AltEdge  (Read 5678 times)

jkluge

  • Participant
  • Joined in 2010
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Modified AltEdge
« on: November 24, 2010, 11:31 AM »
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
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

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 588
  • The Gent with the White Hat
    • View Profile
    • Donate to Member
Re: Modified AltEdge
« Reply #1 on: November 24, 2010, 10:36 PM »
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
    • View Profile
    • Donate to Member
Re: Modified AltEdge
« Reply #2 on: December 17, 2010, 10:06 AM »
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, 10:09 AM by delwoode »

CSWinnall

  • Participant
  • Joined in 2017
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Re: Modified AltEdge
« Reply #3 on: August 03, 2017, 08:25 PM »
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.