Search found 497 matches

by derz00
13 Apr 2018, 09:13
Forum: Ask For Help
Topic: Listen to hotkey when GUI is shown
Replies: 1
Views: 236

Re: Listen to hotkey when GUI is shown

Try #if WinExist. This does not, by default anyway, detect hidden windows, so it should work.
by derz00
13 Apr 2018, 07:41
Forum: Scripts and Functions
Topic: slice string, pad characters
Replies: 18
Views: 1682

Re: slice string, pad characters

Alright, by elimination, pad isn't ideal. About slice: I've seen that JavaScript has 'slice', and that it's similar to AHK's SubStr, but do you have concrete examples form other programming languages to back up your claim? You're right; SubStr is slicing. What claim did I make? Pardon my misundersta...
by derz00
12 Apr 2018, 19:41
Forum: General Discussion
Topic: your personal AutoHotkey style guide
Replies: 77
Views: 7313

Re: your personal AutoHotkey style guide

I'm not sure what this has to do with AutoHotkey. Maybe because it's the only language with a WinGet function? And I also don't understand how clear and true description in naming variables can mislead someone. You asked for the PID of the active window, that's what you get, and until you have a bet...
by derz00
12 Apr 2018, 19:34
Forum: Scripts and Functions
Topic: slice string, pad characters
Replies: 18
Views: 1682

Re: slice string, pad characters

yes this is delimiting. Excel can split data by delimiters. Not sure where you researched your terms?

padding is adding characters to meet a certain length. such as padding 12 with 0's to 5 digits would be 00012

Slicing is slicing--which you do in AHK with SubStr()
by derz00
12 Apr 2018, 19:22
Forum: General Discussion
Topic: your personal AutoHotkey style guide
Replies: 77
Views: 7313

Re: your personal AutoHotkey style guide

[EDIT:] There is a potential problem with 'active_pid', it can be misleading since it is not guaranteed to correspond to the active PID. A function, ActivePID() / PIDActive(), with such a name, would make more sense. Hm? It is guaranteed--the 3rd parameter is "A" (which stands for "active"). What a...
by derz00
11 Apr 2018, 16:11
Forum: Forum Issues
Topic: [docs] BBCode no longer working
Replies: 25
Views: 3198

Re: [docs] BBCode no longer working

Yes thanks!
by derz00
11 Apr 2018, 13:52
Forum: Offtopic
Topic: Test
Replies: 1
Views: 414

Re: Test

:o
by derz00
10 Apr 2018, 16:22
Forum: Forum Issues
Topic: [docs] BBCode no longer working
Replies: 25
Views: 3198

Re: [docs] BBCode no longer working

most are working now but some are not: ;working msgbox winwait run loop return ;not working regexreplace() if #noenv #singleinstance varsetcapacity() DllCall() OnMessage() it looks like the old redirects (such as http://www.autohotkey.com/docs/MsgBox ) are still failing. i guess the codeboxes no lo...
by derz00
10 Apr 2018, 10:40
Forum: Scripts and Functions
Topic: Instant HotString
Replies: 17
Views: 1460

Re: Instant HotString

Yours doesn't improve one of the first issues with burque505's. After saving a hotkey, you can't add another one--the window disappears.

EDIT: Actually, his does have a "Show GUI" button in the tray menu, but it doesn't reset the edit fields
by derz00
07 Apr 2018, 14:40
Forum: Offtopic
Topic: Flat Earth vs. Globe Earth
Replies: 67
Views: 8857

Re: Flat Earth vs. Globe Earth

Our society's new opium is unbelief
by derz00
04 Apr 2018, 09:38
Forum: Scripts and Functions
Topic: InstantHotstring
Replies: 12
Views: 1059

Re: InstantHotstring

check the required version noted in the second line/comment. This script uses a recent new feature--you need the latest version.
by derz00
02 Apr 2018, 21:01
Forum: Ask For Help
Topic: objects: passing objects ByRef to a function Topic is solved
Replies: 8
Views: 644

Re: objects: passing objects ByRef to a function Topic is solved

- @derz00: In your function, there is only one object. In my function a new object is generated each time. - Also, my function is good for local objects, your function creates a global object. Alright, I see the difference. Either way, I don't see the purpose of this style of functions and creating...
by derz00
01 Apr 2018, 16:32
Forum: Offtopic
Topic: opinions on Stack Overflow
Replies: 65
Views: 11862

Re: opinions on Stack Overflow

https://meta.stackoverflow.com/a/365402/8771195

Never saw a virtual rubber ducky before! I'll have to try it next time I have a problem...
by derz00
01 Apr 2018, 16:26
Forum: Ask For Help
Topic: objects: passing objects ByRef to a function Topic is solved
Replies: 8
Views: 644

Re: objects: passing objects ByRef to a function Topic is solved

jeeswg wrote:This is another classic use of objects where ByRef is required.
I'm not sure what you mean. Doesn't this function do the same thing, without ByRef?

Code: Select all

CreateObj()
MsgBox, % oArray.3 ; c

CreateObj() {
	global oArray := ["a","b","c","d","e"]
}
by derz00
31 Mar 2018, 12:06
Forum: AutoHotkey v2 Development
Topic: passing parameters as strings v. numeric Topic is solved
Replies: 75
Views: 5391

Re: passing parameters as strings v. numeric Topic is solved

adding +0 where necessary Except that "1" + 0 wouldn't work either, if types were enforced. expert users getting mysterious bugs Either the expert part is wrong, or the program isn't throwing proper errors. Types are easy to debug, not mysterious. it will have to be forced to become a numeric type ...
by derz00
28 Mar 2018, 21:03
Forum: Forum Issues
Topic: Docs - endless loop
Replies: 31
Views: 3465

Re: Docs - endless loop

works for me now after one extra redirect...
by derz00
28 Mar 2018, 13:51
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4166
Views: 590924

Re: « What's on your mind? »

Problem is, Apple (so secure and private) does too, and Microsoft (so expensive and well-developed) supposedly
by derz00
28 Mar 2018, 12:15
Forum: Forum Issues
Topic: Docs - endless loop
Replies: 31
Views: 3465

Re: Docs - endless loop

any docs link freaks out for me.
by derz00
28 Mar 2018, 12:01
Forum: Forum Issues
Topic: Docs - endless loop
Replies: 31
Views: 3465

Re: Docs - endless loop

Nope, loop is broken lol. What I meant was, what should work doesn't work.
by derz00
28 Mar 2018, 11:55
Forum: Forum Issues
Topic: Docs - endless loop
Replies: 31
Views: 3465

Re: Docs - endless loop

doesn't work for me anymore

Go to advanced search