01 2023 档案
win32 SendInput
摘要:SendInput 代替了 mouse_event 以及 keybd_event prototype UINT WINAPI SendInput( _In_ UINT nInputs, _In_ LPINPUT pInputs, _In_ int cbSize // 表示的是input的size,可
阅读全文
win32 MouseHook
摘要:// MOUSE 借助 GetMessage和PeekMessage实现 #define _WIN32_WINNT 0x0400 // #pragma comment( lib, "user32.lib" ) #include <windows.h> #include <stdio.h> HHOOK
阅读全文
win32 hook
摘要:NET API hooking is a technique by which we can instrument and modify the behavior and flow of APIcalls. https://www.ired.team/offensive-security/code-
阅读全文
奇怪的现象
摘要:为什么script标签是灰色的,有什么意图? 涉及到解释型语言的特点...具体想必...
阅读全文
js 造事件
摘要:MDN 造 https://developer.mozilla.org/zh-CN/docs/Web/API/Document/createEvent MouseEvent: MDN https://developer.mozilla.org/zh-CN/docs/Web/API/MouseEven
阅读全文
Content-Type
摘要:MDN https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types other https://blog.csdn.net/xiaoyu19910321/article/details/79279364 Co
阅读全文
js window.requestAnimationFrame
摘要:https://stackoverflow.com/questions/17926327/why-requestanimationframe-recursion-wont-eat-up-ram function window.requestAnimationFrame() 告诉浏览器——你希望执行一
阅读全文
dart GridView
摘要:如何解决flutter加载新的message的时候屏幕闪烁 GridView.count() /// 改变的时候界面闪动 GridView.builder() /// 同样也是闪动的
阅读全文
dart late / ?
摘要:dart null safety late ?. ?? late String XXX;/// 表示的是这个XXX之后能是必须要进行赋值的,不能为空,那么如果没有进行赋值任何操作(包括 ?.访问或者XXX == null)都是异常的 String? YYY;/// 表示的是YYY可以为空,之后可以进
阅读全文
JS fetch body
摘要:`fetch可选参数有一个 responseType,默认为json` `err use` ``` const handleLogin = () => { fetch("http://localhost:5000/login", { method: "POST", body: JSON.string
阅读全文
dart Process
摘要:Process Process.start("xxx", []); 表示启动,启动之后就不管了 ProcessResult Process.run("xxx", []); 是一个同步函数,会一直在这里等待进程
阅读全文
dart win32 字符串指针
摘要:获取窗口标题 final p = malloc<Pointer<Utf16>>(50); // 在C语言中其实只需要传入一个字符串的指针就可以了,这里的话,是指针的指针 GetWindowText(0x000908A6, p.value, 50); print(p.value.toDartStrin
阅读全文
js mouse_go_canvas特效
摘要:只需要js代码就行,避免id重复 /** * id: mouse_go_canvas */ const fillColor = "#7400a1" const mouse_go_canvas = document.createElement("canvas") mouse_go_canvas.set
阅读全文
js 粒子点击鼠标(particle)
摘要:直接贴js代码在script里面就行了 const particle_canvas = document.createElement("canvas"); particle_canvas.setAttribute("id","particle_canvas") particle_canvas.set
阅读全文
flutter 加载base64图片
摘要:base64 data:image/png;base64,XXX flutter Image.memory( base64.decode( xxx,/// 对应上述的XXX的base64编码部分 ) )
阅读全文
js dom节点的属性不能访问
摘要:有些时候,我们会发现DOM节点的某个属性通过dom.XXX不能访问 实际上,DOM也是一个对象,当我们通过控制台打印出来后,会发现这个属性并不在DOM节点上面,我们需要先setAttribute,之后访问就没有问题了 [video/img 的 src 或者是其他节点的某些属性,都是默认就有的,直接d
阅读全文
js 操作视频帧
摘要:MDN https://developer.mozilla.org/zh-CN/docs/Web/API/Canvas_API/Manipulating_video_using_canvas 实现原理:通过canvas将正在播放到的一定位置的video图像绘制到canvas上面,之后通过canva转
阅读全文
dart 正则表达式匹配链接
摘要:RegExp RegExp linkRegExp = RegExp(r'(https?|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
阅读全文
dart遍历的时候操作list
摘要:实际上,在遍历的时候,list对应的内存是被锁住的 List list = [1, 2, 3, 4]; // 这里使用了箭头函数,后面的表达式为true时会删除当前值 list.removeWhere((value) => value == 2); // 当然也能用{} list.removeWhe
阅读全文
js 插入节点
摘要:append Element.append 方法在 Element的最后一个子节点之后插入一组 Node 对象或 DOMString 对象。被插入的 DOMString 对象等价为 Text 节点。与 Node.appendChild() 的差异: Element.append()允许追加 DOMS
阅读全文
css 伪元素
摘要:概念 伪元素是一个附加至选择器末的关键词,允许你对被选择元素的特定部分修改样式。 MDN链接 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Pseudo-elements
阅读全文
css 伪类
摘要:伪类使用:来表示 a:link {color:#FF0000;} /* 未访问的链接 */ a:visited {color:#00FF00;} /* 已访问的链接 */ a:hover {color:#FF00FF;} /* 鼠标划过链接 */ a:active {color:#0000FF;}
阅读全文
dart 服务器返回video
摘要:HttpServer httpServer = await HttpServer.bind("localhost", 45678); File file = File("C:/Users/19519/Desktop/videos/bg2.mp4"); await for(HttpRequest ht
阅读全文
win32 ShowWindow
摘要:/// 这个函数调用之后就会给系统置于maximize状态,如果我们没有调用其他的方法回复状态,我们就先对窗口的大小进行设置后,随后不能进行再次进行最大化,调用下面的ShowWindow(hWnd, SW_RESTORE),可以恢复 /// SW_RESTORE Activates and disp
阅读全文
Flutter 定义局部路由 Navigator
摘要:Flutter 路由管理 Flutter 中,通常我们使用 Navigator 来管理全局的页面路由,在整个应用中维护一个路由堆栈。但是,有些情况下你可能需要一个局部路由,也就是在应用的某个部分内部维护一个独立的路由堆栈,而不影响全局路由。为了实现这一点,你可以在你的应用中创建一个新的 Naviga
阅读全文
win32 获取窗口大小
摘要:// 以下两个函数获取的是显示屏幕的大小,不包括任务栏等区域 int screenwidth = GetSystemMetrics(SM_CXFULLSCREEN); int screenheight = GetSystemMetrics(SM_CYFULLSCREEN); printf("%d,%
阅读全文
手势(gesture)、鼠标(cursor)
摘要:GestureDetector: can get all actions MouseRegion : can detect cursor position in its children. https://stackoverflow.com/questions/64500727/flutter-ge
阅读全文
win32 设置窗口无标题栏
摘要:// 窗口创建之后 SetWindowLong(hWnd, GWL_STYLE, GetWindowLong(hWnd, GWL_STYLE) & ~WS_CAPTION); // 为创建窗口的时候 不使用 WS_CAPTION,WS_OVERLAPPEDWINDOW,WS_TILEDWINDOW,
阅读全文
dart 判定网络连接情况
摘要:import 'dart:io'; void main() async{ try { final result = await InternetAddress.lookup('example.com'); if (result.isNotEmpty && result[0].rawAddress.i
阅读全文
dart_vlc 基本介绍
摘要:### Player(是一个控制器) ```dart /// player 实际上就是控制器,可以对当前的播放列表的维护 final Player _player = Player( id: 0, /// 下面也可以设置video的大小,遵循后来者居上 videoDimensions: const
阅读全文
activeBg用到链接
摘要:搭建视频:https://www.jianshu.com/p/d2795a6a06fb https://imgur.com/ https://catbox.moe/ https://pixabay.com/videos/search/live%20wallpaper/ https://livewal
阅读全文
win32 调用外部进程以及如何隐藏consle窗口
摘要:如何隐藏console窗口 FreeConsole(); 在启动console后释放console,console突然闪退 #pragma comment(linker, "/subsystem:"windows" /entry:"mainCRTStartup"") #pragma comment(
阅读全文
flush close到底是什么东西
摘要:flush() 是把缓冲区的数据强行输出, 主要用在IO中,即清空缓冲区数据,一般在读写流(stream)的时候,数据是先被读到了内存中, 再把数据写到文件中,当你数据读完的时候不代表你的数据已经写完了,因为还有一部分有可能会留在内存这个缓冲区中。这时候如果 你调用了close()方法关闭了读写流,
阅读全文
package:webview_windows 使用注意
摘要:await _webViewController.loadUrl("F:/language/hbuilderx/code/test/test3.html"); await _webViewController.loadUrl("file:///F:/language/hbuilderx/code/t
阅读全文
PC软件打包
摘要:# inno setup ## 官网直达 https://jrsoftware.org/isinfo.php ## inno setup 功能简介 - inno setup 说明:要生成快捷方式的时候如果指定main.exe,之后又会把main.exe复制一次到安装目录下可以避开 - inno se
阅读全文
dart functionSet
摘要:文件 根据传入的路径,返回上N级目录 /// 0表示当前路径, -1 上一级路径 返回值的最后面没有 / /// 最多到达磁盘目录 String getPathFromIndex(String path, int index){ List<String> dirNames = path.split(
阅读全文
dart文件中的属性以及(class)类属性
摘要:dart不像java只能在class里面定义属性,而属性为类属性或者对象属性 dart在此之外还可以直接在dart文件里面定义属性 如 test.dart里面的代码 int a = 1; test.dart里面仅仅有这一行代码,但是这个a可以供其他的任何一个方法/函数调用,并且a的内存始终是不变的
阅读全文
flutter常用包简介
摘要:flutter常用包简介 sequence package usage 1 url_launcher 链接到外部的浏览器 2 dio 对httpClient请求的封装 3. ffi: 有 dart:ffi,也有package:ffi,两者不同,用来加载dll文件 4. win32: 封装了常用的wi
阅读全文
dart file and directory(目录或者文件操作)
摘要:dart 文件目录操作 1. 文件读写 File file = File("XXX"); file.exists();//在假设为文件的时候判定文件是否存在,如果是目录返回false // dart 文件读写,有些需要自己关闭,有些自动关闭,如果不是自己关闭的,那个如果冲突了,就不能写入,因此最好使
阅读全文
win32 设置窗口的透明度
摘要:LONG wAttr = GetWindowLong(hWnd, GWL_EXSTYLE); //设置windows style这样才能进行下面的SetLayeredWindowAttributes SetWindowLong(hWnd, GWL_EXSTYLE, wAttr | WS_EX_LAY
阅读全文
win32 查找窗口
摘要:spy++ FindWindow();//顶层窗口 FindWindowEx()//可以查找父窗口或者是兄弟窗口,如果填写了父就是找子,填写了子,就是找下一个兄弟 GetWindow();//父窗口要查询其子窗口可使用GetWindow函数(指定GW_CHILD标志),该函数返回第一个子窗口的句柄。
阅读全文
win32 EnumWindows in dart
摘要:使用和C里面完全一样 late final int _workerWHexHandle; int _enumWindowsProc(int hWnd,int lParam){ /// print(hWnd.toRadixString(16)); int pHWnd = FindWindowEx(hW
阅读全文
dart use DLL file
摘要:We need to do two steps define two types one for dart itself and one for ffi, with ffi as the bridge typedef ChangeBackgroundFFI = ffi.Void Function(f
阅读全文
css fill(铺满)
摘要:XXX{ object-fit:fill } maybe following is useful XXX{ position:absolute; width:100%; height:100%; left:0; top:0; }
阅读全文
dart isolate
摘要:isolate的理解 isolate原型 external static Future<Isolate> spawn<T>( void entryPoint(T message), T message, {bool paused = false, bool errorsAreFatal = true
阅读全文
dart HttpSocket&HttpClient
摘要:HttpSocket var server = await HttpServer.bind( InternetAddress.loopbackIPv4, 4040, ); print('Listening on localhost:${server.port}'); /// 整个isoalate会阻
阅读全文
计算机 socket 认识
摘要:socket的种类 socket:连接时间不限定,看链接关闭的时间,它把TCP/IP层复杂的操作抽象为几个简单的接口供应用层调用已实现进程在网络中通信。 httpSocket:建立在TCP的基础上,是socket的封装,连接时间很短,通信是单向的 webSocket:建立在TCP上,是全双工sock
阅读全文
flutter设置铺满
摘要:container的fit Container( width: MediaQuery.of(context).size.width, // 屏幕宽度 height: MediaQuery.of(context).size.height, // 屏幕高度 child: Image.asset( "as
阅读全文
html5 新标签
摘要:main(块级元素) 注意在一个文档中,<main> 元素是唯一的,所以不能出现一个以上的 <main> 元素。<main> 元素不能是以下元素的后代:<article>、<aside>、<footer>、<header> 或 <nav>。
阅读全文
flutter webview_windows 简单使用
摘要:class _MyHomePageState extends State<MyHomePage> { final WebviewController _webViewController = WebviewController(); @override void initState() { supe
阅读全文
dart Socket and ServerSocket
摘要:ServerSocket void main() async { ServerSocket serverSocket = await ServerSocket.bind("localhost", 8888); serverSocket.listen((Socket client) { client.
阅读全文
win32 API
摘要:进程 GetPidByProcessName 窗口 GetWindowThreadProcessId; // 获取窗口的进程ID SetLayeredWindowAttributes: 设置窗口的显示属性 SetParent: 设置窗口的parent ShowWindow:以某个样式显示窗口 Set
阅读全文
|
|
|
23 |
24 |
25 |
26 |
27 |
28 |
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
1
|
2
|
3
|
4
|
5
|
|
|
|