Search found 13 matches
- 10 Mar 2024, 09:49
- Forum: Ask for Help (v2)
- Topic: Does anyone have the v2 function to get the current URL?
- Replies: 3
- Views: 521
Re: Does anyone have the v2 function to get the current URL?
i am trying to find a function like that, too.
- 24 Jun 2023, 08:40
- Forum: Ask for Help (v2)
- Topic: Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
- Replies: 5
- Views: 777
Re: Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
Thank you for your help. :D #HotIf WinActive("ahk_class #32770") ^o:: { path := "D:\" if(ControlGetText("ToolbarWindow324", "A") = "Address: " . path) return ControlHide("Edit1", "A") sleep 10 ControlSetText(path, "Edit1", "A") sleep 50 ControlFocus("Edit1", "A") sleep 50 ControlSend("{enter}", "Edi...
- 24 Jun 2023, 08:39
- Forum: Ask for Help (v2)
- Topic: Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
- Replies: 5
- Views: 777
Re: Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
Thank you very much. :thumbup: If you mean a "Save As", "Open" etcetera window from an external application then I don't know of any COM way to do that. But you can interact with the window in other ways to set a folder path. ControlFocus("Edit1", "A") ControlSetText("C:\some folder", "Edit1", "A") ...
- 23 Jun 2023, 22:20
- Forum: Ask for Help (v2)
- Topic: Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
- Replies: 5
- Views: 777
Can a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject or using dll? Topic is solved
Hi, I know a window of "ahk_class CabinetWClass" can be navigated to a spesific folder path by creating a ComObject. But I couldn't make a window of ''ahk_class #32770" to be navigated to a spesific folder path by creating a ComObject. Does anyone know how to do it? :) path_folder_target := 'C:\' ex...
- 15 Jun 2023, 13:08
- Forum: 请求帮助
- Topic: 怎样让热字串不影响中文 | 怎样改进这个现有脚本?
- Replies: 3
- Views: 880
Re: 怎样让热字串不影响中文 | 怎样改进这个现有脚本?
可以试试使用以下函数。
Code: Select all
Send(get_Unicode_Str("肺、肺、肺、"))
;使用`Unicode按键`字符串可以避免触发中文输入法;同时不必使用剪贴板。
get_Unicode_Str(str)
{
out := ""
charList := StrSplit(str)
for key, val in charList
out .= format("{U+{1:x}}", ord(val))
Return out
}
- 02 Apr 2023, 02:15
- Forum: 请求帮助
- Topic: VSC + AutoHotkey Plus Plus 的使用疑问
- Replies: 1
- Views: 687
Re: VSC + AutoHotkey Plus Plus 的使用疑问
我在使用msgbox也遇到类似的问题。最终我是用VS Code自带的`代码片段`功能专门为msgbox写了一个代码片段。
Re: 一些脚本
楼主可以考虑新建一个Github或Gitee的公开仓库,把代码放到仓库中
- 09 Nov 2022, 09:21
- Forum: 其他
- Topic: 国内的中文论坛「autoahk.com」已经打不开了
- Replies: 3
- Views: 2497
Re: 国内的中文论坛「autoahk.com」已经打不开了
@zhang 截止到今天都没有恢复,已经快半个月了……
- 30 Oct 2022, 08:13
- Forum: 其他
- Topic: 国内的中文论坛「autoahk.com」已经打不开了
- Replies: 3
- Views: 2497
国内的中文论坛「autoahk.com」已经打不开了
难道是「autoahk.com」的管理者主动关站了?完全没有预告……
- 01 May 2022, 11:14
- Forum: 请求帮助
- Topic: 使用空格键作为修饰键后,空格键无法触发热字符串了
- Replies: 3
- Views: 1697
Re: 使用空格键作为修饰键后,空格键无法触发热字符串了
@garry
Thank you very much for your help.
Thank you very much for your help.
- 24 Apr 2022, 09:22
- Forum: 请求帮助
- Topic: 怎样编写AHK才能实现点击桌面快捷键打开程序?
- Replies: 2
- Views: 1626
Re: 怎样编写AHK才能实现点击桌面快捷键打开程序?
也许可以考虑使用 run 命令?比如以下代码:
Code: Select all
Ctrl & 1:: Run, notepad.exe ;打开记事本
- 23 Apr 2022, 09:21
- Forum: 请求帮助
- Topic: 使用空格键作为修饰键后,空格键无法触发热字符串了
- Replies: 3
- Views: 1697
使用空格键作为修饰键后,空格键无法触发热字符串了
为了方便使用,我把空格键改造成了修饰键。可是这样一来空格键就无法触发热字符串了。虽然可以将热字符串设置为立即触发,但是我还是比较想使用空格键触发。
不知道坛友们有没有比较好的办法,使得空格键既可以成为修饰键,又可以触发热字符串?非常感谢!
代码如下:
不知道坛友们有没有比较好的办法,使得空格键既可以成为修饰键,又可以触发热字符串?非常感谢!
代码如下:
Code: Select all
space::space ;保证空格键原始功能
space & r::Reload ;重新加载
space & 1::MsgBox, Hello, World
::]1::abcdefg ;热字符串
- 13 Apr 2022, 11:35
- Forum: 教程资料
- Topic: 热键之组合键与序列键
- Replies: 2
- Views: 23801
Re: 热键之组合键与序列键
snail09 我看你的例子,应该是想通过组合键「Space+M」来实现打开或最小化一个记事本软件。以下是一段代码,以供参考。 Space::Space ;维持空格键的功能。 #IfWinActive ahk_class Notepad ;如果记事本已打开,则最小化它。 Space & m:: WinMinimize ahk_class Notepad return #IfWinNotActive ahk_class Notepad ;如果记事本处于非活动状态,则打开它或最大化它。 Space & m:: if not WinExist("ahk_class Notepad") { run,...