屏蔽RG:
(请使用GBK编码保存)
#include<string>
#include<windows.h>
using namespace std;
int main(){
/*
by:zhouhaoGG
2024/11/23 -> 2026/2/8
按↓←→键隐藏/显示
*/
const int n=2;
const string name[n]={
"CutRecordSideWnd - 云桌面教学管理软件",
"DisplayerWnd - 云桌面教学管理软件"
};
bool hide=false,past_v=false,bd_v=false;
HWND hWnd[n];
FIND:
for(int i=0;i<n;i++){
hWnd[i]=FindWindow(NULL,name[i].c_str());
if(hWnd[i]==NULL){
Sleep(1000);
goto FIND;
}
}
while(true){
for(int i=0;i<n;i++){
SetWindowPos(hWnd[i],HWND_BOTTOM,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
ShowWindow(hWnd[i],hide?SW_HIDE:SW_SHOW);
}
bd_v=(GetAsyncKeyState(VK_DOWN)&GetAsyncKeyState(VK_LEFT)&GetAsyncKeyState(VK_RIGHT))&0x8000;
if(past_v==0&&bd_v==1) hide=!hide;
past_v=bd_v;
Sleep(10);
}
return 0;
}
解除键盘:插拔键盘USB
old:
#include<string>
#include<windows.h>
using namespace std;
int main(){
/*
by:zhouhaoGG
2024/11/23
按↓←→键隐藏/显示
*/
const int n=2;
const string name[n]={
"CutRecordSideWnd - 云桌面教学管理软件",
"DisplayerWnd - 云桌面教学管理软件"
};
bool hide=false,past_v=false,bd_v=false;
HWND hWnd[n];
for(int i=0;i<n;i++){
hWnd[i]=FindWindow(NULL,name[i].c_str());
if(hWnd[i]==NULL) return i+1;
}
while(true){
for(int i=0;i<n;i++){
SetWindowPos(hWnd[i],HWND_BOTTOM,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
ShowWindow(hWnd[i],hide?SW_HIDE:SW_SHOW);
}
bd_v=(GetAsyncKeyState(VK_DOWN)&GetAsyncKeyState(VK_LEFT)&GetAsyncKeyState(VK_RIGHT))&0x8000;
if(past_v==0&&bd_v==1) hide=!hide;
past_v=bd_v;
Sleep(10);
}
return 0;
}育林:“屏幕广播系统”
极域
#include<windows.h>
using namespace std;
int main(){
HWND h;
while(true){
while((h=FindWindow(NULL,"屏幕广播"))){
system("taskkill /IM studentMain.exe /F");
Sleep(5);
}
Sleep(30);
}
return 0;
}解除极域U盘控制
cmd :
sc stop TDFileFilter
sc delete TDFileFilter
获取窗口名:
#include<windows.h>
#include<iostream>
#include<iomanip>
using namespace std;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam){
const int length = 256;
char windowText[length];
if (GetWindowText(hwnd, windowText, length))
cout<<"Handle: "<<left<<setw(10)<<hwnd<<"- "<<windowText<<'\n';
return TRUE;
}
int main(){
EnumWindows(EnumWindowsProc, 0);
return 0;
}一键破极域
taskkill /IM studentMain.exe /F
sc stop TDFileFilter
sc delete TDFileFilter
The END