Results 1 to 12 of 12
  1. #1
    Lezzy's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    81
    Reputation
    10
    Thanks
    10
    My Mood
    Angelic

    Looking for code for "close on inject" function.

    Title pretty much explains what I am looking for, for my first injector.
    "Hey, I did my first desk pop!"

  2. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,305
    Reputation
    170
    Thanks
    2,194
    My Mood
    Flirty
    Code:
     return 0;
    =/
    Last edited by why06; 02-01-2011 at 12:50 PM.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  3. #3
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    TerminateProcess//Kill the Process directly

    or at the FormEditor

    this->Close()//simulate close button
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  4. The Following User Says Thank You to kotentopf For This Useful Post:

    *Cain* (02-01-2011)

  5. #4
    Lezzy's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    81
    Reputation
    10
    Thanks
    10
    My Mood
    Angelic
    What about a function that closes the program after 10 seconds if a button is pressed.?
    "Hey, I did my first desk pop!"

  6. #5
    whit+'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    267
    Reputation
    10
    Thanks
    37
    My Mood
    Breezy
    What are you coding in first of all..?

  7. #6
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by Lezzy View Post
    What about a function that closes the program after 10 seconds if a button is pressed.?
    [HIGHLIGHT=Visual Basic]System.Threading.Thread.Sleep(600000) :
    Me.Close()[/HIGHLIGHT]

  8. #7
    Astral Witch's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    108
    Reputation
    13
    Thanks
    30
    To close any program all you do is return execution to the OS from the main function ( why06 got it ). Everything you ever program will always have a main function.

  9. #8
    Stan-Marsh's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    127
    Reputation
    10
    Thanks
    12
    Here i think return 0;

  10. #9
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    I think he is coding an injector in VB.net i dont know why he want to code stupidness.
    If it is in VB then it you will have to Inject then add.
    Code:
    System.Threading.Thread.Sleep(10000)
    Me.Close()
    'Or you can do Application.Exit()


    if it is C++.
    as why said.




    Code:
     
      return 0;
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  11. #10
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    return 0 will only work when you return in the main thread. use exit or terminateprocess


  12. #11
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,323
    My Mood
    Breezy
    VB:
    [highlight=vbnet]System.Threading.Thread.Sleep(10000)[/highlight]
    Will cause your program to freeze if you don't run it from a seperate thread.

    C++:
    [highlight=c++]Sleep(10000)[/highlight]
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  13. #12
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    IPC, inter process communication, get your thread to let your application know if it successfully attached and executed the procedure/function if all is good then close the injector else keep it open, While timers and on button click events are fine they are not really closing the app on a success, instead they will close app no matter what happends