• Need help with Autohotkey Windows

    Solved IT Discussion
    13
    1 Votes
    13 Posts
    792 Views
    1

    @Danp said in Need help with Autohotkey Windows:

    @Pete-S Seems like someone already created the script for you -- https://www.computerhope.com/tips/tip224.htm

    Edit: The above is based on this -- https://github.com/pmb6tz/windows-desktop-switcher

    Thanks @Danp !

    I had a look and it's complicated because you need DLLs and whatnot just to figure out which Desktop you are actually on. But then the script just runs Ctrl+Win+arrow to switch to the right Desktop.

    So I borrowed that little bit but the rest went into the bin. I just run enough Ctrl+Win+Left_arrow to make sure I'm on the first desktop and then go from there.

    This is what I have now (it assumes 8 virtual desktops present and uses Win+F1 to Win+F8 to switch between them):

    #NoEnv #Warn #SingleInstance Force SendMode Event SetVirtualDesktop(DesktopNumber) { Sleep 100 Send #^{Left 8} if (DesktopNumber>0) { Sleep 100 Send #^{Right %DesktopNumber%} } } #F1::SetVirtualDesktop(0) #F2::SetVirtualDesktop(1) #F3::SetVirtualDesktop(2) #F4::SetVirtualDesktop(3) #F5::SetVirtualDesktop(4) #F6::SetVirtualDesktop(5) #F7::SetVirtualDesktop(6) #F8::SetVirtualDesktop(7)
  • Webroot triggers on AutoHotKey

    IT Discussion
    4
    2 Votes
    4 Posts
    689 Views
    JaredBuschJ

    @danp Just updated the site policy to whitelist it. That makes me feel dirty.

  • AutoHotKey

    IT Discussion
    17
    2 Votes
    17 Posts
    2k Views
    nadnerBN

    @scottalanmiller said:

    Can you run PowerShell in it?

    <insert cranky comment> 😛 lol

    @nadnerB said (an hour earlier):

    The console programs has, in my case been configured to utilise cmd.exe but **can also be configured to utilise powershell.exe. **