Author Topic: Star Citizen - Tractor beam autoscroll  (Read 307 times)

Werner32

  • Newbie
  • *
  • Posts: 3
Star Citizen - Tractor beam autoscroll
« on: August 27, 2024, 08:14:05 PM »
I have arthritis in my hands so this command is beneficial for moving boxes. 

Auto scroll is too fast in Voice Attack so this is how to slow down the command to make it work.

Download attached

Action 1: Set Scroll Count:

Add Action: "Set a Small Integer Value".
Details:
Variable Name: [ScrollCount].
Operation: Set Value.
Value: 50 (or however many scrolls you want).
Action 2: Start Loop While:

Add Action: "Start Loop While".
Condition:
Variable: [ScrollCount].
Condition: Greater Than.
Value: 0.
Action 3: Scroll Mouse Wheel Forward:

Add Action: "Scroll Mouse Wheel".
Direction: Forward.
Clicks: 1.
Action 4: Add a Pause:

Add Action: "Pause".
Duration: Set the pause to something like 0.05 seconds (adjust based on how slow you want the scroll to be).
Action 5: Decrement Scroll Count:

Add Action: "Set a Small Integer Value".
Details:
Variable Name: [ScrollCount].
Operation: Decrement.
Value: 1.
Action 6: End Loop:

Add Action: "End Loop".

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4780
  • RTFM
Re: Star Citizen - Tractor beam autoscroll
« Reply #1 on: August 28, 2024, 12:19:53 AM »
That's certainly a working solution, however if you'd like a simpler option, try a For loop:
Code: [Select]
Start Loop : Repeat 50 times
    Scroll mouse wheel forward 1 click
    Pause 0.05 seconds
End Loop

That's under "Other >", "Advanced", "Add a Loop Start", "Repeat Certain Number of Time (For Loop)"


As a side note, the "Small Integer" datatype is deprecated. "Integer" should be used instead (it can be decremented using the "Computed value" option set to "Subtract" and "Compute against a value" set to 1. The For loop above doesn't require manually decrementing a variable value at all though)