program to close windows with delay

antsaoo

Supreme Member
Joined
Oct 1, 2008
Messages
1,287
Reaction score
576
Good day

So im looking for program to support my bot made in Ubot since it hangs on "open file" window from time to time. And the bot doesn't have timeout option for that. I would need something to close the window on possible hang with bit of delay since the action takes few seconds.

Thought about asking before considering custom coded.

Thnx
 
not sure if its what you need but i just was having horrible certificate based pop ups in scrapebox slow poster that i just couldnt get to go away so i just brought up the 'close.exe' program i got along with some bots i got from this cat [email protected] dunno if he is still around. pyp pr p2y or something over at wf. not an affiliate,ymmv, just saw this thread when poking around google for a 'closer' program till i remembered the one that came with those bots (which are half assed to note,ee one is ok,vb is atrocious!)
 
look for Autoit, and first look the Help file.
can be made in a hour...... for you.........
 
PM me I can probably whip something up for you.
 
You can probably try with a simple vbs like this one if the window of your app is in foreground... Something I coded in 25 seconds therefore, of course, it sucks ass left and right for a number of reasons, but if your app is meant to run exclusively on a server it'll be enough. Of course feel free to tweak the timeout (and the way it works) and executable spawned...

The proper way to do what you want is by intercepting the instance of your app and killing the hung window, that's feasible too with a vbs. But this could be useful anyways. HTH.

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad", 9
WScript.Sleep 500 ' Give Notepad some time to load
For i = 1 To 5
  WshShell.SendKeys "Sirgold RULES!"
  WshShell.SendKeys "{ENTER}"
Next 

WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "Liked it?"

WScript.Sleep 4000 ' Wait some more..

WshShell.SendKeys "%{F4}"
WScript.Sleep 500
WshShell.SendKeys "%n"
 
Back
Top