#include <iostream>
#include <windows.h>
#include <conio.h>
using namespace std;
int main()
{
RECT rsw;
HWND cmd =FindWindow("ConsoleWindowClass",NULL);
SetWindowTextA(cmd,"FCC");
SetWindowPos(cmd,HWND_BOTTOM,0,0,0,0,SWP_HIDEWINDOW | SWP_NOOWNERZORDER);
while(1)
{
HWND sw=FindWindow(NULL,"希沃管家");
HWND swf =GetForegroundWindow();
if (sw!=0||sw==swf){
GetClientRect(sw,&rsw);
if(rsw.right==1920&&rsw.bottom==1080){
SetWindowPos(sw,HWND_BOTTOM,0,0,0,0,SWP_HIDEWINDOW | SWP_NOOWNERZORDER);
}
}
Sleep(1000);
}
return 0;
}
现版本更新:
+对锁屏界面的判断
ps:1.可以在pe下将该软件放在''启动''文件夹下(不懂的百度)
2.有一些win10的更改了锁屏逻辑,故该软件不一定能覆盖100%