|
43 | 43 | ; Caution This will block above multi-word selection, Right click to stop |
44 | 44 | ; TO DO perhaps improve above to only work whilst mouse held down |
45 | 45 | ; however, that might be tricky for tablet usage. |
| 46 | +; + Reassign Right Click to Alt for commands on tablets without two tap exit |
46 | 47 | ; - (Work in Progress not included) Modify toolbar icon actions per forum |
47 | 48 | ; - (Work in Progress not included) Add extra toolbar icons |
48 | 49 | ; - (Work in Progress not included) OCR with TTS |
@@ -80,6 +81,7 @@ IniRead, RunArg4, plus.ini, RunAppS, RunArg4 , https://duckduckgo.com/?q= |
80 | 81 | IniRead, ModWinS, plus.ini, ToggleS, ModWinS , false ; failsafe for a bad entry is false |
81 | 82 | IniRead, ModSlct, plus.ini, ToggleS, ModSlct , false ; failsafe is Double Click one word |
82 | 83 | IniRead, ModLeft, plus.ini, ToggleS, ModLeft , false ; failsafe for swap Left to Right |
| 84 | +IniRead, AltExit, plus.ini, ToggleS, AltExit , false ; failsafe for swap Right to Alt |
83 | 85 |
|
84 | 86 | ; Try to confine actions to SumatraPDF note this does not always confine mouse |
85 | 87 | ;Hotkey, "IfWinActive", "ahk_exe SumatraPDF.exe" |
@@ -126,20 +128,40 @@ If MouseWin != SUMATRA_PDF_CANVAS1 |
126 | 128 | { |
127 | 129 | if ModSlct = true ; note initially false by default, change to = true in plus.ini |
128 | 130 | { |
129 | | - ; msgbox ModSlctTrue %MouseWin% %ModSlct%; for debugging only |
| 131 | + msgbox ModSlctTrue %MouseWin% %ModSlct%; for debugging only |
130 | 132 | Click down |
131 | 133 | } |
132 | 134 | if ModLeft = true ; note initially false by default, change to = true in plus.ini |
133 | 135 | { |
134 | | - ; msgbox ModLeftTrue %MouseWin% %ModLeft% ; for debugging only |
| 136 | + msgbox ModLeftTrue %MouseWin% %ModLeft% ; for debugging only |
135 | 137 | Click {esc} |
136 | 138 | Click down Right |
137 | 139 | } |
138 | 140 | } |
139 | | -; msgbox Still in canvas |
| 141 | +; msgbox Still in canvas %MouseWin% |
140 | 142 | return |
141 | 143 | msgbox Left Button Error, I should never be here |
142 | 144 |
|
| 145 | +; Some tablet users complain they can not double tap to exit full-screen mode ! |
| 146 | +; and my touch pad does not have that function enabled so we need another means |
| 147 | +; the best option is Mod Right Mouse context to call ALT which has all commands |
| 148 | +~RButton:: |
| 149 | +MouseGetPos,,,, MouseWin |
| 150 | +;confine actions to Canvas |
| 151 | +If MouseWin != SUMATRA_PDF_CANVAS1 |
| 152 | + return ; Outside SumatraPDF Canvas |
| 153 | +else |
| 154 | +{ |
| 155 | + if AltExit = true ; note initially false by default, change to = true in plus.ini |
| 156 | + { |
| 157 | + Click, Right, Up ; attempts to reset state is it needed if we esc ? |
| 158 | + SendInput {Esc} |
| 159 | + SendInput {Alt} |
| 160 | + } |
| 161 | +} |
| 162 | +; msgbox Still in canvas %MouseWin% |
| 163 | +return |
| 164 | +msgbox Right Button Error, I should never be here |
143 | 165 |
|
144 | 166 | ; lets hook Alt + i to get current filename details (reserved for future use) |
145 | 167 | !i:: |
|
0 commit comments