免責事項:この記事はブロガーオリジナル記事ですが、許可ブロガーなく再生してはなりません。https://blog.csdn.net/mr_zhuqiang/article/details/91490298
依存スクリプト:AutoHotkeyをがへに直接インストール
AHKファイルとしてスクリプトの内容を見て、あなたが実行することができ、シングル画面を調整することができますが、値の範囲を調整したいYPOS自身の判断XPOS、以下の
左と右のエッジは、仮想デスクトップのスクリプトを切り替えるスイッチ-Win10のデュアルスクリーンのバージョンに触れる.ahk
;左右两个屏幕:1920x1020;左侧边缘为负数,右侧边缘为正数
;双屏显示器版本:左右双侧中间区域边缘部分可触发
;这个是设置鼠标坐标的相对位置,本例是相对雨整个桌面
CoordMode, Mouse ,Screen
#Persistent
;这个设置了获取鼠标信息的频率,数值越小边缘热区越灵敏
SetTimer, WatchCursor, 300
return
WatchCursor:
GetKeyState, state, LButton
MouseGetPos, xpos, ypos, id, control
;若要重设边缘热区的范围请,把下一行的 ; 号去掉,就会在鼠标位置显示鼠标的坐标,根据坐标修改以下数值
;ToolTip,x:%xpos% y:%ypos% state:%state%
if(state = "U" ){
if(ypos > 250 and ypos < 850){
if(xpos > 1918){
Send ^#{Right}
MouseMove, xpos -20, ypos
}else if(xpos = -1920){
Send ^#{Left}
MouseMove, xpos + 20, ypos
}
;显示所有虚拟桌面的热区
}else if(xpos = 0 and ypos = 0){
Send #{Tab}
MouseMove, 10, 10
}
}
return
;原文:https://blog.csdn.net/a__yes/article/details/77093183
メイン画面バージョン - 左端の上端と下端-Win10仮想デスクトップスクリプト切替をタッチ.ahk
;双屏显示器版本:只在主屏幕左侧 50 ~ 200 上下边缘有效果,这样是为了误操作
;这个是设置鼠标坐标的相对位置,本例是相对雨整个桌面
CoordMode, Mouse ,Screen
#Persistent
;这个设置了获取鼠标信息的频率,数值越小边缘热区越灵敏
SetTimer, WatchCursor, 300
return
WatchCursor:
GetKeyState, state, LButton
MouseGetPos, xpos, ypos, id, control
;若要重设边缘热区的范围请,把下一行的 ; 号去掉,就会在鼠标位置显示鼠标的坐标,根据坐标修改以下数值
;ToolTip,x:%xpos% y:%ypos% state:%state%
if(state = "U" ){
;x方向的范围
if(xpos > 50 and xpos < 200){
;y方向的范围
if(ypos = 1079){
Send ^#{Right}
MouseMove, xpos, 1059
}else if(ypos = 0){
Send ^#{Left}
MouseMove, xpos, 20
}
;显示所有虚拟桌面的热区
}else if(xpos = 0 and ypos = 0){
Send #{Tab}
MouseMove, 10, 10
}
}
return
;原文:https://blog.csdn.net/a__yes/article/details/77093183