Exact same code works on 1 desktop but not the other?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
milkygirl90
Posts: 565
Joined: 10 Nov 2020, 21:22

Exact same code works on 1 desktop but not the other?

11 Jun 2021, 19:42

Code: Select all

<!WheelDOWN::  ;only works on Desktop 1
~LAlt & WheelDOWN:: ;only works on Desktop 2. 
SendRaw z
return

Code: Select all

<^<!WheelUp::Send {Left}  ;only works on Desktop 1. As such, I don't have an alternative code that works on Desktop 2 using Ctrl+Alt+WheelDown.
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: Exact same code works on 1 desktop but not the other?

11 Jun 2021, 20:31

I'm not sure, but the following seemed to work. There is probably a better way to do it (and possibly this script does not make sense!).

Code: Select all

<^<!WheelUp::
on := True
SendInput {Ctrl up}{Alt up}{Left}
Return
#If on
<^<!WheelUp::
*WheelUp::SendInput {Ctrl up}{Alt up}{Left}
$Ctrl Up::
$Alt Up::
on := False
Send % "{" SubStr(A_ThisHotkey, 2) "}"
Return
#If
User avatar
milkygirl90
Posts: 565
Joined: 10 Nov 2020, 21:22

Re: Exact same code works on 1 desktop but not the other?

11 Jun 2021, 22:08

hmm this still doesn't work on Desktop 2 for me.
User avatar
mikeyww
Posts: 26939
Joined: 09 Sep 2014, 18:38

Re: Exact same code works on 1 desktop but not the other?

12 Jun 2021, 05:33

That was my only idea! :(

Others might know more.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, doanmvu and 321 guests