Results 1 to 8 of 8

Thread: Quick Question

  1. #1
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Quick Question

    Hey, I am making a Mining Script for a different game (Conquer2.0). In that game to take a screenshot you hit PrintScreen. In my script I want it to log out if a few different things happen. If it has to log out I want it to take a screenshot first.

    What my question is is how would I make SCAR hit the "PrintScreen" Button? I also need to know how to press the "Escape" Key. Also if you play Conquer and you want to help write/test this script please PM me.
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

  2. #2
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    SaveScreenshot(path : String);
    //usage as...
    SaveScreenshot(ScriptPath + 'hello.bmp');
    //saves a picture named hello.bmp in the script path (where the script is located)
    //or you can use this to actually press PrintScreen:
    KeyDown(44); //not positive if this is the right usage, but 44 is definitely printscreen.
    KeyUp(44);
    Temporarily inactive.

  3. #3
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ducels View Post
    SCAR Code:
    SaveScreenshot(path : String);
    //usage as...
    SaveScreenshot(ScriptPath + 'hello.bmp');
    //saves a picture named hello.bmp in the script path (where the script is located)
    //or you can use this to actually press PrintScreen:
    KeyDown(44); //not positive if this is the right usage, but 44 is definitely printscreen.
    KeyUp(44);
    Thanks For your quick answer. I will try that, Although I think it might be:

    SCAR Code:
    KeyDown(Chr(44));
    KeyUp(Chr(44));

    I think it might be that because if you use sendkeys it is:

    SCAR Code:
    SendKeys('Something' + Chr(13))

    Where Chr(13) := Enter

    Does Anyone Know Which Is Right?
    Any Help Is Appreciated.
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

  4. #4
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    No it's just
    SCAR Code:
    KeyDown(44);
    KeyUp(44);

  5. #5
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Derek- View Post
    No it's just
    SCAR Code:
    KeyDown(44);
    KeyUp(44);
    K, Thank you.
    Does anyone know which one is "Escape"? Also, How do you guys know which key is which number? Just used it before or is there a way to find out?
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

  6. #6
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Escape is 27.
    For the numbers above the letter keys, 0 is 48 and they count up to 9 being 57.
    Numpad keys are: 0 = 96 through 9 = 105.
    Temporarily inactive.

  7. #7
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could also read the SCAR-manual (F1 in SCAR). There's an ASCII-table. Read the decimal (Dec) of the desired key. For example 13 is carriage return (also known as enter ). Escape is 27 just as ducels said.
    This sentence is false.

  8. #8
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ty again Ducels (and Gumleren). I think thats all I need so Thanks for everyones help .
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 PM

Posting Permissions

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