-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
110 changed files
with
1,823 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//禁止刷新 | ||
import win.ui; | ||
|
||
/*DSG{{*/ | ||
var winform = win.form(text="Edge 浏览器控件 - 禁止按 F5,Ctrl + R 刷新";right=759;bottom=469;bgcolor=16777215) | ||
winform.add() | ||
/*}}*/ | ||
|
||
import web.view; | ||
var wb = web.view(winform); | ||
|
||
//所有网页自动注入以下 JavaScript | ||
wb.preloadScript(` | ||
document.onkeydown = function (e) { | ||
if (e.key == "F5" || (e.ctrlKey && e.key == "r") ) { | ||
e.preventDefault(); | ||
} | ||
} ` | ||
) | ||
|
||
wb.html = /** | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<script >alert("网页每加载一次,显示一次弹框")</script> | ||
</head> | ||
<body></body> | ||
</html> | ||
**/ | ||
|
||
winform.show(); | ||
win.loopMessage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//RUNAS//禁用设备 | ||
import console; | ||
import sys.device; | ||
import process.devcon; | ||
|
||
//查找所有鼠标设备 | ||
var devices = sys.device("{4D36E96F-E325-11CE-BFC1-08002BE10318}"/*_GUID_DEVCLASS_MOUSE*/); | ||
|
||
//遍历找到的鼠标设备 | ||
for( index,deviceDesc,hardwareId,T in devices.each( | ||
0/*_SPDRP_DEVICEDESC*/, //添加返回值 deviceDesc | ||
1/*_SPDRP_HARDWAREID*/ //添加返回值 hardwareId | ||
) ){ | ||
|
||
process.devcon.disable(hardwareId[1]); | ||
} | ||
|
||
console.pause(,"已禁用鼠标,按任意键启用鼠标"); | ||
|
||
for( index,deviceDesc,hardwareId,T in devices.each(0,1) ){ | ||
|
||
process.devcon.enable(hardwareId[1]); | ||
} | ||
|
||
console.pause(,"已启用鼠标,按任意键继续"); | ||
|
||
/* | ||
//禁用蓝牙 | ||
var devices = sys.device("{E0CBF06C-CD8B-4647-BB8A-263B43F0F974}" ); | ||
for( index,deviceDesc,hardwareId in devices.each(0,1) ){ | ||
process.devcon.disable(hardwareId[1]); | ||
} | ||
*/ | ||
|
Oops, something went wrong.