Scar Help Code

Discussion in 'Code Snippets and Tutorials' started by pandahorde, Apr 12, 2007.

  1. pandahorde

    pandahorde Level IV

    Joined:
    Dec 17, 2006
    Messages:
    2,249
    Likes Received:
    17
    Location:
    "MANILA ZOO"
    guys what code should i put ... i need a code that the delete key is always presing.

    I used this code .

    Code (Text):
    1. KeyDown(46);
    2.    Sleep(10000)
    3.    KeyUp(46);
    But it wont work. It just delete 1 letter.." i want to keep it deleting until i put a seconds till it stops."

    Help pls.
     
  2. bigjohn

    bigjohn Level II

    Joined:
    Apr 1, 2007
    Messages:
    251
    Likes Received:
    0
    Location:
    Wales
    i dont know much scar but would
    Code (Text):
    1. for i:= 1 to 10000 do
    2.           begin
    3.           KeyDown(46);
    4.           Sleep(10000)
    5.           KeyUp(46);
    6.           End;
    adjust i:= to suit?
     
  3. pandahorde

    pandahorde Level IV

    Joined:
    Dec 17, 2006
    Messages:
    2,249
    Likes Received:
    17
    Location:
    "MANILA ZOO"
    thats not right dude. .
     
  4. chelsea1

    chelsea1 Level IV

    Joined:
    Nov 26, 2006
    Messages:
    2,538
    Likes Received:
    31
    Location:
    London
    well i don't understand some of what you are saying but the code to get it to delete lots use this code
    Code (Text):
    1. repeat
    2. keydown(46);
    3. wait(1);
    4. keyup(46);
    5. until(false)
    this will press delete until you stop the script
     
  5. pandahorde

    pandahorde Level IV

    Joined:
    Dec 17, 2006
    Messages:
    2,249
    Likes Received:
    17
    Location:
    "MANILA ZOO"
    if you want to stop the script well what is the code for stoping mass delete.?
    what will you add in
    Code (Text):
    1. repeat
    2. keydown(46);
    3. wait(1);
    4. keyup(46);
    5. until(false)
    6.  
     
  6. chelsea1

    chelsea1 Level IV

    Joined:
    Nov 26, 2006
    Messages:
    2,538
    Likes Received:
    31
    Location:
    London
    just looked at it a bit and came up with this
    Code (Text):
    1. program New;
    2. var i:integer;
    3. const times=10;//number of times to delete
    4. begin
    5. i:= 1
    6. repeat
    7. wait(100);
    8. KeyDown(46);
    9. wait(1);
    10. KeyUp(46);
    11. i:=i+1
    12. until(i=times)
    13. end.
     
  7. pandahorde

    pandahorde Level IV

    Joined:
    Dec 17, 2006
    Messages:
    2,249
    Likes Received:
    17
    Location:
    "MANILA ZOO"
    thx ... but i better change it to

    Code (Text):
    1. KeyDown(65);
    2.    KeyUp(65);
    3.    wait(2000)
    4.    KeyDown(46);
    5.    KeyUp(46);
    pretty simple and delete all letters.