Developers question
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.
Discuss Autohotkey related topics here. Not a place to share code.
-
- Posts: 113
- Joined: 03 Nov 2013, 05:46
Developers question
Sorry this is not question directly to v2 but I cannot find where to put question like this. I have downloaded sources of AHK from here:
https://github.com/Lexikos/AutoHotkey_L
but I have problem to start (debug) because when I press F5 so I got dialog box Script file not found ... path.. test.ahk
In folder V:\tmp\AutoHotkey_L-master\bin\Win32w_debug I have found AutoHotkey.exe but after I run it I got the same message.
Now, the goal why I downloded the sources. I would like to check you source code to see how you managed to do automatic change of width of combo box when you have small select box , and the items in list are wider then the initial width of combo. So I am looking for your solution. I did not found any sources for Visual Studio C++ 2010 or tutorials for this, so I went directly on AHK sources. I love your way how you auto resize the combo box when needed. Can you tell me the files, classes and function to look for in your source code to find the solution?
Thanks your sources are for free, that's great
https://github.com/Lexikos/AutoHotkey_L
but I have problem to start (debug) because when I press F5 so I got dialog box Script file not found ... path.. test.ahk
In folder V:\tmp\AutoHotkey_L-master\bin\Win32w_debug I have found AutoHotkey.exe but after I run it I got the same message.
Now, the goal why I downloded the sources. I would like to check you source code to see how you managed to do automatic change of width of combo box when you have small select box , and the items in list are wider then the initial width of combo. So I am looking for your solution. I did not found any sources for Visual Studio C++ 2010 or tutorials for this, so I went directly on AHK sources. I love your way how you auto resize the combo box when needed. Can you tell me the files, classes and function to look for in your source code to find the solution?
Thanks your sources are for free, that's great
Re: Developers question
What were you expecting to happen? The debug executable runs a test script. If the test script doesn't exist, you just need to create it.
Re: Developers question
you could try grep ?
![Image](https://joedf.github.io/assets/img/user/ahkneedhelp.gif)
![Image](https://joedf.github.io/assets/img/user/ahkfoundation.gif)
![Image](https://joedf.github.io/assets/img/user/mitlicense.gif)
![Image](https://joedf.github.io/assets/img/user/+greenpeace.gif)
![Image](https://joedf.github.io/assets/img/user/githubahkscript.gif)
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Developers question
I don't see a use for grep in this situation.joedf wrote:you could try grep ?
Grep matches inputs with a pattern, which is not applicable in this case.
Grep is not (usually) installed on Windows systems.
In addition, if it can't find the test script... grep certainly won't (unless you use -r and pipe in a dir, assuming the test script is in a sub-folder.)
Re: Developers question
GuiType::AddControl() ??? :O
https://github.com/Lexikos/AutoHotkey_L ... .cpp#L1979
https://github.com/Lexikos/AutoHotkey_L ... .cpp#L1979
![Image](https://joedf.github.io/assets/img/user/ahkneedhelp.gif)
![Image](https://joedf.github.io/assets/img/user/ahkfoundation.gif)
![Image](https://joedf.github.io/assets/img/user/mitlicense.gif)
![Image](https://joedf.github.io/assets/img/user/+greenpeace.gif)
![Image](https://joedf.github.io/assets/img/user/githubahkscript.gif)
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
-
- Posts: 113
- Joined: 03 Nov 2013, 05:46
Re: Developers question
Well that's quite handy! Thanks for pointing the solution out. I'm going to utilize this in a program I wrote for personal use, that I may in time make available to others.brandonhotkey wrote:Thanks. So it is here:
https://github.com/Lexikos/AutoHotkey_L ... .cpp#L2920
#2930
-
- Posts: 113
- Joined: 03 Nov 2013, 05:46
Re: Developers question
MOdoJ:
I will prefer different way to do it, without creating windows. I want to draw directly to client area of window. But I did not find a time and favour to do it yet. I will need to do a bit extended solution because I want to mark more areas in map/image, not just one area.
I will prefer different way to do it, without creating windows. I want to draw directly to client area of window. But I did not find a time and favour to do it yet. I will need to do a bit extended solution because I want to mark more areas in map/image, not just one area.