Jump to content

Script Required - Send a custom message to multiple computers


timbo343
 Share

Recommended Posts

I was wondering if anyone could help with writing a script that would notify specific users (this would be configured in the script) who are logged on to the network with a message box that showed a custom message showing the requstor's Active Directory Display name along with the ComputerName the message was sent from. 

 

The EXE would need to be ran when a set of keys on the keyboard were pressed simultaneously. 

 

I have managed to create a very basic application with AutoHotKeys installed on my machine and i've tested:

 

^j::
Run, msg.exe {username} /server:{computername} "This is a test"
Run, msg.exe {username} /server:{computername} "This is a test"
return

 

What this script does is when Ctrl j are pressed on the keyboard, the message is shown to users logged on to those machines.

 

This is a starting block but i'd like it to include %username% and %computername% too. 

 

I don't think msg.exe knows about these command (unless someone can prove me wrong) but i thought about using AutoIT with an EXE however im not sure how to write a script in AutoIT that will do this job.

 

I know there are paid programs out there that do this kinda thing, but with us having literally no money at all, we have to come up with a free version.

 

Any help would be grateful.

Link to comment
Share on other sites

  • Developers
14 minutes ago, timbo343 said:

I have managed to create a very basic application with AutoHotKeys installed on my machine and i've tested:

 

^j::
Run, msg.exe {username} /server:{computername} "This is a test"
Run, msg.exe {username} /server:{computername} "This is a test"
return

Think you are in the wrong forum as that looks very much like AHK and this is it's original big brother called AutoIt3. ;) 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

20 minutes ago, timbo343 said:

set of keys on the keyboard were pressed simultaneously

Why does this sound like its a keylogger... or sounds like a disgruntle employee?:muttley:

Kind Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Link to comment
Share on other sites

  • Moderators

@Skeletor please read up on this thread:

tl;dr - If a post is blatantly against the forum rules, report it and move on. If you are unsure but think it might be, report it and move on.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...