Author Topic: [XP] Mouse Wheel Scroll  (Read 2199 times)

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3191
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
[XP] Mouse Wheel Scroll
« on: July 04, 2016, 10:40:27 AM »
Mouse Wheel Scroll
Authors: KK20
Version: 1.0
Type: Input Add-on
Key Term: Misc System

Introduction

This script allows the use of scrolling the mouse wheel. It was written as an extension to Blizzard's Mouse Controller:
http://forum.chaos-project.com/index.php/topic,4710.0.html

Note that this script is not necessarily complete. It is up to you, the developer, to make use of this script's features. I only added the ability to scroll through Window_Selectable contents.

Features

  • Players can scroll the mouse wheel
  • Additional configuration option to allow the cursor to be visible at all times
  • Windows_Selectable#update allows the ability to scroll through the windows via mouse wheel

Screenshots

None.

Demo

None.

Script

(click to show/hide)

Instructions

Requires Blizzard's Mouse Controller script (link above). The Controller should be placed above this add-on in the script list.
Download the required DLL here (includes source code): Download
All other instructions in script.

Compatibility

Requires Blizzard's Mouse Controller.


Credits and Thanks

  • KK20 - Script and DLL
  • Blizzard - Assistance with making DLL

Author's Notes

Performance might be slow on terrible computers. I would appreciate it if people can test this for me.
If you wish to adapt this script to other existing mouse controller scripts, you are free to do so.
« Last Edit: March 25, 2017, 08:04:42 AM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Mouse Wheel Scroll
« Reply #1 on: August 29, 2016, 06:10:51 PM »

http://imgur.com/3Y8otkW

it seems... not compatible with my Windows 7 Ultimate (Service Pack 1)

Script used :

RTP
Custom Control (Ripped from Tons)
Mouse Controller
Mouse Wheel Scroll


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Mouse Wheel Scroll
« Reply #2 on: August 29, 2016, 07:10:01 PM »
KK20, you should probably check my linker settings in XPA_Window. Mine works on XP SP3 and higher.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3191
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Mouse Wheel Scroll
« Reply #3 on: August 29, 2016, 08:06:27 PM »
But does this only apply to this script or all my DLLs? I wonder if it has anything to do with the window events or creating a thread.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Mouse Wheel Scroll
« Reply #4 on: August 29, 2016, 08:12:55 PM »
Likely all DLLs if you are using the same compilation settings. I set up mine to use the minimum of dependencies and to link to static libs so no extra stuff is needed. Handling window events and creating a thread shouldn't be a problem. Though, it might not be a bad idea to run Game.exe as admin to see if that is the problem.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3191
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Mouse Wheel Scroll
« Reply #5 on: August 29, 2016, 10:42:14 PM »
I just installed a Win7Ultimatex64 VM to test it out. I think I uploaded the wrong version of the DLL, one that was using some optimization [-O2] (this is set by default :\ ). On my Windows10, it just gave me a critical error.

Anyways, the version I've been using for my tests is here: -removed-

Worked on my end.
I'll update the dropbox link when I get back home.
Edit: Done.
« Last Edit: August 30, 2016, 07:28:57 AM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Mouse Wheel Scroll
« Reply #6 on: August 30, 2016, 09:28:35 AM »
Perfect! :D