Touch Scrolling Method

Post your questions, bug reports and suggestions here for BasicMaker 2016 for Windows.

Moderator: SoftMaker Team

Post Reply
ctuck
Posts: 1
Joined: Thu Sep 29, 2016 4:20 pm

Touch Scrolling Method

Post by ctuck » Thu Sep 29, 2016 4:41 pm

I am trying to develop a touch scrolling method for TextMaker. I found a work around using AHK that was developed for OpenOffice here:
https://autohotkey.com/board/topic/1294 ... oo-writer/

The touch scrolling works by changing this code to:

Code: Select all

#if WinActive("ahk_class tmwMdiFrame") AND !GetKeyState("LButton","P")  ; (1) Writer = active window & (2) LButton not physically pressed
~LButton::SetTimer, MousePos, 30
~^LButton::SetTimer, MousePos, Off		; (3) with Ctrl: selecting text instead of scrolling
~LButton up::SetTimer, MousePos, Off
#if

return


MOUSEPOS:
MouseGetPos, X, Y
PixelGetColor, Color, %X%, %Y% 		; (4) touched in the white area
If Color = 0xFFFFFF
{
   Sleep 5
   MouseGetPos, A, B
   If (Y-B > 3)
   {
   	Send {WheelDown}		; (5)
   	Send {Esc}			; (6) 
	Sleep 1
   	Send {WheelDown}
   	Send {Esc}
   }
   If (Y-B < -3)
   {
   	Send {WheelUp}
   	Send {Esc}
	Sleep 1
   	Send {WheelUp}
   	Send {Esc}
   }
}
return

The problem is selecting text. So, I think developing a if statement that says if double tap screen touch to toggle scrolling may work. I am not sure how to get that. Anyway this is a start.

Post Reply

Return to “BasicMaker 2016 for Windows”