1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

program to close windows with delay

Discussion in 'Black Hat SEO Tools' started by antsaoo, Feb 8, 2011.

  1. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,292
    Likes Received:
    637
    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
     
  2. GoogleAlchemist

    GoogleAlchemist Regular Member

    Joined:
    Nov 25, 2009
    Messages:
    249
    Likes Received:
    28
    Occupation:
    Bad Ass SEO Consultant
    Location:
    Wherever I want
    Home Page:
    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!)
     
  3. kounamouta

    kounamouta Regular Member

    Joined:
    May 14, 2009
    Messages:
    323
    Likes Received:
    35
    Occupation:
    IM
    Location:
    chair
    Home Page:
    look for Autoit, and first look the Help file.
    can be made in a hour...... for you.........
     
  4. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    PM me I can probably whip something up for you.
     
  5. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    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"