Search found 214 matches

by autocart
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

Re: Basic question about the string terminator in ahk Topic is solved

Thank u very much, teadrinker,

do u think it is different in the Unicode version since u wrote "(in ANSI)"?
by autocart
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?
by autocart
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...
by autocart
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...
by autocart
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,...
by autocart
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...
by autocart
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...
by autocart
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...
by autocart
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

Rohwedder wrote:
11 Jun 2019, 09:42

Code: Select all

SetTitleMatchMode RegEx

If WinActive("^ahk_exe SciTE\.exe$")
Thx, but that does not work anywhere in ahk because it is not correct ahk syntax to begin with.
by autocart
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...
by autocart
11 Jun 2019, 06:02
Forum: Forum Issues
Topic: Not getting email notifications
Replies: 10
Views: 5417

Re: Not getting email notifications

gregster wrote:
10 Jun 2019, 13:57
Edit: There is actually Joe's email address in his signature (it's a graphic).

Your AHK PMs get moved from 'Outbox' to 'Sent Messages' as soon as the recipient reads (opens) your message.
Ah, now I see it, thx.
Also, thx for the Outbox-explanation
by autocart
10 Jun 2019, 13:47
Forum: Forum Issues
Topic: Not getting email notifications
Replies: 10
Views: 5417

Re: Not getting email notifications

joedf wrote:
07 Jun 2019, 09:00
Can you send me an email?
Hi, I would but I don't know your email address.
Besides that, I just found out that my composed PMs are stuck in my Outbox and I don't know how to send them off.
Regards, S.
by autocart
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.
by autocart
06 Jun 2019, 18:40
Forum: Scripts and Functions (v1)
Topic: WinClip - AHKv2 Compatibility
Replies: 35
Views: 15713

Re: WinClip - AHKv2 Compatibility

skrommel wrote:
05 Jun 2019, 08:54
...
I'm impressed you found the origion of the problem, autocart!

Skrommel
Thank you very much, Skrommel. :angel:
It took me a few hours and some stressed out sweat, but it is very satisfying once you find such a bug. :D
Regards, autocart
by autocart
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...
by autocart
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
by autocart
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...
by autocart
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( ...
by autocart
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...
by autocart
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...

Go to advanced search