Results 1 to 4 of 4

Thread: Few questions...

  1. #1
    Join Date
    Jun 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Few questions...

    I'm currently working on a fletching script and I have a few questions:

    1. Can the RS client detect your mouse position if it is NOT in the client window? For example, if I just used MMouse to move my mouse to the bottom right corner of my screen, would they be able to know where it was? (Sounds kind of illegal, heh) My guess would be that they can only track your mouse position and movements inside the client window, but I'm not sure, so that's why I'm asking

    2. What does mod do? I always assumed that it returned the remained of a division problem, but I think I'm wrong because I tried using it today (ex. if(i/10) mod 0 then) and it didn't seem to work (type mismatch). Could anyone explain what mod does and how to use it? And if that isn't the remainder function, could anyone please enlighten me to what it is?

    I think that's all for now, I'll more later if I think of any more.
    Thanks!

  2. #2
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    1. No
    2. Mod is the remainder function, that line would have to be if (i/10 mod 1)=0 then

  3. #3
    Join Date
    Jun 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    1. No
    2. Mod is the remainder function, that line would have to be if (i/10 mod 1)=0 then
    Thanks! Small question though: So if I wanted to make it true only when it is divisible by 10, I would use if(i mod 10)=0 then?

  4. #4
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    That's right .
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

Thread Information

Users Browsing this Thread

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

Posting Permissions

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