萝卜L

导航

2021年1月4日 #

Iup lua dialog size

摘要: 对话框(iup.dialog)无自然尺寸(Natural size/NATURALSIZE),可以构造位于最外层的容器,(加上对话框边框偏移)来间接获取客户区的自然大小。(进而设置Minsize) 使用 dialog.RASTERSIZE=nil 清除用户尺寸(User size),再读取 dial 阅读全文

posted @ 2021-01-04 21:28 萝卜L 阅读(236) 评论(0) 推荐(0)

2020年12月30日 #

Iup Lua wheel button scroll caret

摘要: IupLua中,当鼠标在text控件客户区中, SetGlobal('MOUSEBUTTON',..) (模拟滚轮操作(wheel))会触发一次 LEAVEWINDOW_CB - ENTERWINDOW_CB 回调(callback)。 iup.SetGlobal('INPUTCALLBACKS', 阅读全文

posted @ 2020-12-30 21:35 萝卜L 阅读(188) 评论(0) 推荐(0)

2020年12月28日 #

游览器 收藏 集锦 标签分组

摘要: Microsoft Edge 版本 87.0.664.66 (官方内部版本) (64 位) 标签栏任意标签位置右键菜单,有将所有标签页添加到收藏夹(Ctrl+Shift+D)、将所有标签页添加到新集锦中。 标签栏空白位置右键菜单,有将打开的页面添加到收藏夹(Ctrl+Shift+D)。 组织: 收藏 阅读全文

posted @ 2020-12-28 08:34 萝卜L 阅读(457) 评论(0) 推荐(0)

2020年12月26日 #

Lua/AHK socket tcp telnet

摘要: 库名为socket(而非luasocket)。 当前版本( require("socket")._VERSION )为3.0-rc1。 master+bind-listen local address=service master+connect remote address=client serv 阅读全文

posted @ 2020-12-26 21:59 萝卜L 阅读(776) 评论(0) 推荐(0)

Lua wait sleep

摘要: 使用os.execute 执行涉及等待、超时的外部命令、程序。配合 >nul 不显示标准输出流信息。执行过程是阻塞(block)等待的。 os.execute"ping 1.1.1.1 /n 1 /w <time in milliseconds> >nul" ,如os.execute"ping 1. 阅读全文

posted @ 2020-12-26 16:43 萝卜L 阅读(926) 评论(0) 推荐(0)

Lua io.open read write seek flush setvbuf append

摘要: 读写操作会设置同一个指针, 指针移动的距离为读写内容的长度。 p=f:seek() f:read(num)--假设文件内容够长 assert(f:seek()==p+num) f:write(str) assert(f:seek()==p+num+string.len(str)) f:seek()  阅读全文

posted @ 2020-12-26 11:40 萝卜L 阅读(470) 评论(0) 推荐(0)

2020年12月24日 #

stream file 文件 数据流

摘要: c - Do stdio file descriptors (stdin, stdout, stderr) get opened, simply from #include'ing <stdio.h>? - Stack Overflow standard streams of a program a 阅读全文

posted @ 2020-12-24 01:43 萝卜L 阅读(268) 评论(0) 推荐(0)

2020年12月23日 #

AHK通讯 CMD Lua IPC

摘要: 命令行/命令提示符/command-line/CMD/Console中: ErrorLevel是变量名,存储被调用命令的返回值。 可以%变量名%(%ErrorLevel%)获取变量值。 Autohotkey/AHK中,使用变量名ExitCode向调用者传递数值。 ExitCode:An intege 阅读全文

posted @ 2020-12-23 18:42 萝卜L 阅读(828) 评论(0) 推荐(0)

2020年12月18日 #

零散 Lua/Excel/'\0'/iup

摘要: Lua的print'\0'不会在Output输出。 Unicode中会出现'\0a'、'\0001'。(即'a'、'1') Excel批量激活/重计算/更新单元格公式:复制空单元格,选中待更新单元格集合,右键菜单"选择性粘贴",点击菜单项打开"选择性粘贴"窗口(而非展开子菜单),选择"\运算:和"。 阅读全文

posted @ 2020-12-18 11:14 萝卜L 阅读(195) 评论(0) 推荐(0)

2020年12月15日 #

Windows Program File(x86) 路径 环境变量

摘要: 依据系统(32/64-bit machine)和活动程序的模式(32/64-bit mode)。 On a 64-bit machine running in 64-bit mode: echo %programfiles% ==> C:\Program Files echo %programfil 阅读全文

posted @ 2020-12-15 14:41 萝卜L 阅读(2767) 评论(0) 推荐(0)