use acrylic to watch netflix

1.get hosts

2.

#!/usr/bin/env python
# coding: utf-8

# In[13]:


import pandas as pd
import numpy as np


# In[24]:


filename = r"C:\Users\lolo0\Downloads\51b91c776d_202308010805.csv"
#在路径前面加r,即保持字符原始值的意思。
import pandas as pd

# 读取csv文件
df = pd.read_csv(filename)

# 打印列索引名称
print(df.columns)
host_list = df['host'].values.tolist()


# In[61]:


print(host_list)
i=0


# In[62]:


file = open(r"C:\Users\lolo0\Downloads\Acrylic-Portable\AcrylicHosts.txt", "r")
 
# 读取文件
data = file.read()
#print(data)
OldContent=host_list[i]
#NewContent=host_list[i]
NewContent=host_list[i+1]
# 替换内容
newdata = data.replace(OldContent, NewContent)
print(newdata)
# 关闭文件
file.close()
 
# 打开文件
file = open(r"C:\Users\lolo0\Downloads\Acrylic-Portable\AcrylicHosts.txt", "w")
 
# 写入文件
file.write(newdata)
 
# 关闭文件
file.close()


# In[63]:


i=i+1


# In[64]:


print(i)


# In[68]:


import os
os.system(r"C:\Users\lolo0\Downloads\Acrylic-Portable\RestartAcrylicService.bat")
import time
time.sleep(10)
os.system('ipconfig/flushdns')


# In[ ]:


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
实现Win7窗口的边框半透明效果可以考虑以下步骤: 1. 创建一个自定义的用户控件,并设置其BorderStyle为None,同时设置BackColor为透明色。 2. 在用户控件的Paint事件中,使用GDI+绘制窗口边框的半透明效果。可以使用DrawRectangle方法绘制边框,并使用FillRectangle方法填充半透明的颜色。 3. 在用户控件中添加窗口控制按钮,如最小化、最大化和关闭按钮等。 4. 在用户控件的MouseDown和MouseMove事件中实现窗口的拖动效果。 实现在Win11里面呈现像Win7那样窗口边框半透明的毛玻璃质感可以考虑以下步骤: 1. 使用Win32 API函数DwmExtendFrameIntoClientArea实现窗口边框的毛玻璃效果。这个函数可以在Windows 7和Windows 11上都可以使用。 2. 在用户控件中添加一个透明的背景层,并在其上面绘制窗口内容。可以使用GDI+绘制窗口内容,或者使用WPF来实现更加复杂的界面效果。 3. 在用户控件的Paint事件中,先绘制背景层,再绘制窗口边框的半透明效果。 4. 在用户控件的Resize事件中,更新背景层和窗口边框的大小和位置。 需要注意的是,在Windows 11中,系统默认开启了Acrylic效果,可以通过在Registry中设置EnableTransparency键值来关闭它。如果希望在Win11系统上实现类似Win7的窗口边框半透明效果,可以考虑关闭Acrylic效果,然后使用DwmExtendFrameIntoClientArea函数来实现毛玻璃效果。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值