topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • August 22, 2019, 05:20 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: block mouse/audio on local network to targeted computers  (Read 203 times)

flamerz

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 123
    • View Profile
    • Donate to Member
Hello. I was trying to acomplish the following idea with autohotkey but I'm stuck on the remote aproach.

I'm a teacher and some of my students have strong atention issues (special needs, autism...).

Sometimes I have to get atention and my idea is to block the mouse and mute their computer on the ones that they are not listening me.

This helps me to stop any music/audio on their headphones and block their primary input, this should be enough.

I get some code from Skrommel, but I'm still thinking how to send the shortcut to their computer. No idea about the best way.

This is the starting code:

#m::                    ;win + m hotkey
if (x != 1)
{
    BlockInput, MouseMove
    x := 1
    Hotkey, LButton, DoNothing
    Hotkey, RButton, DoNothing
    Hotkey, XButton1, DoNothing
    Hotkey, XButton2, DoNothing
    SoundSet, +1, , Mute
    return
}
if (x = 1)
{
 SoundSet, +1, , mute
    reload
}


DoNothing:
return


Any feedback is appreciated.
« Last Edit: August 15, 2019, 12:04 PM by flamerz »

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 165
    • View Profile
    • Donate to Member
Re: IDEA: block mouse/audio on local network to targeted computers
« Reply #1 on: August 15, 2019, 01:04 PM »
You can't send "keystrokes" over a network, you need to send "messages" (to a program that listens to them on each client pc).
E.g. with https://autohotkey.c...on-of-winsock-tcpip/
If that still works...

flamerz

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 123
    • View Profile
    • Donate to Member
Re: IDEA: block mouse/audio on local network to targeted computers
« Reply #2 on: August 15, 2019, 01:20 PM »
Thanks for guiding me... Im new with AHK.