Signup Now
Results 1 to 10 of 10
  1. #1
    Free User
    Join Date
    Feb 2016
    Posts
    20
    Reputation
    10
    Rep Power
    0

    How to HOLD a key? (keyevent is not what I want)

    I was searching for a way to hold a key, like, press down and only press up when I command it to again, keyevent() doesn't fullfill my purpose 'cause it presses only once or repeatedly by using loop structures.
    Why I want to do that? I think it's rather strange to press multiple times the same hotkey if you are just filling your mana (While training magic level), so I'd like to have that key pressed and only released when my mana is full (that I can figure out how to do)
    Is there a function or some lua stuff to keep a key pressed down?

    Thanks! Cya!
    Last edited by preula; 04-28-2016 at 12:34 PM.

  2. #2
    Free User
    Join Date
    Feb 2016
    Posts
    20
    Reputation
    10
    Rep Power
    0
    Anybody?

  3. #3
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    28
    There is no such function, I'm afraid.

  4. #4
    Free User
    Join Date
    May 2016
    Posts
    43
    Reputation
    10
    Rep Power
    0
    @preula
       
    auto(200)
    if $mppc < 60 then --- Will use mana potions if the mana is down to 60%
    useoncreature('great mana potion', $self) wait(300, 500)
    end

  5. #5
    Free User
    Join Date
    Feb 2016
    Posts
    20
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Luci Heartfilia View Post
    @preula
       
    auto(200)
    if $mppc < 60 then --- Will use mana potions if the mana is down to 60%
    useoncreature('great mana potion', $self) wait(300, 500)
    end
    yea, that works, but it's not exactly what I want. That function would press the hotkey multiple times what I'm searching is a function to hold it, it would be a lot more natural for long periods usage.
    But as Raphael stated, it seems it just doesn't exists, unfortunatelly =/

  6. #6
    Free User strahowski's Avatar
    Join Date
    Aug 2014
    Posts
    216
    Reputation
    27
    Rep Power
    20
    Quote Originally Posted by preula View Post
    yea, that works, but it's not exactly what I want. That function would press the hotkey multiple times what I'm searching is a function to hold it, it would be a lot more natural for long periods usage.
    But as Raphael stated, it seems it just doesn't exists, unfortunatelly =/
    Personally, I think either way looks more natural honestly. I pressed my mana pot key for about 6 hours straight manual on last double exp weekend, physically pressing my mana hotkey everytime for that period. On WZ bosses and bosses in general I press my SD button in the same manner

  7. #7
    Free User
    Join Date
    Feb 2016
    Posts
    20
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by strahowski View Post
    Personally, I think either way looks more natural honestly. I pressed my mana pot key for about 6 hours straight manual on last double exp weekend, physically pressing my mana hotkey everytime for that period. On WZ bosses and bosses in general I press my SD button in the same manner
    But you pressed it multiple times or you held it? I'd lose my fingers if I had to press it like once each second for hours straight

  8. #8
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    27
    Quote Originally Posted by preula View Post
    But you pressed it multiple times or you held it? I'd lose my fingers if I had to press it like once each second for hours straight
    phew, newbie

  9. #9
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    just train ml at nibelor pot shop, nobody goes there
    wont get report, wont be banned

  10. #10
    Free User
    Join Date
    Feb 2016
    Posts
    20
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Imba View Post
    phew, newbie
    Nope, I just got Tendinitis, that's all.

 

 

Posting Permissions

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