Results 1 to 7 of 7

Thread: IsKeyDown

  1. #1
    Join Date
    Aug 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsKeyDown

    Hi,
    I'm working on a script that involves..
    Code:
    Repeat
      if(IsKeyDown('1'))then SendKeysWait(Talk1, 100 , 100);
    Until (False)
    But when ever i start the script it just keeps typing what ever i assign for Talk1.

    Any ideas?
    Do i need to update Scar?

    Thanks

  2. #2
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't think so. Iskeyfown is a bit funky, try isfkeydown(11), that will use FKey 11.

    Incdentally, don't use sendkeyswait, use Typesend(s:string);. It's a lot less bannable, and it's from srl

    SCAR Code:
    Repeat
      if(IsFKeyDown('11'))then
        Typsend(talk1);
    Until (False)
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  3. #3
    Join Date
    Aug 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also, is there anyway I can make it not type 1 when I press the key?

    Thanks

  4. #4
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 666d3v1l666 View Post
    Also, is there anyway I can make it not type 1 when I press the key?

    Thanks
    Use a different key ^_^... Like he suggested.. -> FKey's.
    Verrekte Koekwous

  5. #5
    Join Date
    Aug 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But then i can only use F2, F7, F8, F9, F10 and F12, all the others do something, suchas opens help of makes window explorer full screen.

  6. #6
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 666d3v1l666 View Post
    But then i can only use F2, F7, F8, F9, F10 and F12, all the others do something, suchas opens help of makes window explorer full screen.
    Thats correct.. But you forget you can combine keys.. You can make it do ctrl + FKeys, aswell.. Or alt + FKeys.. Or shift + FKeys.. You got me?
    Verrekte Koekwous

  7. #7
    Join Date
    Aug 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thankyou very much!
    God, i feel dumb now...


    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cases with IsKeyDown?
    By Sandstorm in forum OSR Help
    Replies: 4
    Last Post: 11-16-2008, 06:13 PM
  2. iskeydown - need help
    By l33t_h4x0r in forum OSR Help
    Replies: 5
    Last Post: 12-16-2007, 11:31 PM
  3. What's IsKeyDown in C++ and how do I use it?
    By PwNZoRNooB in forum C/C++ Help and Tutorials
    Replies: 10
    Last Post: 08-14-2007, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •