Search found 3341 matches

by jeeswg
Today, 03:32
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax
Replies: 5
Views: 63

Re: Object declaration syntax

I came across these issues for the first time recently, when working on the example here. objects: hierarchies: listing/comparing objects - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=41510&p=195302#p195302 • Allow line breaks around the brackets [workaround: use c...
by jeeswg
Yesterday, 16:41
Forum: Ask For Help
Topic: Menu Font ?
Replies: 4
Views: 62

Re: Menu Font ?

- I wrote a function to change the system-wide menu font. GUI COMMANDS: COMPLETE RETHINK - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=25893&p=131078#p131078 - Is someone going to try to write a script to create GUI menus from first principles? E.g. by using Static...
by jeeswg
Yesterday, 16:19
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 4
Views: 126

Re: Having trouble with this graphical mouse gesture flyout GUI

- I had a look at it, but it was very complicated, and thus difficult to follow. - The code looks like it could probably be greatly simplified, e.g. wherever code repeats, try to make that into a function. - I would recommend writing a really simple example script, and trying to get that working. - ...
by jeeswg
Yesterday, 15:48
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 36
Views: 776

Re: object classes: redefine __Set() temporarily / general queries

Redefine an array to return 0 if a key is not found. q:: ;redefine array to return 0 if key not found oArray := {} oArray.a := 1 MsgBox, % oArray.a " - " oArray.b MsgBox, % oArray.c + 1 oArray.d++ MsgBox, % oArray.d oArray.e += 3 MsgBox, % oArray.e oArray.base := {"__Get":"R...
by jeeswg
Yesterday, 15:42
Forum: Wish List
Topic: Features I miss from other languages & syntax ideas
Replies: 14
Views: 539

Re: Features I miss from other languages & syntax ideas

For switches, you can get some good outcomes by using the ternary operator:
Switch/Case statement - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=13&t=27794&p=187486#p187486
by jeeswg
Yesterday, 14:36
Forum: Ich brauche Hilfe
Topic: "@" per controlsend
Replies: 3
Views: 56

Re: "@" per controlsend

Probieren Sie dieses Skript aus oder versuchen Sie Send {Text} in AutoHotkey v1.1.27+. Prost. [Try this script, or try Send {Text} in AutoHotkey v1.1.27+. Cheers.] q:: ;send character to active window/control WinGet, hWnd, ID, A ControlGetFocus, vCtlClassNN, % "ahk_id " hWnd ControlGet, hC...
by jeeswg
Yesterday, 12:30
Forum: AutoHotkey v2 Development
Topic: Object.HasValue/Contains/KeyOf/FindValue
Replies: 32
Views: 2155

Re: Object.HasValue/Contains/KeyOf/FindValue

- My current preferred solution: 0 = bool [default] 1 = first key name as an array n = first n key names as an array -1 = all key names as an array s = first key name as a string [perhaps] f = first key name as a string [perhaps] c = count as a number [perhaps] - Other option possibilities: - case s...
by jeeswg
Yesterday, 10:18
Forum: Offtopic
Topic: opinions on Stack Overflow
Replies: 44
Views: 6752

Re: opinions on Stack Overflow

nnnik, in this thread, and guest3456, elsewhere, mentioned a forum/FAQ distinction. I couldn't find any information about a distinction anywhere, other than this link, which suggests an FAQ is still a forum, but where the questions face tougher hurdles. FAQs vs. Forums. What's the difference between...
by jeeswg
Yesterday, 09:55
Forum: About This Community
Topic: Tips for using the forum.
Replies: 8
Views: 2182

Re: Tips for using the forum.

It's a meme, that's all. It's funny to have a chance to legitimately use the phrase in a sentence. Good idea to put the thread here. I wasn't sure whether it was more forum-y or tutorial-y. Thanks.
by jeeswg
Yesterday, 09:46
Forum: About This Community
Topic: Tips for using the forum.
Replies: 8
Views: 2182

Re: Tips for using the forum.

Uh oh, joedf ... 'You reposted in the wrong neighborhood'.
Hehe. Forum Issues / Tutorials / About This Community. All good neighbourhoods. Cheers.
by jeeswg
Yesterday, 08:05
Forum: Ask For Help
Topic: huawei calculation Topic is solved
Replies: 5
Views: 397

Re: huawei calculation Topic is solved

- Here's a way. q:: ;list to table 'by columns' (specify row count) vText := "8f 43 ae 1a 33 19 c6 49 cc 57 40 8b 6a 39 2d 6b" vNum := 4 ;row count vSep := " " oArray := StrSplit(vText, " ") vOutput := "" vIndex := 1 Loop, % oArray.Length() { vOutput .= oArray...
by jeeswg
Yesterday, 05:57
Forum: Ask For Help
Topic: How to use controls sharing same ClassNN?
Replies: 10
Views: 126

Re: How to use controls sharing same ClassNN?

- It may be that the fields are part of the same control, and that the Edit control only appears when you a field is focused (ready to type something in). This is true in Explorer, only when you are renaming a file, does an Edit control appear. - So a possible solution would be to use ControlClick o...
by jeeswg
20 Jan 2018, 20:24
Forum: Ask For Help
Topic: notation: parameter could be a variable or an object
Replies: 4
Views: 80

Re: notation: parameter could be a variable or an object

- See JEE_MenuGetText/JEE_MenuGetTextAll, here: GUIs via DllCall: get/set internal/external control text - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=40514 - For example, it's good to be able to specify the hWnd for menu bars, or an hMenu for a visible context menu (e...
by jeeswg
20 Jan 2018, 17:07
Forum: Bug Reports
Topic: A_DDD = Sa
Replies: 8
Views: 146

Re: A_DDD = Sa

- I had considered doing something like that before, but hadn't really had the need. - Two things. One, it's a template, if you want to use some variant text for weekdays/months, e.g. fewer/more letters, or capitalisation. Two, it's a template, if you want to use more than one language in your scrip...
by jeeswg
20 Jan 2018, 16:43
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3706
Views: 387130

Re: « What's on your mind? » Topic is solved

@jballi: Subpixels look so cool.

Hilarious Yearbook Quotes That will make you laugh - YouTube
https://www.youtube.com/watch?v=Q483SBG3S4o
by jeeswg
20 Jan 2018, 15:22
Forum: Ask For Help
Topic: notation: parameter could be a variable or an object
Replies: 4
Views: 80

notation: parameter could be a variable or an object

- Sometimes when I'm writing a function, or elsewhere, I have a parameter that could be a variable or an object. - One of the most obvious examples of this is an object loop. I usually use 'vValue', expecting a string/number, but it could be an object. for vKey, vValue in oArray vOutput .= vKey &quo...
by jeeswg
20 Jan 2018, 14:40
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1244

Re: jeeswg's benchmark tests

STRINGS: SUBSTR: CROP FIRST CHARACTER V. CROP LAST CHARACTER - SubStr(vText, 2) v. SubStr(vText, 1, -1) In the example below, cropping the last character was roughly 7 times faster. q:: ;crop first character v. crop last character oArray := [] vNum := 10000 vLen := 100000 VarSetCapac...
by jeeswg
20 Jan 2018, 02:30
Forum: AutoHotkey v2 Development
Topic: a_iscompiled v2a082+
Replies: 4
Views: 143

Re: a_iscompiled v2a082+

I think you're right. This returns true: MsgBox(IsObject(A_IsCompiled)) . ;results where obtained with an *uncompiled* script ;tested on AHK v2a082-fffc60d MsgBox(a_iscompiled) ;blank MsgBox(A_IsCompiled) ;blank MsgBox(StrLen(a_iscompiled)) ;0 MsgBox(StrLen(A_IsCompiled)) ;0 MsgBox(a...
by jeeswg
19 Jan 2018, 15:29
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1244

Re: jeeswg's benchmark tests

- The most practical solution, I think, everything considered, is this: - We move this thread to a different forum, Scripts and Functions perhaps. - It's too early to try to make this a 'tidy' thread, the posts will be being changed and added to for some time to come. - At some future date, I could ...
by jeeswg
19 Jan 2018, 14:36
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1244

Re: jeeswg's benchmark tests

- I do benchmark tests to *save* time. You're welcome to convert them all to that style, combining them in one post. But seriously though, well done, that's a great example. Thanks nnnik. - More and more though, I'm thinking that the examples should either be in separate posts, or in one massive pos...

Go to advanced search