<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: колесико мыши]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=17135</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17135&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: колесико мыши».]]></description>
		<lastBuildDate>Fri, 20 May 2022 15:14:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: колесико мыши]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=153294#p153294</link>
			<description><![CDATA[<p>На заметочку, если назвать параметры функции так же как и ключи объекта, то можно вызывать функцию так:<br /></p><div class="codebox"><pre><code>
global SkillKeys := [{skill: &quot;1&quot;, weave: 1, cancel: 1}, {skill: &quot;q&quot;, weave: 1, cancel: 1}, {skill: &quot;WheelUp&quot;, weave: 1, cancel: 0}, {skill: &quot;e&quot;, weave: 1, cancel: 1}, {skill: &quot;f&quot;, weave: 1, cancel: 1}]

AutoWeave(SkillKeys[2]*)

AutoWeave(skill, weave, cancel)
{
	msgbox, % &quot;skill: &quot; skill &quot;`nweave: &quot; weave &quot;`ncancel: &quot; cancel
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Fri, 20 May 2022 15:14:13 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=153294#p153294</guid>
		</item>
		<item>
			<title><![CDATA[AHK: колесико мыши]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=153289#p153289</link>
			<description><![CDATA[<p>Как в этом скрипте сделать так, что бы у прокрутки колесика было кд? при быстром скролле колесика в игре не засчитывает комбинацию (левая кнопка мыши, прокрутка колесика) а именно не засчитывает левую кнопку мыши.</p><div class="codebox"><pre><code>;=============================================
; name:    eso_auto_weaver
; version: 1.3
;=============================================

; script is disabled by default -- to enable caps lock most be toggled ON
; some menus will auto disable (untoggle) to allow for numeric inputs

#SingleInstance, force
#NoEnv

#UseHook
#InstallMouseHook
#InstallKeybdHook

SendMode Input
SetWorkingDir %A_ScriptDir%

;=============================================
; configuration
;=============================================

; input delays and timers
global la_delay := 180
global cn_delay := 500
global bl_delay := 50

; global cooldown ticker
global cd_timer := 900
global cd_delay := cd_timer - (la_delay + cn_delay + bl_delay)

; skill keys configured in array for [skill], [shouldWeave] &amp; [shouldCancel]
global SkillKeys := [{skill: &quot;1&quot;, weave: 1, cancel: 1}, {skill: &quot;q&quot;, weave: 1, cancel: 1}, {skill: &quot;WheelUp&quot;, weave: 1, cancel: 0}, {skill: &quot;e&quot;, weave: 1, cancel: 1}, {skill: &quot;f&quot;, weave: 1, cancel: 1}]

;=============================================
; primary script &amp; input loop
;=============================================

; only capture keys when game window is running
#ifWinActive Elder Scrolls Online

Hotkey, 1, Weave_1, On
Hotkey, q, Weave_2, On
Hotkey, WheelUp, Weave_3, On
Hotkey, e, Weave_4, On
Hotkey, f, Weave_5, On

loop,
{
	; Input, in_key, L1 V ; no longer used [retained for future]
	; disable autoweaving in menus
	if(GetKeyState(&quot;I&quot;) || GetKeyState(&quot;M&quot;) || GetKeyState(&quot;J&quot;) || GetKeyState(&quot;O&quot;) || GetKeyState(&quot;Esc&quot;)) {
		SetCapsLockState , off		
	} 
	
}

Return

Weave_1:
    AutoWeave(SkillKeys[1].skill, SkillKeys[1].weave, SkillKeys[1].cancel)
Return

Weave_2:
    AutoWeave(SkillKeys[2].skill, SkillKeys[2].weave, SkillKeys[2].cancel)
Return

Weave_3:
    AutoWeave(SkillKeys[3].skill, SkillKeys[3].weave, SkillKeys[3].cancel)
Return

Weave_4:
    AutoWeave(SkillKeys[4].skill, SkillKeys[4].weave, SkillKeys[4].cancel)
Return

Weave_5:
    AutoWeave(SkillKeys[5].skill, SkillKeys[5].weave, SkillKeys[5].cancel)
Return

;=============================================
; helpers
;=============================================

; optional parameter [isBarswap] used for attack chaining (combo/rotation)
AutoWeave(skill, shouldWeave, shouldCancel, isBarswap:=false)
{
	if(GetKeyState(&quot;Capslock&quot;, &quot;T&quot;)){
		remainder = 0

		; randomly generated variance prevents message stacking
		Random, variance, 1, 100

		if (shouldWeave) {
			Send, {Click}
			Sleep la_delay
			
		} else {
			remainder += la_delay		
		}
		
		Send, {%skill%}	
		Sleep cn_delay + variance
		
		if (shouldCancel) {
			if(isBarswap) { 
				Send, {``}
				Sleep bl_delay
				
			} else { 
				Send, {Click, down, right} 
				Sleep bl_delay
				Send, {Click, up, right}			
			}

		} else {
			remainder += bl_delay		
		}
		
		; observe the gcd
		Sleep (cd_delay + remainder) - variance
		
	} else {
		Send, {%skill%}	
		Sleep cd_timer	
	}
}

;=============================================
; EoF
;=============================================</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (bloodytearsx)]]></author>
			<pubDate>Fri, 20 May 2022 10:36:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=153289#p153289</guid>
		</item>
	</channel>
</rss>
