topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday December 12, 2024, 1:38 am
  • 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: Alt edge script  (Read 5187 times)

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
    • View Profile
    • Donate to Member
Alt edge script
« on: September 17, 2010, 06:18 AM »
I find the idea very creative and the best I have tried so far. However in practice its not working so well!
I sometimes (quite often) bring up the gui when I dont want to - for instance when clicking the back button on Firefox. I guess I must move the mouse a little too far to the edge.
It would be great to  have the "hot" area smaller.  To Exclude the very top 2inches of your left screen and maybe the bottom too in case it interferes with clicking the start menu.
any hint how I could change the script in some way?

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: Alt edge script
« Reply #1 on: September 17, 2010, 06:49 AM »
I seem to remember changing this script to limit the "hot" area, but I don't have time to look at the original script so I can see what I modified.

This looks like the part with the "hot" area defined.  Let me know if that doesn't help and I'll look again tonite:

Loop
{
  MouseGetPos,mx,my
  GetKeyState,lbutton,LButton,P
  If (mx=1919) and (my>750) and (my<875) and (lbutton="D")
  {
  keywait,LButton
  MouseMove,1917,my
  }
   If (mx=1919) and (my>750) and (my<875) and (lbutton="U")
  {
    If tabbed=0
    {
      Send,{Alt Down}{Esc}
      SetTimer,TAB,500
    }
    tabbed=1
  }
  Else

My "hot" area is a part of the lower right edge of the screen (1920 x 1200).
« Last Edit: September 17, 2010, 06:51 AM by AndyM »

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
    • View Profile
    • Donate to Member
Re: Alt edge script
« Reply #2 on: September 17, 2010, 11:58 AM »
ok thanks I'll have an experiment or two, by the way i notice your version is quite different this is mine
Loop
{
  MouseGetPos,mx,my

  If (mx=0)
  {
    If tabbed=0
    {
      Send,{Alt Down}{Tab}
      SetTimer,TAB,800
    }
    tabbed=1
  }
  Else
  {
    If tabbed=1
    {
      SetTimer,TAB,Off
      Send,{Alt Up}
      tabbed=0
    }
  }
  Sleep,50
}     


TAB: