Thank u very much, teadrinker,
do u think it is different in the Unicode version since u wrote "(in ANSI)"?
Search found 214 matches
- 20 Jun 2019, 16:00
- Forum: Ask for Help (v1)
- Topic: Basic question about the string terminator in ahk Topic is solved
- Replies: 22
- Views: 5191
- 20 Jun 2019, 15:52
- Forum: Ask for Help (v1)
- Topic: Basic question about the string terminator in ahk Topic is solved
- Replies: 22
- Views: 5191
Re: Basic question about the string terminator in ahk Topic is solved
Thx and in the ANSI version, I assume it is a one byte null character?
Besides, if I wrote the string to memory somehow without a null-terminator character at all, and I don't specify a length in StrGet, what happens then?
Besides, if I wrote the string to memory somehow without a null-terminator character at all, and I don't specify a length in StrGet, what happens then?
- 20 Jun 2019, 14:51
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
Re: WinClip - AHKv2 Compatibility
[EDIT:] Thx for the update, jeeswg! [EDIT OFF] NOTE: I noticed that the original coder is using StrGet and StrPut with "UTF-16" in a few more locations as well, besides GetText() and iGetText(). If I am not too tired I will look at it and might repost the original code with all of my corrections (in...
- 20 Jun 2019, 13:28
- Forum: Ask for Help (v1)
- Topic: Basic question about the string terminator in ahk Topic is solved
- Replies: 22
- Views: 5191
Basic question about the string terminator in ahk Topic is solved
Hi all, I am wondering how StrGet(addressA) figures out the string length when I don't particularly specify it as parameter for the function. Does ahk use a string terminator? If so, is it the null-terminator mentioned in the help? (The help does not seem very clear to me, or I did not find the righ...
- 20 Jun 2019, 10:31
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
Re: WinClip - AHKv2 Compatibility
Let's say, if out_size was 1500, then the loop would be executed 1 time and the remaining 500 (Bytes, I assume?) are not read at all. Never mind, I found the answer to this question as well as your original question: The answer to your original question, Skrommel, which was: Is it just my computer,...
- 20 Jun 2019, 04:26
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
Re: WinClip - AHKv2 Compatibility
:?: Is it just my computer, or does text:=wc.iGetText(data) crash when copying a large chunk of text? The text:=WinGet.GetText(data) crashes in the same manner. The culprit is StrGet , I'm having to read smaller chunks to make ut work properly: ;;;; text:=wc.iGetText(data) replacement ;;;; clipSize...
- 20 Jun 2019, 04:06
- Forum: Ask for Help (v1)
- Topic: WinClip.Snap(clipData) lost, when saving clipData to an array
- Replies: 0
- Views: 728
WinClip.Snap(clipData) lost, when saving clipData to an array
Hi all, this question is connected to this WinClip thread/lib: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=29314 This is weired: If I store the clipboard data retrieved with WinClip.Snap(clipData) into an associative (or simple) array, then when I want to restore it, the clipboard is empty...
- 11 Jun 2019, 11:00
- Forum: Ask for Help (v1)
- Topic: ahk_exe and RegEx Topic is solved
- Replies: 3
- Views: 1111
Re: ahk_exe and RegEx Topic is solved
Hi all, I figured it out myself. If RegEx is used for title match mode, then the whole path is compared for the exe. The following code returns MsgBox true started from within SciTE editor (if SciTE.exe is located in that specific path): SetTitleMatchMode RegEx If WinActive("ahk_exe ^C:\\Program Fil...
- 11 Jun 2019, 10:01
- Forum: Ask for Help (v1)
- Topic: ahk_exe and RegEx Topic is solved
- Replies: 3
- Views: 1111
Re: ahk_exe and RegEx Topic is solved
Thx, but that does not work anywhere in ahk because it is not correct ahk syntax to begin with.Rohwedder wrote: ↑11 Jun 2019, 09:42Code: Select all
SetTitleMatchMode RegEx If WinActive("^ahk_exe SciTE\.exe$")
- 11 Jun 2019, 09:28
- Forum: Ask for Help (v1)
- Topic: ahk_exe and RegEx Topic is solved
- Replies: 3
- Views: 1111
ahk_exe and RegEx Topic is solved
Hi all, I would like to use RegEx title match mode and scan for an exact match of the exe name. Therefore I would like to use the ^ and $ anchors. However the ^ does not really work with ahk_exe. To go with an example, I am using it on the SciTe4AHK editor. The code SetTitleMatchMode RegEx If WinAct...
- 11 Jun 2019, 06:02
- Forum: Forum Issues
- Topic: Not getting email notifications
- Replies: 10
- Views: 5417
- 10 Jun 2019, 13:47
- Forum: Forum Issues
- Topic: Not getting email notifications
- Replies: 10
- Views: 5417
- 06 Jun 2019, 18:48
- Forum: Forum Issues
- Topic: Not getting email notifications
- Replies: 10
- Views: 5417
Re: Not getting email notifications
I don't get them either.
- 06 Jun 2019, 18:40
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
- 02 Jun 2019, 07:10
- Forum: Ask for Help (v1)
- Topic: identify if 3rd party window main menu is active? Topic is solved
- Replies: 3
- Views: 994
Re: identify if 3rd party window main menu is active? Topic is solved
The code here can detect if a menu bar is focused: detecting menus in mpc-hc - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=55247&p=237141#p237141 This was exactly what I was looking for! The other part above should also prove helpful. THANK YOU SOOO MUCH, JEESWG, YOU MAKE...
- 01 Jun 2019, 11:22
- Forum: Ask for Help (v1)
- Topic: identify if 3rd party window main menu is active? Topic is solved
- Replies: 3
- Views: 994
identify if 3rd party window main menu is active? Topic is solved
Hi all,
does someone know if and how it is possible to identify if a 3rd party window main menu is currently active? In effect, whether Alt was pressed and the accelorator characters of the main menu are currently underlined?
Thx and regards
does someone know if and how it is possible to identify if a 3rd party window main menu is currently active? In effect, whether Alt was pressed and the accelorator characters of the main menu are currently underlined?
Thx and regards
- 31 May 2019, 17:35
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
Re: WinClip - AHKv2 Compatibility
Hi all, I found another problem, of which I am sure this time that it is a bug in the code that needs to be fixed. The big and bold part must be inserted, otherwise it leads to problems whenever the _fromclipboard method is applied to an empty clipboard, which is the case e.g. when calling WinClip.S...
- 30 May 2019, 17:29
- Forum: Scripts and Functions (v1)
- Topic: WinClip - AHKv2 Compatibility
- Replies: 35
- Views: 15713
Re: WinClip - AHKv2 Compatibility
Hi, I could be wrong, but shouldn't there be a comma (see below - marked big and bold) in the 3rd to the last line of the _setFiles function? (If I am right, it was already missing in the original.) _setFiles( ByRef clipData, clipSize, files, append := 0, isCut := 0 ) { [...code...] ObjSetCapacity( ...
- 14 May 2019, 17:14
- Forum: Old Topics
- Topic: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
- Replies: 423
- Views: 428056
Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Well, maybe in a separate dockable dialog. Somewhere, where the coder can have an overview. Actually I thought of variables which I might define at the beginning of the script to be valid for the whole thing. I am not sure what would be the best solution for that. Thanks for reading and replying, th...
- 12 May 2019, 13:07
- Forum: Ask for Help (v1)
- Topic: PixelSearch in opposite direction
- Replies: 5
- Views: 1856
Re: PixelSearch in opposite direction
Hi there, EDIT: Never mind, I don't need that solution anymore at the moment. EDIT END I had (almost) the same desire. Came up with the code below. (Note that the search here is one dimensional, however, it should be rather easy to extend it to 2 dimensions. Parameter #4 in _get_nextPixelWithColor d...