Search found 89 matches
- 27 Apr 2023, 02:06
- Forum: Scripts and Functions (v2)
- Topic: Scintilla Complete (almost) - 2021/08/30 - beta.1
- Replies: 29
- Views: 7235
Re: Scintilla Complete (almost) - 2021/08/30 - beta.1
Hello, TheArkive: There is already AHK's ready-made lexer in SciTE4AutoHotkey v3.1.0, why do you have to rewrite it yourself? I see that the format of your lexer is very different from that of other language lexers in Scintilla official src code. If I want to support other languages such as: Lua, Py...
- 13 Mar 2023, 04:33
- Forum: Ask for Help (v2)
- Topic: Can I set a default value for an Object's Property, just like a Map ? [v2] Topic is solved
- Replies: 4
- Views: 538
Re: Can I set a default value for an Object's Property, just like a Map ? [v2] Topic is solved
@swagfag Thank you so much !
- 13 Mar 2023, 03:51
- Forum: Ask for Help (v2)
- Topic: Can I set a default value for an Object's Property, just like a Map ? [v2] Topic is solved
- Replies: 4
- Views: 538
Can I set a default value for an Object's Property, just like a Map ? [v2] Topic is solved
I have a Gui that creates a lot of different controls based on different conditions. When the Gui is submitted, I want to check the value of each control. NamedCtrlContents := MyGui. Submit(Hide) Due to some circumstances, some controls will not be created, so this will report an error: NamedCtrlCon...
- 08 Feb 2023, 02:30
- Forum: Ask for Help (v2)
- Topic: Yaml parse error ? [v2]
- Replies: 0
- Views: 272
Yaml parse error ? [v2]
Run the following code(Parse text ) and report an error. Remove a "-" (Use text2 ) can execute successfully. What is the reason ? #Requires AutoHotkey v2.0 #SingleInstance Force ;#Include Yaml.ahk text:=" ( chlds: - a1title: 0301 - a1title: 0301 - a1title: 0301 )" text2:=" ( chlds: - a1title: 0301 -...
- 07 Feb 2023, 23:15
- Forum: Scripts and Functions (v2)
- Topic: [v2] Yaml and JSON parser
- Replies: 32
- Views: 14568
Re: [v2] Yaml and JSON parser
@HotKeyIt Run the following code and report an error. Remove a "-" (Use text2 ) can execute successfully. What is the reason for this? #Requires AutoHotkey v2.0 #SingleInstance Force #Include Yaml.ahk text:=" ( chlds: - a1title: 0301 - a1title: 0301 - a1title: 0301 )" text2:=" ( chlds: - a1title: 03...
- 05 Feb 2023, 21:55
- Forum: Ask for Help (v2)
- Topic: how to get a gui control's font in v2 (Control_GetFont)?
- Replies: 2
- Views: 512
how to get a gui control's font in v2 (Control_GetFont)?
I found this function " Control_GetFont " in v1 to get a gui control's font name and size. I tried to convert it to v2 but it didn't work! How to contvert it to v2? https://www.autohotkey.com/boards/viewtopic.php?t=33049&start=20 Control_GetFont(hwnd, byref FontName, byref FontSize) { SendMessage 0x...
- 29 Dec 2022, 21:01
- Forum: Ask for Help (v1)
- Topic: How can I always monitor the key "A" ?
- Replies: 4
- Views: 493
Re: How can I always monitor the key "A" ?
Hi, jly. I don't understand what you want to achieve. I imagine it happens to other readers. If you want to disable the function of Script_01.ahk, why not do it in the script itself?, instead of calling a second script. Maybe it's just that I didn't understand you. :sick: I agree-- easier to use a ...
- 29 Dec 2022, 09:10
- Forum: Ask for Help (v1)
- Topic: How can I always monitor the key "A" ?
- Replies: 4
- Views: 493
How can I always monitor the key "A" ?
I use " SetWindowsHookEx -WH_KEYBOARD_LL- LowLevelKeyboardProc " to monitor key A . Test steps: 1 Run " Script_01.ahk ", every time you press "A", you can monitor that the key "A" is pressed 2 Then, run " Script_02.ahk " and press "A", then "A" can no longer be monitored. 3 Run "Script_01.ahk" again...
- 06 Dec 2022, 01:58
- Forum: Ask for Help (v1)
- Topic: how to custom draw a scrollbar??
- Replies: 1
- Views: 309
how to custom draw a scrollbar??
I found this article: Replace a Window's Internal Scrollbar with a customdraw scrollbar Control https://www.codeproject.com/Articles/14724/Replace-a-Window-s-Internal-Scrollbar-with-a-custo?fid=321853&df=90&mpp=25&sort=Position&spc=Relaxed&prof=True&view=Normal&fr=1 Can this method of customizing a ...
- 02 Dec 2022, 21:38
- Forum: Ask for Help (v1)
- Topic: How to check whether a GUI used DPIScale ?
- Replies: 4
- Views: 546
Re: How to check whether a GUI used DPIScale ?
processID := ??? if !hProcess := DllCall("OpenProcess", "UInt", PROCESS_QUERY_INFORMATION := 0x0400, "Int", false, "UInt", processID, "Ptr") throw if !DllCall("shcore\GetProcessDpiAwareness", "Ptr", hProcess, "Int*", value) throw DllCall("CloseHandle", "Ptr", hProcess) switch value { case 0: MsgBox...
- 02 Dec 2022, 09:33
- Forum: Ask for Help (v1)
- Topic: How to check whether a GUI used DPIScale ?
- Replies: 4
- Views: 546
How to check whether a GUI used DPIScale ?
How to check whether a GUI used DPIScale ?
- 01 Nov 2022, 20:40
- Forum: Scripts and Functions (v1)
- Topic: [Class] ImageButton - 1.5.00.00 - 20201230
- Replies: 190
- Views: 102300
Re: [Class] ImageButton - 1.5.00.00 - 20201230
All timings are controlled by the OS. just me Thanks for your reply, I found the solution: https://www.autohotkey.com/boards/viewtopic.php?t=27743 #SingleInstance, Force #NoEnv DisableFadeEffect() gui, font, s10 gui, add, Button, w200, 确定 gui, show, w300 center, test01 DisableFadeEffect() { ; SPI_G...
- 13 Oct 2022, 03:51
- Forum: Bug Reports
- Topic: Gui control hwnds larger than 0x7FFFFFFFFFFFFFFF
- Replies: 13
- Views: 5067
Re: Gui control hwnds larger than 0x7FFFFFFFFFFFFFFF
I created a gui in my script with a StatusBar,
and I want to modify the text of the StatusBar through the SendMessage command.
If the hwnd of the StatusBar like this "0xffffffff9f752b82", it will fail.
How should I convert the hwnd to make SendMessage take effect?
and I want to modify the text of the StatusBar through the SendMessage command.
If the hwnd of the StatusBar like this "0xffffffff9f752b82", it will fail.
How should I convert the hwnd to make SendMessage take effect?
- 02 Oct 2022, 04:04
- Forum: Scripts and Functions (v1)
- Topic: [Class] ImageButton - 1.5.00.00 - 20201230
- Replies: 190
- Views: 102300
Re: [Class] ImageButton - 1.5.00.00 - 20201230
hello, just me:
Is it possible to make the button highlighted immediately when the mouse is over it. It is now about 100ms before the button is highlighted.
Is it possible to make the button highlighted immediately when the mouse is over it. It is now about 100ms before the button is highlighted.
- 07 Sep 2022, 07:18
- Forum: SciTE4AutoHotkey
- Topic: SciTE4AutoHotkey v3.1.0
- Replies: 78
- Views: 29697
Re: SciTE4AutoHotkey v3.1.0
@fincs hello ,fincs: Can I have a look at the c++ code of your new lexer and the corresponding parameter configuration ? I'm not familiar with c++, I wrote my own lexer with reference to LexAHKL of RaptorX and Notepad3 for Scintilla 5.3.0. Notepad3 https://github.com/rizonesoft/Notepad3/tree/master...
- 07 Sep 2022, 07:09
- Forum: SciTE4AutoHotkey
- Topic: SciTE4AutoHotkey v3.1.0
- Replies: 78
- Views: 29697
Re: SciTE4AutoHotkey v3.1.0
fincs hello ,fincs: Can I have a look at the c++ code of your new lexer and the corresponding parameter configuration ? I'm not familiar with c++, I wrote my own lexer with reference to LexAHKL of RaptorX and Notepad3 for Scintilla 5.3.0. Notepad3 https://github.com/rizonesoft/Notepad3/tree/master/...
- 19 Aug 2022, 02:32
- Forum: Ask for Help (v1)
- Topic: Gui flickers When opening File Explorer??
- Replies: 1
- Views: 355
Gui flickers When opening File Explorer??
When I open the File Explorer, my AHK Gui will flicker. The Same for some other Apps. (tested on : Win 10 desktop)
I tested on another laptop, Opening File Explorer, no windows flickered.
Has anyone encountered this situation?
I tested on another laptop, Opening File Explorer, no windows flickered.
Has anyone encountered this situation?
- 11 Mar 2022, 04:23
- Forum: Scripts and Functions (v1)
- Topic: ChooseColors() : Color selection UI
- Replies: 34
- Views: 7711
Re: ChooseColors() : Color selection UI
Hi SKAN: When I use screen capture mode, click either static icons and The screen can be captured, but the mouse disappears Is it designed this way, or is there something wrong with my computer? Versions: ChooseColors.ahk: v0.97 AhkVersion 1.1.33.08 OS: Microsoft Windows 10 Professional Edition 10.0...
- 22 Feb 2022, 20:40
- Forum: Ask for Help (v1)
- Topic: Why does WM_LButtonDown fire twice?
- Replies: 2
- Views: 422
Why does WM_LButtonDown fire twice?
Why does WM_LButtonDown fire twice when the child window is clicked? Is there any way to make WM_LButtonDown fire only once? Or how to judge whether the main window or the child window is triggered? Execute the following code, you can observe that when the child window is clicked once, WM_LButtonDow...
- 22 Feb 2022, 20:21
- Forum: Scripts and Functions (v1)
- Topic: SavePicture() : Save hBitmap as BMP, JPG, GIF, PNG, TIF
- Replies: 15
- Views: 7412
Re: SavePicture() : Save hBitmap as BMP, JPG, GIF, PNG, TIF
If I save it as a .png file with SavePicture functtion, the background of the image file is black. Yes. This function is compact and too limited, and I have mentioned it in OP. If you need to save PNG with transparency, you may have to opt for one of the GDIP variants available in our forum. Thanks...