Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Remap pgdn to multiple keys


  • Please log in to reply
4 replies to this topic
vanlooverenkoen
  • Members
  • 3 posts
  • Last active: Oct 30 2015 12:39 PM
  • Joined: 29 Oct 2015

How do I remap PageDown key to (ctrl + win + left)

 

what tried is this: 

PgDn::{ctrl}{LWin}{Left}

PgDn::{ctrl down}{LWin down}{Left}{ctrl up}{LWin up}

PgDn::{ctrl down}{LWin down}{Left}{LWin up}{ctrl up}

 

but it doesn't work

Does anyone know how to do this?



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

Try the Send command. PgDn Send ^#{Left}. Check out the ^ and # symbols. (That page is technically for defining hotkeys, but you can use them within the Send command.)



vanlooverenkoen
  • Members
  • 3 posts
  • Last active: Oct 30 2015 12:39 PM
  • Joined: 29 Oct 2015

nowp does not work.

It just types "^#{Left}" but it doesn't do the desktop change to left desktop

 

http://www.howtogeek...hnical-preview/

 

  • Windows Key + Ctrl + Left / Right – Switch to the virtual desktop on the left or right.


Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

It shouldn't type those out. (I also made a typo where I forgot the double colon for the hotkey... PgDn::Send ^#{Left}. That should only be typed out literally as you see it in the code if you use SendRaw or the {Raw} "key".

 

I believe another thread though mentioned having to disable the native hotkey for the remap to take effect. That didn't make any sense to me, but you can check it out here: http://autohotkey.co...php?f=5&t=10012It is for the same purpose as remapping Win+Ctrl+Left/Right. So try including in your script

 

^#Left::return
^#Right::return


vanlooverenkoen
  • Members
  • 3 posts
  • Last active: Oct 30 2015 12:39 PM
  • Joined: 29 Oct 2015

OMG! Thanks!

 

This is the code I used, and it worked!

 

PgUp::Send, ^#{Left}
PgDn::Send, ^#{Right}