我初中时用Python编的再见极域,很多功能没有实现,但基本的杀、冻结还是很好用的。

也不懂太多什么版不版权的,反正都是我自己写的

(现在两年后回过来看,当年写得好丑。。。)

尊重极域,仅作学习用,禁止用来做些有害的事情。还是建议好好上你的信息课

import os
from tkinter import *
from tkinter.messagebox import *import psutilroot = Tk()
root.geometry('280x320')
root.title('再见极域')
root.wm_attributes('-topmost', 1)
root.resizable(False, False)
root.configure(bg = '#1E1E1E')font1 = ('微软雅黑', 9)
font2 = ('Courier New', 16, 'bold')
font3 = ('微软雅黑', 10)
ICED = False
TOP = True
CON = TrueLabel(root, text = '极域状态', bg = '#1E1E1E', fg = '#A0A0A0', font = font1).place(x = 0, y = 10, width = 140, height = 20)
Label(root, text = '广播状态', bg = '#1E1E1E', fg = '#A0A0A0', font = font1).place(x = 140, y = 10, width = 140, height = 20)
Label(root, text = '键盘状态', bg = '#1E1E1E', fg = '#A0A0A0', font = font1).place(x = 0, y = 70, width = 140, height = 20)
Label(root, text = '置顶状态', bg = '#1E1E1E', fg = '#A0A0A0', font = font1).place(x = 140, y = 70, width = 140, height = 20)la = Label(root, bg = '#1E1E1E', font = ('Courier New', 13, 'bold'))
lb = Label(root, bg = '#1E1E1E', font = font2)
lc = Label(root, text = 'OPENED', fg = 'lime', bg = '#1E1E1E', font = font2)
ld = Label(root, text = 'ON', fg = 'lime', bg = '#1E1E1E', font = font2)la.place(x = 0, y = 30, width = 140, height = 45)
lb.place(x = 140, y = 30, width = 140, height = 45)
lc.place(x = 0, y = 90, width = 140, height = 45)
ld.place(x = 140, y = 90, width = 140, height = 45)def cba1():ba.config(fg = '#660000', bg = 'red', activeforeground = 'red', activebackground = '#660000', text = '上键盘锁', command = cba2)lc.config(text = 'OPENED', fg = 'lime')#---------------------------#----------开键盘锁----------#---------------------------def cba2():ba.config(fg = '#006600', bg = 'lime', activeforeground = 'lime', activebackground = '#006600', text = '开键盘锁', command = cba1)lc.config(text = 'LOCKED', fg = 'red')#---------------------------#----------上键盘锁----------#---------------------------ba = Button(root, text = '上键盘锁', borderwidth = 0,  bg = 'red', font = font3, activeforeground = 'red', activebackground = '#660000', relief = GROOVE, fg = '#660000', command = cba2)
ba.place(x = 10, y = 140, width = 125, height = 45)def cbb1():bb.config(fg = '#660000', bg = 'red', activeforeground = 'red', activebackground = '#660000', text = '取消置顶', command = cbb2)ld.config(text = 'ON', fg = 'lime')TOP = 1root.wm_attributes('-topmost', 1)def cbb2():bb.config(fg = '#006600', bg = 'lime', activeforeground = 'lime', activebackground = '#006600', text = '置顶窗口', command = cbb1)ld.config(text = 'ON', fg = 'red')TOP = 0root.wm_attributes('-topmost', 0)bb = Button(root, text = '取消置顶', borderwidth = 0,  bg = 'red', font = font3, activeforeground = 'red', activebackground = '#660000', relief = GROOVE, fg = '#660000', command = cbb2)
bb.place(x = 145, y = 140, width = 125, height = 45)# 这三个功能暂时没弄def cbc():bc['state'] = 'disabled'bd['state'] = 'normal'be['state'] = 'normal'#---------------------------#-----------窗口化----------#---------------------------def cbd():bc['state'] = 'normal'bd['state'] = 'disabled'be['state'] = 'normal'#---------------------------#-----------最小化----------#---------------------------def cbe():bc['state'] = 'normal'bd['state'] = 'normal'be['state'] = 'disabled'#---------------------------#----------复原窗口----------#---------------------------bc = Button(root, text = '窗口化', borderwidth = 0, font = font3, bg = '#00A7FF', activeforeground = '#00A7FF', activebackground = '#0000BF', relief = GROOVE, fg = '#0000BF', command = cbc)
bc.place(x = 10, y = 195, width = 76, height = 45)
bd = Button(root, text = '最小化', borderwidth = 0, font = font3, bg = '#00A7FF', activeforeground = '#00A7FF', activebackground = '#0000BF', relief = GROOVE, fg = '#0000BF', command = cbd)
bd.place(x = 96, y = 195, width = 76, height = 45)
be = Button(root, text = '复原窗口', borderwidth = 0, font = font3, bg = '#00A7FF', activeforeground = '#00A7FF', activebackground = '#0000BF', relief = GROOVE, fg = '#0000BF', command = cbe)
be['state'] = 'disabled'
be.place(x = 182, y = 195, width = 88, height = 45)def cbf():os.system('taskkill /im StudentMain.exe /f')showinfo('成功', '操作成功执行!')# ntsd 需要事先放到下面这个路径def cbg():os.system('C:\\Windows\\Temp\\ntsd.exe -c q -pn StudentMain.exe')showinfo('成功', '操作成功执行!')def cbh1():global ICEDs = []for proc in psutil.process_iter():try:pinfo = proc.as_dict(attrs = ['pid', 'name'])except psutil.NoSuchProcess:passelse:s.append(pinfo)for i in s:if i['name'] == 'StudentMain.exe':p = i['pid']breakpro = psutil.Process(p)pro.suspend()ICED = Truebh.config(fg = '#660000', bg = 'red', text = '解冻极域', activeforeground = 'red', activebackground = '#660000', command = cbh2)def cbh2():global ICEDs = []for proc in psutil.process_iter():try:pinfo = proc.as_dict(attrs = ['pid', 'name'])except psutil.NoSuchProcess:passelse:s.append(pinfo)for i in s:if i['name'] == 'StudentMain.exe':p = i['pid']breakpro = psutil.Process(p)pro.resume()ICED = Falsebh.config(fg = '#006600', bg = 'lime', text = '冻结极域', activeforeground = 'lime', activebackground = '#006600', command = cbh1)bf = Button(root, text = 'TASKKILL', borderwidth = 0, fg = '#006600', bg = 'lime', activeforeground = 'lime', activebackground = '#006600', relief = GROOVE, command = cbf)
bf.place(x = 10, y = 255, width = 80, height = 45)
bg = Button(root, text = 'NTSD', borderwidth = 0,  fg = '#006600', bg = 'lime', activeforeground = 'lime', activebackground = '#006600', relief = GROOVE, command = cbg)
bg.place(x = 100, y = 255, width = 80, height = 45)
bh = Button(root, text = '冻结极域', borderwidth = 0,  fg = '#006600', bg = 'lime', activeforeground = 'lime', activebackground = '#006600', relief = GROOVE, command = cbh1)
bh.place(x = 190, y = 255, width = 80, height = 45)FUCKED = False
def fla():global ICED, FUCKED, CONs = []k = []for proc in psutil.process_iter():try:pinfo = proc.as_dict(attrs = ['pid', 'name'])except psutil.NoSuchProcess:passelse:s.append(pinfo['name'])k.append(pinfo)if 'StudentMain.exe' in s:if CON:la.config(font = ('Courier New', 13, 'bold'))CON = Falsefor i in k:if i['name'] == 'StudentMain.exe':we = i['pid']breakif ICED:la.config(text = 'ICED', fg = 'yellow')lb.config(text = 'ICED', fg = 'yellow')else:la.config(text = f'ON\npid={we}', fg = 'red')lb.config(text = 'UNKNOWN', fg = 'yellow')if FUCKED:bc['state'] = 'normal'bd['state'] = 'normal'be['state'] = 'disabled'bf['state'] = 'normal'bg['state'] = 'normal'bh['state'] = 'normal'FUCKED = Falseelse:CON = Truela.config(text = 'OFF', fg = 'lime')lb.config(text = 'OFF', fg = 'lime')bc['state'] = 'disabled'bd['state'] = 'disabled'be['state'] = 'disabled'bf['state'] = 'disabled'bg['state'] = 'disabled'bh['state'] = 'disabled'la.config(font = font2)FUCKED = Trueif TOP:root.attributes('-topmost', 1)root.after(700, fla)root.after(500, fla)
root.mainloop()

再见极域(Python水水水)相关推荐

  1. 如何摆脱极域2016(及以下版本)的控制

    大家有没有这样的经历:在机房上课时,正用电脑玩着小游戏,结果被老师用极域发现? 本篇文章,将教大家三种脱离极域的控制的方法. 方法一,windows+L键,适合win7,及以下版本,不建议使用 先按住 ...

  2. windows7下GithubDesktop和极域学生客户端冲突导致无法正常打开解决方案

    [出现问题] 很悲伤,今天GithubDesktop打开直接报错导致无法开启 报错如下 我的天呢,你敢相信连原因都不给我,但是这特么怎么可能难道我呢! 打开系统日志查看原因最终找到罪魁祸首!!! 计算 ...

  3. lisp对excel其他行列写入_【极简Python 自动化办公】Python写入Excel表格

    [极简Python 自动化办公]Python写入Excel表格 [极简Python 自动化办公]专栏是介绍如何利用python办公,减少工作负荷.篇幅精炼,内容易懂,无论是否有编程基础,都非常适合. ...

  4. enlink请输入正确服务器地址,MXC极域有什么新的消息?

    1.0.0是一个很大的更新!首先,我们整合了M2M钱包的UI与LPWAN服务器,使整个系统能够更完善地支援手机浏览.再来,我们调整了充值的功能来确保您只能将钱包与超级节点的帐户配对后才能充值您的MXC ...

  5. 计算机网络学生机怎样连接总机,极域课堂管理系统怎么连接老师 学生端连接问题解决方法...

    现在的大学课堂都紧跟着时代的步伐,选择用电子教室代替传统的教室,电子教室的好处就是可以让坐在角落的同学也能清楚的看到老师的每一个操作,除此之外还可以电子举手,提交作业获得老师的及时反馈,学习效率倍增. ...

  6. 极域课堂分发文件与一键开关机教程

    极域课堂教师端分发文件与一键开关机教程 1. 极域课堂教师端分发文件 2. 使用极域课堂教师端一键开机或关机 1. 极域课堂教师端分发文件 先打开极域课堂软件教师端,点击登录: Ctrl+A,全选或选 ...

  7. 极域教室老师版,控制同学电脑

    资源链接: 极域教室老师版,控制同学电脑 功能: 1.屏幕广播 除了原来的全屏和窗口广播模式外,增加了绑定窗口模式.老师可以选择屏幕的某个部分广播给学生,以增加教学的直观性. 2.监控转播 监控时抓取 ...

  8. 极域电子教室学生机房管理助手(好好上课)教程

    自从出了学生机房管理助手这个玩意后,想必大家上课认真了许多? 是的,这篇博客,让你好好上课(滑稽)! 顺便说一下,底下的,鬼抄你代码了?别瞎*.乱说,放~*的狗-呢? 全自制的,你孤独别来这里找存在感 ...

  9. 【Python】办公篇-《极客Python之效率革命》(小甲鱼) 笔记一

    〇.前情提要 学习小甲鱼的使用Python读写Excel文件.这是上篇. 参考: [办公篇]<极客Python之效率革命>(小甲鱼)https://www.bilibili.com/vid ...

最新文章

  1. 今日最佳:导师给你指了一个研究方向后...
  2. linux centos yum 报错 one of the configured repositories failed 解决方法
  3. Command_Of_Windows1
  4. [SIGMOD 10] Pregel 基于BSP的大规模图处理系统 学习总结
  5. Nokia Device Specifications
  6. python requests请求失败重试_Python Requests.post()请求失败时的retry设置
  7. Evidence gathering tools
  8. Newbe.ObjectVisitor 0.4.4 发布,模型验证器上线
  9. 北京玉渊潭开启春节模式 五大版块吸引游客
  10. 笨办法学 Linux 引言
  11. (转) Eclipse Maven 编译错误 Dynamic Web Module 3.1 requires Java 1.7 or newer 解决方案
  12. 在阿里云创建子域名,配置nginx,使用pm2部署node项目到ubuntu服务器
  13. 深圳465亿建11代生产线,TCL三星带头认购股权
  14. VC中不同类型DLL及区别
  15. 一个简单的音乐网站项目
  16. R语言学习(五)——聚类分析
  17. 服务器两个内存为何只显示4g_windows7系统插入2个4G内存条却只显示4G的设置步骤?...
  18. 2022-2028全球及中国食品加工机械行业研究及十四五规划分析报告
  19. 前端学习:jQuery学习--Day03
  20. C语言实现3个数的最小公倍数和最大公约数

热门文章

  1. 复盘_9月—(第2周工作复盘)
  2. BZOJ2073: [POI2004]PRZ
  3. leetCode883
  4. CSGO社区服务器开服架设搭建教程windows服务器什么配置的合适国际服
  5. NX二次开发 矩阵向量坐标 UFUN根据z方向获得3x3矩阵 UF_MTX3_initialize_z
  6. Go C 编程 第3课 魔法自动机
  7. 汽车侧垂向耦合动力学模型介绍(汽车动力学建模进阶知识)
  8. [转]链接器都干了些什么?
  9. DB9 在 RS232 通讯上的应用接法详解
  10. 小红书主页爬取_【小红书首页】小红书首页内容推荐依靠哪些规则?