MButton + Mouse move :: MouseWheel

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: MButton + Mouse move :: MouseWheel

Re: MButton + Mouse move :: MouseWheel

Post by PSVl » 03 Jun 2018, 07:20

Наверняка уже неактуально, но накидал тут немного. Требует доработки.

Code: Select all

~MButton::  
loop
{
   MouseGetPos, X1, Y1,
   Sleep, 50
   ControlGetFocus, Control, A
   GetKeyState, state, MButton, P
   MouseGetPos, X2, Y2
   if (X2 < X1)
    {   
        SendMessage, 0x114, 0, 0, %Control%, A 
    }
    else if (X2 > X1)
    {
        SendMessage, 0x114, 1, 0, %Control%, A
    }
    else if (Y2 < Y1)
    {
        SendMessage, 0x115, 0, 0, %Control%, A
    }
    else if (Y2 > Y1)
    {
        SendMessage, 0x115, 1, 0, %Control%, A
    }
    if state = U  
    break
}
return

MButton + Mouse move :: MouseWheel

Post by sergey80 » 21 Mar 2018, 08:37

Нужно изменить режим мыши при удержании средней кнопки. А именно: когда я удерживаю среднюю кнопку мыши, то при движении курсора должна происходить прокрутка в соответствующую сторону. Подскажите пожалуйста!
:headwall:

Top