Search found 16 matches

by ZeronoFreya
16 Nov 2023, 11:25
Forum: Ask for Help (v2)
Topic: How to define functions in map ( like js)? Topic is solved
Replies: 6
Views: 422

How to define functions in map ( like js)? Topic is solved

in Js:

Code: Select all

var fn = {
  fna(){ ... }
}
fn.fna()
Can it be done?

Thanks!

Thanks for your answers, I decided to use class.
by ZeronoFreya
11 Dec 2022, 08:53
Forum: Ask for Help (v2)
Topic: How to define a map like a json? Topic is solved
Replies: 2
Views: 404

Re: How to define a map like a json? Topic is solved

@Descolada
Thank you very much, but I don't think it's as intuitive as json's, and then it's less friendly to format...
by ZeronoFreya
11 Dec 2022, 03:22
Forum: Ask for Help (v2)
Topic: How to define a map like a json? Topic is solved
Replies: 2
Views: 404

How to define a map like a json? Topic is solved

menumap := { help:{ "this is demo \t other info": "do ..." ... }, ... } but error: Invalid property name in object literal. You could similarly create the above object with thing := {foo: "bar"}. When using the {property:value} notation, quote marks must not be used for properties. How should I ach...
by ZeronoFreya
26 Jul 2021, 11:39
Forum: Ask for Help (v2)
Topic: What should I do if the priority of shortcut keys is not enough?
Replies: 6
Views: 1071

Re: What should I do if the priority of shortcut keys is not enough?

swagfag wrote:
26 Jul 2021, 08:46
no
Image
Thank you very much, I was stupid, I pressed the right key :crazy:
by ZeronoFreya
26 Jul 2021, 07:47
Forum: Ask for Help (v2)
Topic: What should I do if the priority of shortcut keys is not enough?
Replies: 6
Views: 1071

Re: What should I do if the priority of shortcut keys is not enough?

I tried it and it didn't work reeeeeeeeeeaallly.....so why then is it when i tried it it did work? :roll: #Requires AutoHotkey v2.0-beta.1 Left::{ A_SendMode := 'Event' A_KeyDuration := 10 Send('^{Left}') } I tried your code, but it still doesn't work? Are there any operating conditions? win10 64 h...
by ZeronoFreya
26 Jul 2021, 05:40
Forum: Ask for Help (v2)
Topic: What should I do if the priority of shortcut keys is not enough?
Replies: 6
Views: 1071

Re: What should I do if the priority of shortcut keys is not enough?

swagfag wrote:
26 Jul 2021, 02:08
play around with A_SendMode, A_KeyDelay and A_KeyDuration
I tried it and it didn't work
by ZeronoFreya
25 Jul 2021, 21:56
Forum: Ask for Help (v2)
Topic: What should I do if the priority of shortcut keys is not enough?
Replies: 6
Views: 1071

What should I do if the priority of shortcut keys is not enough?

Program is pureref www.pureref.com This is a Qt5 program Cannot send shortcut keys with send method Left::{ ; ControlSend("{Ctrl Down}{Left}{Ctrl Up}",,"ahk_exe PureRef.exe") ; Send("{Ctrl Down}{Left}{Ctrl Up}") Send("^{Left}") } The above code is invalid The program will perform the default left op...
by ZeronoFreya
19 Jun 2021, 08:01
Forum: Ask for Help (v1)
Topic: How to get the menu message code in qt5 program?
Replies: 3
Views: 371

Re: How to get the menu message code in qt5 program?

https lexikos.github.io /v2/docs/misc/SendMessage.htm Broken Link for safety
"How do I select a menu item when MenuSelect doesn't work with it?!"

Code: Select all

PostMessage 0x111, 40239, 0, , "New Message"
I want to get wm_command message
image.png
image.png (49.98 KiB) Viewed 322 times
How to operate menu items ?
by ZeronoFreya
12 Jun 2021, 18:36
Forum: Ask for Help (v1)
Topic: How to get the menu message code in qt5 program?
Replies: 3
Views: 371

How to get the menu message code in qt5 program?

Program is pureref
www.pureref.com

I tried to use Winspector Spy, but nothing

send method is also invalid
by ZeronoFreya
10 Feb 2018, 21:03
Forum: 请求帮助
Topic: 如何自定义模态输入窗口?
Replies: 0
Views: 2118

如何自定义模态输入窗口?

比如

Code: Select all

name = inputName()
inputName(){
	Gui, 2:+Owner1
	...
	return name
}
怎样做到动态创建一个子窗口, 提交后返回输入的内容?

不用InputBox是因为我要在输入时做一些特殊操作, 比如正则验证之类的

感谢
by ZeronoFreya
09 Feb 2018, 05:11
Forum: 请求帮助
Topic: 请问怎样获得某程序托盘右键菜单的状态?
Replies: 3
Views: 5043

请问怎样获得某程序托盘右键菜单的状态?

比如,右键是这种感觉的
Image
我用sendMessage可以设置他的模式,但怎样判断当前的模式呢?
by ZeronoFreya
10 Oct 2015, 22:40
Forum: 请求帮助
Topic: 制作图片墙,怎样响应鼠标滚轮
Replies: 0
Views: 1872

制作图片墙,怎样响应鼠标滚轮

目前想到的是
1.用滚轮做热键,通过V标签移动多个Pic控件
2.将pic放置到子窗口中,移动子窗口

还有别的实现方式吗?
哪一种效率最好?
by ZeronoFreya
10 Apr 2015, 10:39
Forum: 请求帮助
Topic: 能直接得到自身脚本的HWND吗?
Replies: 2
Views: 1972

能直接得到自身脚本的HWND吗?

我知道可以用winget来获取ahk脚本的WinTitle,但此方法需要遍历所有ahk脚本并筛选,
有没有更便捷的方法?
by ZeronoFreya
03 Apr 2015, 23:07
Forum: 相关工具
Topic: 快速定位函数|热键|标签的工具脚本
Replies: 0
Views: 15061

快速定位函数|热键|标签的工具脚本

转自 http://ahk8.com/thread-5665-post-33301.html#pid33301 ...嘛,虽然是我自己写的,姑且... 更新:2015-4-4 4.添加了中键弹出窗口 3.修改了标签名后不能有空格的bug,优化了函数名的判断 2.更改了正则,可以支持中文 1.使用^g的方式跳转,避免了调试中不能跳转的问题(但会闪现一个跳转窗口) (如果无效,很可能是 跳至 ahk_class #32770 这个多重条件判断不匹配你的跳转窗口名,请自行修改"跳至") 适用于Scite4AutoHotkey(最新版) ~~~没在老版测试是主要原因~~~ ~~~也不保证原版可用~~~...
by ZeronoFreya
19 Mar 2015, 12:16
Forum: 请求帮助
Topic: gui窗口向上移出屏幕时,高度会减少
Replies: 0
Views: 1382

gui窗口向上移出屏幕时,高度会减少

比如下面的测试脚本,当我按住text控件移动窗口时,如果窗口菜单栏的部分移出屏幕时,会缩...高度 怎么解决呢? Gui,+AlwaysOnTop +Owner +ToolWindow Gui, Add, Text, x22 y230 w430 h30 +Border gGuiMove, Text ; Generated using SmartGUI Creator 4.0 Gui, Show, x214 y93 h379 w479, New GUI Window Return GuiClose: ExitApp GuiMove: PostMessage, 0xA1, 2,,, A retur...

Go to advanced search