Jump to content

Script closing random windows / documents


sgebbie
 Share

Recommended Posts

First post here, basically very new to scripting with this so any suggestions or direction would be awesome.

I'm not sure if what i'm trying to do is even going to be possible. It seems complex to me but might seem easier to someone with more experience.

I'd like to create a script that will first check what programs / windows are open on a computer and then close them. This will be completely random.. Computer A might have 3 IE windows open and 2 Word Docs, Computer B might have 0 IE windows open, 0 word docs and 1 excel workbook open.

I don't really care about the IE windows just outright closing. The documents i'd just like to do a default save on them and then close. This part doesn't seem like it would be too difficult. The randomness part has me a bit stumped. I was fiddling around with ALT F4 and some Enter commands to attempt to close and save everything that way.

I'm sure there has to be a better way if this is possible but I'm very new to coding this language. I'm open to giving anything a try and I've figured out some basics and written a nice install script already. Any direction on this would be greatly appreciated. I have searched around a good bit and read the FAQs before posting this topic. Just didn't come across anything that sounds similar to what I'm looking for.

Thanks!

Link to comment
Share on other sites

If u want close window by it's title for example you want close all windows contain word "porno" in it's title then I can share U my software that does it (it's codded in autoit) if u want something else, then say it out loud.

edited

Link to comment
Share on other sites

the purpose is to create a pseudo-virus of sorts to mess with someone, something like the phantom keystroker you can buy from thinkgeek, or some program that starts moving the mouse randomly at a user-set difference to the current location (this one in particular is read as a virus by scanners because most people who found it don't know what it is or how you need to press ctrl+shift+q to disable it). i myself created a program that creates a message box that states "Your computer"&@CRLF&"has a virus and"&@CRLF&"needs to be hit"&@CRLF&"several times." with a flag of 262448 and disappears after 3 seconds, only to come back until okay is pressed; nothing harmful, but funny to see people's reaction to it

Link to comment
Share on other sites

  • Developers

the purpose is to create a pseudo-virus of sorts to mess with someone, something like the phantom keystroker you can buy from thinkgeek, or some program that starts moving the mouse randomly at a user-set difference to the current location (this one in particular is read as a virus by scanners because most people who found it don't know what it is or how you need to press ctrl+shift+q to disable it). i myself created a program that creates a message box that states "Your computer"&@CRLF&"has a virus and"&@CRLF&"needs to be hit"&@CRLF&"several times." with a flag of 262448 and disappears after 3 seconds, only to come back until okay is pressed; nothing harmful, but funny to see people's reaction to it

Is this guessing or clairvoyance on your part?

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

there is nothing else it could be that you would want to use a scripting language like autoit for, the C set of languages are more powerful and create smaller applications (honestly, autoit is bulky as all hell, you should look into using JIT code in the compiled exes instead of all of it, as a side option). forcing students to pay attention in a computer lab would be a reason for an application like this, but to my knowledge schools can't use autoit because of technicalities in freeware licenses that keep them out of the hands of businesses and the like, in america at least

Edited by skyboy
Link to comment
Share on other sites

the purpose is to create a pseudo-virus of sorts to mess with someone, something like the phantom keystroker you can buy from thinkgeek, or some program that starts moving the mouse randomly at a user-set difference to the current location (this one in particular is read as a virus by scanners because most people who found it don't know what it is or how you need to press ctrl+shift+q to disable it). i myself created a program that creates a message box that states "Your computer"&@CRLF&"has a virus and"&@CRLF&"needs to be hit"&@CRLF&"several times." with a flag of 262448 and disappears after 3 seconds, only to come back until okay is pressed; nothing harmful, but funny to see people's reaction to it

You find this funny for what reason ????

I'm surprised this thread hasn't been locked yet.

Link to comment
Share on other sites

  • Developers

there is nothing else it could be that you would want to use a scripting language like autoit for, the C set of languages are more powerful and create smaller applications (honestly, autoit is bulky as all hell, you should look into using JIT code in the compiled exes instead of all of it, as a side option). forcing students to pay attention in a computer lab would be a reason for an application like this, but to my knowledge schools can't use autoit because of technicalities in freeware licenses that keep them out of the hands of businesses and the like, in america at least

Expert opinion I see... anyways, The question was directed to the OP of this thread, not you.

Simple reason is that we really do not want this crap in these forums.

*click*

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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