Jump to content

Recommended Posts

Posted

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.

  • Developers
Posted
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.
  :)

  • Moderators
Posted

@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!

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
×
×
  • Create New...