Search found 4767 matches

by jeeswg
23 minutes ago
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

Re: NumOp/StrOp (with respect to !=/!==)

- @nnnik: Thanks for your comments. - (Just for the record, coffee and nnnik have stated some really obvious things that I already knew. Although clarity for a wider readership is good.) - I never wanted to or tried to dictate how people should use GitHub, nor did I complain about the other 100 pull...
by jeeswg
Yesterday, 22:28
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

Re: NumOp/StrOp (with respect to !=/!==)

- The idea of disabling the ability of certain operators to handle strings has come as a surprise. I thought the whole point of the String function was to facilitate the use of such operators. Adding function StrCompare and disabling string compairsion of operators: < <= > >= by HelgeffegleH · Pull ...
by jeeswg
Yesterday, 22:17
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

Re: NumOp/StrOp (with respect to !=/!==)

You and coffee both have a 'certain style'.
by jeeswg
Yesterday, 21:59
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

Re: NumOp/StrOp (with respect to !=/!==)

- These kind of changes, re. types, could have the highest rewrite costs of any changes suggested so far, they are as serious as they get. Maybe you don't have too many scripts to maintain, or that you intend to share with other people. - When I have wanted to propose important changes, but where th...
by jeeswg
Yesterday, 19:40
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

Re: NumOp/StrOp (with respect to !=/!==)

- @Helgef: I had thought that 'stricter' type handling for expressions might have some advantages, as well as some disadvantages. - Looking at the drip feed of GitHub pull requests, I now see further disadvantages, which may (or may not) be soluble if discussed properly. - I think this topic needs r...
by jeeswg
Yesterday, 15:40
Forum: AutoHotkey v2 Development
Topic: [Feature Request] Add "Sign" function
Replies: 2
Views: 58

Re: [Feature Request] Add "Sign" function

- I know it's relatively minor but I would agree that this should be added. - There's a certain selection of basic functions that should be built into all programming languages and I have been writing an article on this that I intend to publish, comparing 4 programming languages. - I would want Auto...
by jeeswg
Yesterday, 15:29
Forum: Wish List
Topic: StrReplace() should have option to replace from rear of string
Replies: 10
Views: 356

Re: StrReplace() should have option to replace from rear of string

- @User: I think your ideas are fine, it's just that I tend to suggest things in line with what currently exists. Something very conservative that hopefully wouldn't shock anyone. - I wouldn't start a new syntax convention just for one function. - You could start a thread in Wish List stating that y...
by jeeswg
Yesterday, 08:59
Forum: Ask For Help
Topic: Hotstrings using final sigma (Greek alphabet)
Replies: 2
Views: 33

Re: Hotstrings using final sigma (Greek alphabet)

You could use the Hotstring function. I've provided 2 examples, one with Greek letters, one with Latin (i.e. English) letters. ;q:: ;word with diacritics to word without diacritics (plus trailing middle-sigma to final-sigma) vList := " ( γλαῦκος )" Loop, Parse, vList, `n, `r { vTemp := A_L...
by jeeswg
13 Aug 2018, 22:44
Forum: Wish List
Topic: StrReplace() should have option to replace from rear of string
Replies: 10
Views: 356

Re: StrReplace() should have option to replace from rear of string

- Thanks User. - An alternative would be a space-separated list. I mentioned that alternative earlier. - However, I find RegExReplace very workable, and StrReplace would only have one more parameter than that. - People could use mnemonics like so: vRet := StrReplace("ABCabc", "a&q...
by jeeswg
13 Aug 2018, 21:53
Forum: Ask For Help
Topic: String clean up. remove starting empty space
Replies: 11
Views: 64

Re: String clean up. remove starting empty space

- Btw I intended for only one of these lines to be used, I would suggest the 2nd one: vText2 := Trim(vText2, "`n `t") ;trim LFs and spaces/tabs vText2 := Trim(vText2, "`r`n `t") ;trim CRs/LFs and spaces/tabs - You need to remove the space just after %mainContents%. Btw if you use...
by jeeswg
13 Aug 2018, 21:21
Forum: Ask For Help
Topic: String clean up. remove starting empty space
Replies: 11
Views: 64

Re: String clean up. remove starting empty space

- Perhaps one of these two: vText := Trim(vText, "`n `t") ;trim LFs and spaces/tabs vText := Trim(vText, "`r`n `t") ;trim CRs/LFs and spaces/tabs - Chr(10) is linefeed (LF), which is also `n in AutoHotkey. - Chr(13) is carriage return (CR), which is also `r in AutoHotkey. - CRLF ...
by jeeswg
13 Aug 2018, 20:13
Forum: Ask For Help
Topic: String clean up. remove starting empty space
Replies: 11
Views: 64

Re: String clean up. remove starting empty space

- If you'd copied and pasted your text into the post, I could have checked it. - StringTrimLeft/StringTrimRight are deprecated. They crop a specific number of characters, but SubStr can be used instead. - Trim/LTrim/RTrim crop a variable number of characters, based on a list of characters. - Try: Tr...
by jeeswg
13 Aug 2018, 20:02
Forum: Ask For Help
Topic: String clean up. remove starting empty space
Replies: 11
Views: 64

Re: String clean up. remove starting empty space

- Try this: vText := " text " MsgBox, % "[" Trim(vText) "]" MsgBox, % "[" LTrim(vText) "]" MsgBox, % "[" RTrim(vText) "]" - By default Trim/LTrim/RTrim removes leading/trailing spaces and tabs. You can specify a list of characters.
by jeeswg
13 Aug 2018, 19:46
Forum: Wish List
Topic: StrReplace() should have option to replace from rear of string
Replies: 10
Views: 356

Re: StrReplace() should have option to replace from rear of string

- Thanks for your comments. - Yes there would be a lot of parameters. But I believe that on balance the alternatives are more unwieldy, with a lot of lines. - With case sensitivity, a further disadvantage is that you must remember to do StringCaseSense, % vSCS to restore the mode before any returns ...
by jeeswg
13 Aug 2018, 16:21
Forum: Ask For Help
Topic: v1/v2 Random for both
Replies: 16
Views: 206

Re: v1/v2 Random for both

- So eval is insufficient? eval (using JS/COM) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=15389 - If you wanted a change to AHK as a long-term solution, perhaps you would consider using a command dynamically for AHK v1 and v2. - Is any function as tough to recreate ...
by jeeswg
13 Aug 2018, 14:09
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 11
Views: 212

NumOp/StrOp (with respect to !=/!==)

- I've noticed a lot of suggestions here re. changing string/number handling. Pull Requests · Lexikos/AutoHotkey_L · GitHub https://github.com/Lexikos/AutoHotkey_L/pulls - I welcome the != change, as now (var1 != var2) and !(var = var2) are consistent. However, one side effect is that !(var1 != var2...
by jeeswg
13 Aug 2018, 10:59
Forum: Wish List
Topic: A_MajorAHKVersion
Replies: 5
Views: 63

Re: A_MajorAHKVersion

- @Helgef: Good point that #Include might change in future. - For me the larger point is this. People just want to be able write AHK v1 code that they know will also work in AHK v2. And such people are willing to make many efforts to shape their AHK v1 code to make it possible. - If that means an '#...
by jeeswg
13 Aug 2018, 10:42
Forum: Ask For Help
Topic: How do I use GroupAdd for two seperate applications having same ahk_class name
Replies: 2
Views: 44

Re: How do I use GroupAdd for two seperate applications having same ahk_class name

I would probably not use GroupAdd for this, and instead, at the appropriate places: ;not: the OWL.DocumentWindow line would have to appear above the more generic line #IfWinActive, ahk_class OWL.DocumentWindow ahk_exe Illustrator.exe #IfWinActive, ahk_exe Illustrator.exe #IfWinActive, ahk_class OWL....
by jeeswg
13 Aug 2018, 10:37
Forum: Wish List
Topic: A_MajorAHKVersion
Replies: 5
Views: 63

Re: A_MajorAHKVersion

- Some ideas: - A_AhkVersionMajor. - Add the ability to do a conditional #Include. - Perhaps this is better, as being forced to #Include files is generally very undesirable, versus keeping everything within one file which is preferable: an equivalent to C++'s #if #else #endif - AutoHotkey Community ...
by jeeswg
12 Aug 2018, 18:25
Forum: Gaming
Topic: Question about RegEx-basics?
Replies: 2
Views: 33

Re: Question about RegEx-basics?

- Try this: ;before: FoundPos := RegExMatch (Line, "i)you cast your spell*") ;after (remove the space): FoundPos := RegExMatch(Line, "i)you cast your spell*") - I wrote this, I may think of further improvements to the 'quick tutorial' in the future. jeeswg's RegEx tutorial (RegEx...

Go to advanced search