Search found 568 matches

by Delta Pythagorean
01 May 2020, 19:51
Forum: Bug Reports
Topic: Confirmed bug with #if and Hotkey, If Topic is solved
Replies: 10
Views: 1824

Re: Confirmed bug with #if and Hotkey, If Topic is solved

I have a few questions: Why are you forcing Global inside of a function that doesn't need global? Is there a particular reason why are you using SendEvent versus something else? Why do you have a function dedicated to returning whether notepad++ is active? Why not just put the WinActive call on the ...
by Delta Pythagorean
30 Apr 2020, 03:03
Forum: Ask For Help
Topic: FileAppend to stdout isnt working.
Replies: 3
Views: 266

Re: FileAppend to stdout isnt working.

Depending on what you're trying to accomplish... For appending to a console: ; Attach to the open console this script was run from ; or open a new console to hook onto. DllCall("AttachConsole", "Int", -1) DllCall("AllocConsole") ; Append to the open console: "Hello world\n" FileAppend, Hello world!`...
by Delta Pythagorean
24 Apr 2020, 22:28
Forum: Wish List
Topic: Include Error Work Around
Replies: 2
Views: 802

Re: Include Error Work Around

If by "error" you mean failure to locate the file, in your example you should just use #Include <Gdip> , which looks in %A_ScriptDir%\Lib before anywhere else. That is a valid point, using that method does find the file for you... If you think a user may have a different (but valid) script with the...
by Delta Pythagorean
24 Apr 2020, 04:34
Forum: AutoHotkey v2 Development
Topic: Do we need to return multiple variables?
Replies: 14
Views: 3082

Re: Do we need to return multiple variables?

As far as I know, no. You can span the returned object like you would spread an array, although I think it sorts it so it would be unreliable in various cases. As for assigning a value to multiple variables, you can do it: MouseStart := ExampleObject := MouseGetPos() This would set both variables to...
by Delta Pythagorean
23 Apr 2020, 16:57
Forum: Wish List
Topic: Include Error Work Around
Replies: 2
Views: 802

Include Error Work Around

This has probably already been asked before, but I think this could provide some simple solutions to a tedious task. What I'm asking is some sort of way of working around include errors to include a different file. My thought is something like this: #Include, %A_ScriptDir%\Lib\Gdip.ahk #IfIncludeErr...
by Delta Pythagorean
22 Apr 2020, 00:57
Forum: Scripts and Functions
Topic: NotStr() : Switch between multiple states
Replies: 43
Views: 3816

Re: NotStr() : Switch between multiple states

My apologies, I had a library that was included that replaced the Max function.
I'll have to look deeper into where that specific function is placed but the function does work for me.

TL;DR:
My fault, had a function somewhere that replaced a function.
by Delta Pythagorean
21 Apr 2020, 20:54
Forum: Scripts and Functions
Topic: NotStr() : Switch between multiple states
Replies: 43
Views: 3816

Re: NotStr() : Swtich betwen multiple states

I used the full function and tested it in full and I could not get it to work. I did not edit the function itself.
Also, the error that I provided was copied from the debugger I'm using that displays the errors to a console.
by Delta Pythagorean
21 Apr 2020, 18:16
Forum: Scripts and Functions
Topic: NotStr() : Switch between multiple states
Replies: 43
Views: 3816

Re: NotStr() : Swtich betwen multiple states

I didn't think this was possible, but this error occured: ==> Too many parameters passed to function. Specifically: Max(InStr(Z,(S)(D),0,0-LZ+LS+LD)?LS+LD+LD:0,InStr(Z,(D)(S),,LZ-LS) ?1:0,(Q:=InStr(Z,(D)(S)(D)))?Q+LD+LS+LD:0),1),((Q:=InStr(Z,D,,P1))?Q:LZ+1)-P1) I don't know if you're running a diffe...
by Delta Pythagorean
16 Apr 2020, 22:13
Forum: Wish List
Topic: Enhanced SetBatchLines
Replies: 2
Views: 988

Re: Enhanced SetBatchLines

Specifying a value of nearly any range would work. There's no need for a new command for the same functionality that's already available for the command. I suggest you read into the documentation for the command a little more carefully.
by Delta Pythagorean
11 Apr 2020, 13:30
Forum: Scripts and Functions
Topic: new Notify class leveraging Window's Animations from Maestrith
Replies: 13
Views: 2546

Re: new Notify class leveraging Window's Animations from Maestrith

Offtopic: I always scream when I see maestrith not put any spaces anywhere in his code lol I've never really liked spaces. You can use AHK-Studio, select everything, Alt+M Add Space After Comma{Enter} to "fix" it but I have found that having an editor with a good color scheme is enough to break up ...
by Delta Pythagorean
09 Apr 2020, 14:22
Forum: Other Utilities & Resources
Topic: AHK Compiler By DLG
Replies: 72
Views: 12054

Re: AHK Compiler By DLG

Bloody hell, calm down with the design.
I appreciate the extra details in making it look more futuristic, but from a designer's point of view, it's quite excessive from the task it's trying to accomplish.
by Delta Pythagorean
09 Apr 2020, 14:19
Forum: Scripts and Functions
Topic: new Notify class leveraging Window's Animations from Maestrith
Replies: 13
Views: 2546

Re: new Notify class leveraging Window's Animations from Maestrith

Offtopic: I always scream when I see maestrith not put any spaces anywhere in his code lol
by Delta Pythagorean
07 Apr 2020, 18:51
Forum: Bug Reports
Topic: Modifier up not noticed during handling
Replies: 5
Views: 1406

Re: Modifier up not noticed during handling

It is not a bug but more of a quirk with Windows(?) Using the {Blind} modifier before the text you want to send. Doing so will ignore any keys you're currently holding down and send the keys without question. Read here EDIT: I am incorrect! It does NOT ignore your keypresses but instead passes your ...
by Delta Pythagorean
07 Apr 2020, 18:45
Forum: Wish List
Topic: To tint the tray icon when script is paused and/or suspended
Replies: 5
Views: 1428

Re: To tint the tray icon when script is paused and/or suspended

When I say easy, I mean it's easy in retrospect. In reality, I recommend to use the GDIP library to manage a bitmap and then apply the edited bitmap to the script icon using: Menu, Tray, Icon, HICON:%HICON% Again, use GDIP to get the icon and then show another image over the grabbed icon, saving it ...
by Delta Pythagorean
07 Apr 2020, 10:12
Forum: Wish List
Topic: To tint the tray icon when script is paused and/or suspended
Replies: 5
Views: 1428

Re: To tint the tray icon when script is paused and/or suspended

Or you could use a function and just include it in every script.
It's pretty easy to do.
by Delta Pythagorean
07 Apr 2020, 05:36
Forum: Wish List
Topic: To tint the tray icon when script is paused and/or suspended
Replies: 5
Views: 1428

Re: To tint the tray icon when script is paused and/or suspended

You can do this by using the parameter you showed by adding Menu, Tray, Icon, Frozen.ico before using the Pause command.
by Delta Pythagorean
04 Apr 2020, 22:43
Forum: Wish List
Topic: Inline text formatting codes
Replies: 4
Views: 1622

Re: Inline text formatting codes

Doing this would seem hard, if not impossible to do. Changing the text of a menu item (as far as I've found) cannot be done.
by Delta Pythagorean
03 Apr 2020, 04:02
Forum: Scripts and Functions
Topic: LineStr() : Extract any line or consecutive lines from text
Replies: 20
Views: 2822

Re: LineStr() : Extract any line or consecutive lines from text

Example: ; The following adds 10 lines with the following wording: LineNum: <NUM> | Contents: <RAND_STR_ALPHA>`n Loop, % (10) { Loop, % (5) { ; Get a random letter and list it for sh*ts and giggles. Random, CHR, % A := Asc("a"), % A + 25 Rand .= Chr(CHR) } Str .= "LineNum: " . A_Index . "`t| Content...
by Delta Pythagorean
27 Mar 2020, 04:23
Forum: Ask For Help
Topic: #Include a file from a variable - is it possible? Topic is solved
Replies: 1
Views: 152

Re: #Include a file from a variable - is it possible? Topic is solved

AHK includes files before the script "starts", then the code is run through a linter and looked for errors, then executed.
So no, it is not possible to use variables inside an Include outside of the allowed ones.

Go to advanced search