timbo343 Posted February 19, 2019 Share Posted February 19, 2019 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 More sharing options...
Developers Jos Posted February 19, 2019 Developers Share Posted February 19, 2019 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 More sharing options...
Skeletor Posted February 19, 2019 Share Posted February 19, 2019 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? Kind RegardsSkeletor "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 More sharing options...
Moderators JLogan3o13 Posted February 19, 2019 Moderators Share Posted February 19, 2019 @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 More sharing options...
Developers Jos Posted February 19, 2019 Developers Share Posted February 19, 2019 I actually didn't read any of the content in detail as the syntax isn't AutoIt3.... 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 More sharing options...
Skeletor Posted February 20, 2019 Share Posted February 20, 2019 @JLogan3o13 lol... didn't know that even existed. Good work there mod. Kind RegardsSkeletor "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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now