AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

msvdm (microsoft virtual desktop manager)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
wd
Guest





PostPosted: Thu Apr 07, 2005 7:08 am    Post subject: msvdm (microsoft virtual desktop manager) Reply with quote

Hi All,
I just need a way to control moving from one desktop to the next with the wheel on my mouse.

msvdm (microsoft virtual desktop manager)

If you don't already have it, it's located hear:
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

I just need a simple script to wheel through the 4 buttons(desktops)

I can do them one at a time with send commands, but that's no way to go through life Wink

Thanks All
WD
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Thu Apr 07, 2005 5:00 pm    Post subject: Reply with quote

I do not have that desktop tool, but does it support command line parameters or shortcuts?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Thu Apr 07, 2005 6:22 pm    Post subject: Reply with quote

toralf wrote:
I do not have that desktop tool, but does it support command line parameters or shortcuts?


Yes,
Thank you, it does. ^+V, ^+1, ^+2, ^+3, ^+4

Just need to make it go from one to the other with the mouse wheel, and then back again.

Thanks
WD
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Fri Apr 08, 2005 7:51 am    Post subject: Reply with quote

Hi;
you could do something like this
Code:
CurrentScreen = 1
SendRaw, ^%CurrentScreen%

WheelUp::
  {
    CurrentScreen ++
    If CurrentScreen = 5
        CurrentScreen = 1
    SendRaw, ^%CurrentScreen%
  }

WheelDown::
  {
    CurrentScreen --
    If CurrentScreen = 0
        CurrentScreen = 4
    SendRaw, ^%CurrentScreen%
  }

*braindump**not tested*
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Apr 08, 2005 8:38 pm    Post subject: Reply with quote

Afaik, SendRaw will not translate ^ or + into modifiers. Use Send for that.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Apr 20, 2005 2:32 am    Post subject: Reply with quote

Thanks You All,

Here is the code I ended up using, with slight mod from johnny and your code plus entering ^+% instead of ^%

::::::::::::::::::::::::::
Code:
CurrentScreen = 1
Send, ^+%CurrentScreen%

WheelUp::
  {
    CurrentScreen ++
    If CurrentScreen = 5
        CurrentScreen = 1
    Send, ^+%CurrentScreen%
  }

WheelDown::
  {
    CurrentScreen --
    If CurrentScreen = 0
        CurrentScreen = 4
    Send, ^+%CurrentScreen%
  }

:::::::::::::::::::::::::::::::::::::::::::::

Thanks Again Very Happy
wdbaker
Back to top
Guest






PostPosted: Wed Apr 20, 2005 3:10 am    Post subject: Reply with quote

Ok,
After playing with it some more I needed to make a few more adjustments to get it right, here they are
Code:
CurrentScreen = 1
Send, ^+%CurrentScreen%

WheelUp::
  {
    CurrentScreen ++
    If CurrentScreen = 5
        CurrentScreen = 1
    Send, ^+%CurrentScreen%
  }
return

WheelDown::
  {
    CurrentScreen --
    If CurrentScreen = 0
        CurrentScreen = 4
    Send, ^+%CurrentScreen%
  }
return


Again thanks
wdbaker
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group