#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int tms_n=0;
double bfb_yc=0;
int main(){
Sleep(tms_n);
HWND hWnd=GetForegroundWindow();
LONG exStyle=GetWindowLong(hWnd,GWL_EXSTYLE);
exStyle|=WS_EX_LAYERED;
SetWindowLong(hWnd,GWL_EXSTYLE,exStyle);
SetLayeredWindowAttributes(hWnd,0,(long long)(bfb_yc*2.55),LWA_ALPHA);
return 0;
}代码by @tyx9192596