GitHub - bhohler/rs-timer: A timer intended for use while AFK-ing in RuneScape

A timer intended for use while AFK-ing in RuneScape. This program has been made possible largely thanks to the efforts of the globalmousekeyhook[1] library. Using it, we're able to have the timer react to mouse and keyboard events even when it doesn't have focus. The timer is able to automatically reset itself whenever a click is detected in a RuneScape window. Due to the nature of this program and its reliance on the Windows API, it only works in Windows. There is no plan for Mac or Linux support at this time.

Supported Clients

  • RS3 official client
  • OSRS official client
  • RuneLite

How does it work?

Every time a MouseDown event happens in Windows, the foreground window might change. Using the Windows API, you're able to obtain a handle to this window and read its title. So following from that, every time a MouseUp event happens, the foreground window may possibly change. Using the globalmousekeyhook[2] library, we're able to easily listen globally for MouseUp events, read the title of the foreground window, and reset the timer if it matches one of the RuneScape window titles.

Is it safe?

Yes. Feel free to read through the source code if you're not convinced. The timer doesn't directly interact with the game at all, nor does it send your mouse clicks or key presses anywhere over the Internet, nor save them to your computer. It just listens to mouse clicks and key presses and reacts according to which window it detected them in.

Where can I download it?

The latest release can be downloaded here on Github[3]. Just download the zip file and extract it to your desired location.

References

  1. ^ globalmousekeyhook (github.com)
  2. ^ globalmousekeyhook (github.com)
  3. ^ here on Github (github.com)
keywords

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Linx
Search Linx by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote


Me
Random CSS Property

<display-legacy>

CSS 2 used a single-keyword syntax for the display property, requiring separate keywords for block-level and inline-level variants of the same layout mode. This page details those values.
<display-legacy> css reference