[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Anyone kind enough to make me a script where when i scroll up

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: AutoHotKeyLogo.png (28KB, 256x256px) Image search: [Google]
AutoHotKeyLogo.png
28KB, 256x256px
Anyone kind enough to make me a script where when i scroll up it scrolls up 5 times and the same thing with scrolling down
>>
>>57324411
#NoEnv
#NoTrayIcon
#SingleInstance
#MaxHotkeysPerInterval 120

Process, Priority, , H
SendMode Input

; Show scroll velocity as a tooltip while scrolling. 1 or 0.
tooltips := 0

; The length of a scrolling session.
; Keep scrolling within this time to accumulate boost.
; Default: 500. Recommended between 400 and 1000.
timeout := 500

; If you scroll a long distance in one session, apply additional boost factor.
; The higher the value, the longer it takes to activate, and the slower it accumulates.
; Set to zero to disable completely. Default: 30.
boost := 30

; Spamming applications with hundreds of individual scroll events can slow them down.
; This sets the maximum number of scrolls sent per click, i.e. max velocity. Default: 60.
limit := 60

; Runtime variables. Do not modify.
distance := 0
vmax := 1

; Key bindings
WheelUp:: Goto Scroll
WheelDown:: Goto Scroll
#WheelUp:: Suspend
#WheelDown:: Goto Quit

Scroll:
t := A_TimeSincePriorHotkey
if (A_PriorHotkey = A_ThisHotkey && t < timeout)
{
; Remember how many times we've scrolled in the current direction
distance++

; Calculate acceleration factor using a 1/x curve
v := (t < 80 && t > 1) ? (250.0 / t) - 1 : 1

; Apply boost
if (boost > 1 && distance > boost)
{
; Hold onto the highest speed we've achieved during this boost
if (v > vmax)
vmax := v
else
v := vmax

v *= distance / boost
}

; Validate
v := (v > 1) ? ((v > limit) ? limit : Floor(v)) : 1

if (v > 1 && tooltips)
QuickToolTip("×"v, timeout)

MouseClick, %A_ThisHotkey%, , , v
}
else
{
; Combo broken, so reset session variables
distance := 0
vmax := 1

MouseClick %A_ThisHotkey%
}
return

Quit:
QuickToolTip("Exiting Accelerated Scrolling...", 1000)
Sleep 1000
ExitApp

QuickToolTip(text, delay)
{
ToolTip, %text%
SetTimer ToolTipOff, %delay%
return

ToolTipOff:
SetTimer ToolTipOff, Off
ToolTip
return
}
>>
>>57324411
Change your windows settings.
fucking retard
>>
Is this the "post awesome AHK scripts" thread?

Because I couldn't use Windows any more without this:

#SingleInstance Force
#UseHook
#NoEnv
SetBatchLines -1

; Hold alt and press a thing to do a thing
!WheelUp::
!WheelDown::
!MButton::
!LButton::
!RButton::

WinDrag(fps := 60, dubdelay := 400) {
dub := A_ThisHotKey = A_PriorHotKey
&& A_TimeSincePriorHotkey < dubdelay
RegExMatch(A_ThisHotkey, "\w+$", button)
CoordMode, Mouse, Screen
MouseGetPos, mx0, my0, id
id := "ahk_id " id
WinGet, minmax, MinMax, % id
WinGetPos, x, y, w, h, % id
SetWinDelay, 1000 // fps

; Wheelup/down = Send-to-back/front
If (button = "WheelUp") {
WinSet, Bottom,, % id
} Else If (button = "WheelDown") {
WinSet, AlwaysOnTop, On, % id
WinSet, AlwaysOnTop, Off, % id

; M/L/R Doubleclick = Close/Min/Max-Restore
} Else If (dub && button = "MButton") {
WinClose % id
} Else If (dub && button = "LButton") {
WinMinimize % id
} Else If (dub && !minmax) {
WinMaximize % id
} Else If (dub) {
WinRestore % id
>>
>>57326174
  ; LDrag = Move, RDrag = Resize
} Else If (minmax button ~= "^(0L|0R|1L)") {
If (button = "LButton") { ; LDrag:
fx := fy := 1, fw := fh := 0 ; move, no resize
} Else If (button = "RButton") { ; RDrag:
fw := Floor(3*(mx0-x)/w - 1) ; -1, 0, 1, depending on which
,fh := Floor(3*(my0-y)/h - 1) ; third of window mouse is located
,fx := fw < 0 || !fw && !fh ; window topleft moves if resize
,fy := fh < 0 || !fw && !fh ; goes in opposite direction
}

; Update window position while mouse is pressed.
While (GetKeyState(button, "P")) {
MouseGetPos, mx, my ; mouse position:
mx -= mx0, my -= my0 ; relative to mx0, my0
WinMove, % id,
, % x + fx*mx, % y + fy*my
, % w + fw*mx, % h + fh*my
}

; Moved maximized window? Remaximize in the new screen.
If (minmax button ~= "^1L" && (mx || my)) {
WinGetPos, x, y, w, h, % id
WinRestore, % id
Sleep 100
WinMove, % id,, % x, % y, % w, % h
WinMaximize, % id
}
}
}
>>
File: mouse settings.jpg (27KB, 265x131px) Image search: [Google]
mouse settings.jpg
27KB, 265x131px
>>
>>57326235
And here's also the ahk script.
WheelDown::
loop 5
sendinput {WheelDown}
return

WheelUp::
loop 5
sendinput {WheelUp}
return
>>
>>57326271
Thank you! Now i need to figure out how to actually get it to work in-game.
>>
>>57327714
>in-game

Stop cheating pajeet
>>
>>57326174
Noice.

Autohotkey fucking rocks.
>>
>>57327730
Its a singleplayer game im cheating only myself so dont worry
>>
why /g/ never shows any love for AHK? I guess because nobody here has a real job?

AHK is just the best multi-purpose productivity tool ever created. and is open-source.
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.