Search found 18 matches

by jly
06 Jan 2021, 11:42
Forum: Ask For Help
Topic: GUI: Text Control align center when text short and align left when text long ?
Replies: 5
Views: 76

Re: GUI: Text Control align center when text short and align left when text long ?

You may be able to estimate the text width through some computations based on font size. I believe that there are some examples on the forum here. Thank you very much, mikeyww and just me ! I Searched and found a way as follow . Is there a simpler and better way ? ;gui,font,s12,Courier New ;gui,add...
by jly
06 Jan 2021, 09:35
Forum: Ask For Help
Topic: GUI: Text Control align center when text short and align left when text long ?
Replies: 5
Views: 76

GUI: Text Control align center when text short and align left when text long ?

I have some Text controls dynamically displaying texts of different lengths (including non-English characters). Is there any way to make short text displayed in the center and long text(length bigger than Text Control) left aligned ? The second text is displayed in the center, but the left half is n...
by jly
30 Dec 2020, 00:46
Forum: Ask For Help
Topic: How to get all installed programs, including windows store applications?
Replies: 6
Views: 173

Re: How to get all installed programs, including windows store applications?

I found this, it can get all apps from shell:Appsfolder https://www.autohotkey.com/boards/viewtopic.php?t=66352 oFolder := ComObjCreate("Shell.Application").NameSpace("shell:Appsfolder") for item in oFolder.Items { a1 .= item.name " " item.path "`n" aindex := A_index } ToolTip % a1
by jly
28 Dec 2020, 20:39
Forum: Ask For Help
Topic: How to get all installed programs, including windows store applications?
Replies: 6
Views: 173

Re: How to get all installed programs, including windows store applications?

Still can't get windows store applications, Such as Cortana,Mail, Has anyone else encountered a similar problem?
by jly
28 Dec 2020, 20:33
Forum: Ask For Help
Topic: How to get all installed programs, including windows store applications?
Replies: 6
Views: 173

Re: How to get all installed programs, including windows store applications?

I'm not sure whether this works for Windows Store. Traditionally, most programs install shortcuts, so this is a convenient method for identifying such programs. programs := "\Microsoft\Windows\Start Menu\Programs", ttext := "", prog := [] For key, thisDir in [A_AppDataCommon programs, A_AppData pro...
by jly
28 Dec 2020, 12:46
Forum: Ask For Help
Topic: How to get all installed programs, including windows store applications?
Replies: 6
Views: 173

Re: How to get all installed programs, including windows store applications?

The Windows Start button already does what you are describing. You can make a simple launcher by putting shortcuts into a "launch" directory. You can then filter the shortcut files according to whatever string you type. I have a launcher like this. It actually puts all of the shortcut listings into...
by jly
28 Dec 2020, 12:21
Forum: Ask For Help
Topic: How to get all installed programs, including windows store applications?
Replies: 6
Views: 173

How to get all installed programs, including windows store applications?

I want to make a GUI with an input box that allows the user to input characters and display the corresponding program according to the string. User can click to execute the selected program First, I need to get all the installed programs on the computer, including the programs in the window store . ...
by jly
11 Nov 2020, 13:37
Forum: Scripts and Functions
Topic: Random sentence generator
Replies: 2
Views: 408

Re: Random sentence generator

good
by jly
10 Nov 2020, 01:25
Forum: Scripts and Functions
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids
Replies: 63
Views: 13742

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

GeekDude Hi GeekDude, I like Neutron very much. I am trying to use Neutron to create a simple project. I have encountered some problems, I would like to ask you for advice. 1 I created two files: test.ahk , test.html There is only one input box in test.html, and there is a piece of js code to captu...
by jly
29 Oct 2020, 10:40
Forum: Ask For Help
Topic: How to get the files list according to the files order in the explorer window?
Replies: 0
Views: 94

How to get the files list according to the files order in the explorer window?

How to get the files list according to the files order in the explorer window ? There are a lot of files to be processed, and some explorer windows have tens of thousands or hundreds of thousands of files . One way is: Use the Loop Files method to get, the order of the obtained files is different fr...
by jly
21 Oct 2020, 10:28
Forum: Ask For Help
Topic: [PotPlayer] how to open new file in specified window ?
Replies: 4
Views: 70

Re: [PotPlayer] how to open new file in specified window ?

OK. The brute-force method would just activate the window and then something like ^o or whatever opens files. I do not know a corresponding HWND-based command for this program, but others here might. If you are looking at various players, [url=https mpv.io /]MPV[/url] Broken Link for safety could b...
by jly
21 Oct 2020, 09:56
Forum: Ask For Help
Topic: [PotPlayer] how to open new file in specified window ?
Replies: 4
Views: 70

Re: [PotPlayer] how to open new file in specified window ?

My hunch is that each window has a separate process ID. If you run the program in AHK, you can use the Run command to track the unique IDs. You can then activate the specific process and issue commands to open the file. I can get the information of each window process ID, window handle, etc., but I...
by jly
21 Oct 2020, 08:47
Forum: Ask For Help
Topic: [PotPlayer] how to open new file in specified window ?
Replies: 4
Views: 70

[PotPlayer] how to open new file in specified window ?

There are several opened PotPlayer windows on the desktop. How to use shortcut keys to open the specified video file in the specified window? I searched a lot of webpages but didn't get the answer . This page discussed PotPlayer x64 Function Library, but there is no related function. There is a func...
by jly
21 Oct 2020, 08:34
Forum: Scripts and Functions
Topic: PotPlayer x64 Function Library
Replies: 20
Views: 5521

Re: PotPlayer x64 Function Library

There are several opened potplayer windows on the desktop.
How to use shortcut keys to open the specified video file in the specified window?
by jly
06 Oct 2020, 02:50
Forum: Ask For Help
Topic: Call WinHttpRequest ,but result is garbled, how can I solve it?
Replies: 2
Views: 131

Re: Call WinHttpRequest ,but result is garbled, how can I solve it?

@fwejifjjwk2
The problem is solved, thank you very much!!
by jly
30 Sep 2020, 07:04
Forum: 请求帮助
Topic: 求助!调用WinHttpRequest 发送get请求 到谷歌翻译,如果发送的是中文,则翻译结果是乱码,请问怎么解决?
Replies: 2
Views: 1241

求助!调用WinHttpRequest 发送get请求 到谷歌翻译,如果发送的是中文,则翻译结果是乱码,请问怎么解决?

求助!调用WinHttpRequest 发送get请求 到谷歌翻译,如果发送的是中文,则翻译结果是乱码,请问怎么解决? 脚本说明 功能: 翻译选中的文字(调用谷歌翻译API)。 步骤: 选中文字 后发送ctrl+c键,将文本复制到粘贴板,然后调用谷歌翻译api, 返回结果。 问题: 如果选中的是英文,则结果正常。如果选中的是中文,则返回值是乱码。 探索: 如下两种方法都试过,还是不行: NumGet(ComObjValue(arr) + 8 + A_PtrSize), oADO := ComObjCreate("adodb.stream") 探索: 这里各种编码都试过,还是不行: SetRe...
by jly
30 Sep 2020, 06:44
Forum: Ask For Help
Topic: Call WinHttpRequest ,but result is garbled, how can I solve it?
Replies: 2
Views: 131

Call WinHttpRequest ,but result is garbled, how can I solve it?

Call WinHttpRequest to send a get request to Google Translate. If it is sent in Chinese, the translation result is garbled, how can I solve it? Description: Function : Translate the selected text (call Google Translate API). Steps : After selecting the text, send the ctrl + c key, copy the text to t...

Go to advanced search