Results 1 to 7 of 7
  1. #1
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy

    Help, Check If windows is shutting down!

    Hi!
    I need to check if windows is shutdown. i googled it but only found how to make it in 2006 but i wanna do this in 2008 to get it work.

    When I exit my form itīs logoff but if i press shutdown button I get a error on my screen.


    So, I need to check when my form1 is closing if windows is in shutdown mode or (restart mode).



    Here is my code what I have on form1_closing
    Code:
    Shell("Shutdown -l")  Log off
    But I need to check if windows is shutdown something like:

    Code:
    If windows.shutdown then
    
    nothing...............
    
    else
    
    shell("Shutdown -l")
    Thanks btw
    -Rest in peace leechers-

    Your PM box is 100% full.

  2. #2
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    wait so u want to check if windows is shutting down?
    I am willing to help you but u hav to explain what u need help with better

  3. #3
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by bombsaway707 View Post
    wait so u want to check if windows is shutting down?
    I am willing to help you but u hav to explain what u need help with better
    OK!

    When my form closes I need to know if windows is shuting down or not!

    Do you understand now?
    -Rest in peace leechers-

    Your PM box is 100% full.

  4. #4
    geebes888's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    144
    Reputation
    10
    Thanks
    17
    My Mood
    Sneaky
    i'm not sure but are u saying you've made it so that when u close ur form the computer shutsdown??
    [IMG]https://i644.photobucke*****m/albums/uu165/geebes888/V1.png[/IMG]

    -Advertisements(Permanent ban)
    -Flaming(1+ day ban)
    -Nazi or Racist content/comments ( 5+ day ban)
    -Bumping old threads 1 week or older( 3 day ban)
    -Using outside download sources "Links"( 3+ day ban)
    -Spamming( 1+ day ban) -Begging for hacks ( 1 day ban)-
    No virus scan( 1 day ban)
    -Fake VirusScan ( 7+ day ban) -Posting Viruses,keyloggers (permanent ban) -
    Disrespect of Staff members (5+ day ban)




    OMfG i hate hate noobs that ask for hacks they shuld just go in a hole and die

    Thank me if i helped, or just thank me anyway


    [Respect list]

    Toymaker- for his crack hacking team.

    [MPGH]-XpliCitt-

    [MPGH]User1

    [MPGH]Liz

    [MPGH]Whitten

  5. #5
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by geebes888 View Post
    i'm not sure but are u saying you've made it so that when u close ur form the computer shutsdown??
    No, when i close my form it CHECKS if windows is on shutdown mode!
    -Rest in peace leechers-

    Your PM box is 100% full.

  6. #6
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,065
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    I have a feeling your doing this to make a virus...
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!

  7. #7
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by User1 View Post
    I have a feeling your doing this to make a virus...
    Nope i donīt make =)!

    Itīs the last part on my big project!

    I got this code when I my app closes:

    shell ("Shutdown -l")


    But if i press shutdown/restart button I get a epic message/error

    So i need to check if windows is shutdown or not

    This is not a virus, iīll tell you what it is when itīs done =)
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help Request] Combat arms shut down
    By boogiebrice in forum Combat Arms Help
    Replies: 5
    Last Post: 10-23-2011, 02:36 AM
  2. [Help Request] Minecraft Shuts Down my Computer
    By Sketchy in forum Minecraft Help
    Replies: 7
    Last Post: 09-07-2011, 10:51 AM
  3. [Help Request] Command prompt Is shutting down Vindi
    By crietenz in forum Vindictus Help
    Replies: 6
    Last Post: 08-22-2011, 09:40 PM
  4. [Help Request] CrossFire shuts down
    By Sadam in forum CrossFire Help
    Replies: 9
    Last Post: 06-22-2011, 02:55 PM
  5. Game shuts down if im hack please help!
    By nurettin in forum Combat Arms EU Help
    Replies: 21
    Last Post: 09-10-2010, 07:04 AM

Tags for this Thread