Search found 792 matches

by toralf
08 Jun 2020, 23:18
Forum: Wish List
Topic: use AHK.exe to parse scripts
Replies: 7
Views: 946

Re: use AHK.exe to parse scripts

More random thoughts. This might not be complete yet, but I saw in the past that you have a good sense of spotting corner cases and unspecified areas. ;) The information provided should contain A) a hierarchical structure of all the files involved (include and lib files) - with absolute or relative ...
by toralf
08 Jun 2020, 14:47
Forum: Gaming
Topic: Loop Topic is solved
Replies: 7
Views: 425

Re: Loop Topic is solved

Yes, Still not tested

Code: Select all

*ALT::
    Toggle := !Toggle
    while Toggle
    {
        Send, {ALT}
        If GetKeyState("LButton","P")
		     Sleep 10000
        Sleep 5000
    }
Return
by toralf
08 Jun 2020, 09:43
Forum: Wish List
Topic: use AHK.exe to parse scripts
Replies: 7
Views: 946

Re: use AHK.exe to parse scripts

In a Perfect world v1 and v2. But if it has a big impact v2 would I guess be the only one practical.
I still use v1.
by toralf
08 Jun 2020, 02:07
Forum: Wish List
Topic: use AHK.exe to parse scripts
Replies: 7
Views: 946

Re: use AHK.exe to parse scripts

Thank you for your reply and consideration. Regarding the output and exchange of information, I have no real concept for it right now. There are some basic requirements and random thoughts: - it should be easy to access and use by an AHK script - it will be structured information, thus an object wou...
by toralf
07 Jun 2020, 14:51
Forum: Gaming
Topic: Loop Topic is solved
Replies: 7
Views: 425

Re: Loop Topic is solved

Because it might be still stuck in the while loop

Edit: I altered my poster code above, I realized that I the return was in the wrong place. Still not tested though
by toralf
07 Jun 2020, 10:56
Forum: Ask For Help
Topic: PLEASE HELP! Text Parse / Regex Topic is solved
Replies: 15
Views: 608

Re: PLEASE HELP! Text Parse / Regex Topic is solved

The RegEx Tester doesn't do something special, it only uses the normal AHK function.

Code: Select all

NewStr := RegExReplace(rHaystack, rNeedle, rReplacement, rCount, rLimit, rStartPos)
The difference is that the needle is taken from the edit control vrNeedle gUpdateReplace by

Code: Select all

Gui Submit, NoHide
by toralf
07 Jun 2020, 10:53
Forum: Ask For Help
Topic: PLEASE HELP! Text Parse / Regex Topic is solved
Replies: 15
Views: 608

Re: PLEASE HELP! Text Parse / Regex Topic is solved

When the needle gets "extracted" from the edit control, the `a seems to be processed. When I hardcode the needle instead of getting it from the edit control all works fine.
by toralf
07 Jun 2020, 08:46
Forum: Ask For Help
Topic: PLEASE HELP! Text Parse / Regex Topic is solved
Replies: 15
Views: 608

Re: PLEASE HELP! Text Parse / Regex Topic is solved

Thanks teadrinker. That is of cause more elegant. Edit: Interestingly the RegEx Tester shows the needle as error and doesn't show the result. The `a option causes the error, but removing it doesn't provide the correct result. The RegEx Tester has ErrorLevel: Compile error 22 at offset 4: unmatched p...
by toralf
07 Jun 2020, 06:36
Forum: Wish List
Topic: use AHK.exe to parse scripts
Replies: 7
Views: 946

use AHK.exe to parse scripts

Several people have coded AHK scripts in the past that parse other AHK scripts to get information from it to support programming. This can get quite complicated depending on what type of information should be extracted from the script. I was wondering, if the parser in AHK.exe itself could be used t...
by toralf
07 Jun 2020, 06:25
Forum: Gaming
Topic: Loop Topic is solved
Replies: 7
Views: 425

Re: Loop Topic is solved

not tested

Code: Select all

*ALT::
    Toggle := !Toggle
    while Toggle
    {
        Send, {ALT}
        Sleep 10
        If GetKeyState("LButton","P")
		     Toggle := !Toggle
    }
Return
by toralf
07 Jun 2020, 02:03
Forum: Ask For Help
Topic: PLEASE HELP! Text Parse / Regex Topic is solved
Replies: 15
Views: 608

Re: PLEASE HELP! Text Parse / Regex Topic is solved

There is a script called "RegEx Tester" that will help you to test the needles.

Here is the needle you might be looking for
i)^[\d\W]*\QError\E\s\d+

http://www.autohotkey.com/board/topic/81045-regular-expression-tester/
by toralf
06 Jun 2020, 16:30
Forum: Ask For Help
Topic: Loop
Replies: 2
Views: 204

Re: Loop

you could check the state of the LButton with GetKeyState(), see manual.
by toralf
06 Jun 2020, 16:27
Forum: Ich brauche Hilfe
Topic: Code zusammenfassen / eleganter machen Topic is solved
Replies: 16
Views: 1234

Re: Code zusammenfassen / eleganter machen Topic is solved

Q macht was es soll aber welches Bildungsgesetz liegt dem Wert zugrunde? das Bildungsgesetz welches Du ihm gegeben hast. Ich vermute Du störst dich daran, dass es im zweiten Fall noch 1 ist, während q schon 2 ist. Dies liegt aber an dem ++ operator, der hier als "postindex" greift. D.h. q wird erst...
by toralf
03 Jun 2020, 01:56
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/07/31 - a121
Replies: 102
Views: 14743

Re: CallTipsForAll v2 - 2020/06/02 - For AHK v2 (updated) / v1 (shelved)

I was under the impression that the syntax would not be that different. But I assume now that you have found the small pieces that make the difference. In best case the main script is identical and only version specific code is handled by if statements (or sub branches of an associated object, e.g. ...
by toralf
03 Jun 2020, 01:37
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/07/31 - a121
Replies: 102
Views: 14743

Re: CallTipsForAll v2 - 2020/06/02 - For AHK v2 (updated) / v1 (shelved)

That is totally fine with me.
I personally would not create two scripts, though. The one script should just support AHK v1 and v2. Which exe the script needs is irrelevant IMHO.
by toralf
02 Jun 2020, 16:08
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/07/31 - a121
Replies: 102
Views: 14743

Re: CallTipsForAll v2 - 2020/06/02 - For AHK v2 (updated) / v1 (shelved)

TheArkive wrote:
02 Jun 2020, 07:01
Yep AHK v2 (for all the latest features).
I haven’t used v2 yet, what are the latest features that were beneficial for this script?
by toralf
02 Jun 2020, 15:18
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/07/31 - a121
Replies: 102
Views: 14743

Re: CallTipsForAll v2 - 2020/06/02 - For AHK v2 (updated) / v1 (shelved)

I would love the script to accept a cmd line parameter (e.g. base) that can be used to set the main file to be parsed. Then I could kill the old script when the user changes projects and start the script with a new base file, which in AHK project manager is called main file.
by toralf
02 Jun 2020, 06:44
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/07/31 - a121
Replies: 102
Views: 14743

Re: CallTipsForAll v2 - 2020/06/02 - For AHK v2 (updated) / v1 (shelved)

I did test the code but had a look at it. Is there a reason you do not use switch/case? I saw if/else chains that IMHO would be suited for switch/case. Also the whole script is just one file. It made it harder for me to understand the flow of the script. Both cases are mainly subjective issues, but ...
by toralf
02 Jun 2020, 06:38
Forum: Ask For Help
Topic: get cmd output without file
Replies: 11
Views: 1221

Re: get cmd output without file

I assume it does not work with the original AHK function because the command already contains a pipe. But that is just a pure guess.
Thus, you either remove the part after the pipe an do it in AHK or you try to alter the AHK function.
by toralf
02 Jun 2020, 05:04
Forum: Ask For Help
Topic: get cmd output without file
Replies: 11
Views: 1221

Re: get cmd output without file

Only the txt that is displayed by ffmpeg in the console is being captured into a variable. I do not believe that ffmpeg prints the binary data to the console.

Go to advanced search