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: Alt edge script  (Read 6,749 times)

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
Alt edge script
« on: September 17, 2010, 11: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
Re: Alt edge script
« Reply #1 on: September 17, 2010, 11: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:

Code
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, 11:51 AM by AndyM »

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
Re: Alt edge script
« Reply #2 on: September 17, 2010, 04:58 PM »
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:

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