Search found 4487 matches

by jeeswg
Today, 07:38
Forum: Ask For Help
Topic: carriage return wont work
Replies: 4
Views: 30

Re: carriage return wont work

To have line breaks work properly when a text file is opened in Notepad, and when the contents of Edit controls are set, use CRLFs not LFs.

Code: [Select all]GeSHi © Codebox Plus

vText := StrReplace(vText, "`n", "`r`n")
by jeeswg
Yesterday, 19:55
Forum: Ask For Help
Topic: store treevalues into array?
Replies: 1
Views: 31

Re: store treevalues into array?

Probably something like this: q:: ;CRLF-delimited list to linear array vText := "a`r`nb`r`nc" oArray := StrSplit(vText, "`r`n") vOutput := "" for vKey, vValue in oArray vOutput .= vKey " " vValue "`r`n" MsgBox, % vOutput return
by jeeswg
Yesterday, 17:05
Forum: Ask For Help
Topic: Automatically log into an application
Replies: 1
Views: 27

Re: Automatically log into an application

- Try sending it to Notepad to see if it has sent correctly.
- Special characters not being escaped, and capitalisation could be problems.
- Try Send, {Text}password. To avoid text being capitalised incorrectly. The {Text} option is available on AHK v1.1.27+.
by jeeswg
Yesterday, 16:08
Forum: Ask For Help
Topic: Using IE.Document.GetElementsByClassname
Replies: 10
Views: 1741

Re: Using IE.Document.GetElementsByClassname

You can try IE=edge as was mentioned, but also IE=9:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=9">
by jeeswg
Yesterday, 11:26
Forum: Bug Reports
Topic: VA problem in 1.1.29.00
Replies: 8
Views: 121

Re: VA problem in 1.1.29.00

So what has changed in AHK? Is it stricter error handling correctly identifying an error? (When SetMute is used via DllCall with too few parameters.) The quote below perhaps suggests this but doesn't state it explicitly. Changes & New Features https://autohotkey.com/docs/AHKL_ChangeLog.htm#v1.1....
by jeeswg
Yesterday, 09:22
Forum: Bug Reports
Topic: VA problem in 1.1.29.00
Replies: 8
Views: 121

Re: VA problem in 1.1.29.00

Did you test v1.1.29.01?
by jeeswg
Yesterday, 05:57
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

These examples seem to be right or mostly right: q:: ;RegExReplace - chords vText := " (Join`r`n 1 ^1 ^^1 1/2 1/2,3 1/2,3/4 1/2,^3/4 1/2,^^3/4 1,^^3/4 1,^3/4 ^1/2,^^3/4 ^^1/2,^^3/4 ^1,^^3/4 ^^1,^^3/4 ,3 ,3/4 ,^3 ,^^3 ,^^3/4 ,^3/4 )" vText1 := RegExReplace(vText, "m)^\^*\K\d", &qu...
by jeeswg
Yesterday, 05:30
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 411
Views: 69913

Re: Suggestions on documentation improvements

@hoppfrosch: Which version of AHK v2 are you using? I tried FileCreateDir as a command and function in AHK v2.0-a096 and got the same error as Helgef.
by jeeswg
17 Jun 2018, 20:16
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

I thought I should mention this, which could be useful at some point:

Code: [Select all]GeSHi © Codebox Plus

[A-G][b#]?

A capital letter between A and G, optionally followed by b or #. The question mark means 0 or 1 of the previous character.
by jeeswg
17 Jun 2018, 19:14
Forum: Ask For Help
Topic: How to Click a Button in a Web Page?
Replies: 2
Views: 58

Re: How to Click a Button in a Web Page?

- Here's the sort of investigation/experimentation I do, to identify the right web element in Internet Explorer: ;WBGet function - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&t=39869 ;note: getElementsByClassName/getElementsByTagName methods [elements plural]: ;you can ...
by jeeswg
17 Jun 2018, 18:33
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

- Something like this might help to replace the nth occurrence: q:: ;RegEx - replace specific strings vText := "X/X,X/X" vOutput := "" vOutput .= RegExReplace(vText, "X(?=.*X.*X.*X)", "x") "`r`n" vOutput .= RegExReplace(vText, ".*\KX(?=.*X.*X)&q...
by jeeswg
17 Jun 2018, 18:03
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

Probably these: ;note: ^ indicates starts with ;note: [^a] means not a ;note: \^ indicates ^ (it needs to be escaped with a backslash to use it literally, instead of for a special purpose) ;note: \K can also be used (?<=^\^) ;starts with ^ (?<=^\^\^) ;starts with ^^ (?<=\^\^) ;preceded by ^^ (?<=[^^...
by jeeswg
17 Jun 2018, 16:59
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

This will probably cover most of the issues: ;uses: ^ $ [start/end] ;uses: \K ;uses: (?<=) (?<!) (?=) (?!) [positive/negative look-behind/look-ahead assertions] q:: ;RegEx - replace specific strings vText := "X/X,X/X" vOutput := "" vOutput .= RegExReplace(vText, "^X", &...
by jeeswg
17 Jun 2018, 15:54
Forum: Ask For Help
Topic: RegExReplace Transpose Chords
Replies: 13
Views: 171

Re: RegExReplace Transpose Chords

- I would suggest showing a list/lists of the form: abc -> def. That way more people will be quicker to help. Cheers.
- You might also list everything that X could be (list/lists).
by jeeswg
17 Jun 2018, 15:16
Forum: Ask For Help
Topic: Capitalize first paragraph letter (not just after .?!)
Replies: 13
Views: 130

Re: Capitalize first paragraph letter (not just after .?!)

Add this to your original code perhaps.
by jeeswg
17 Jun 2018, 14:36
Forum: Ask For Help
Topic: Capitalize first paragraph letter (not just after .?!)
Replies: 13
Views: 130

Re: Capitalize first paragraph letter (not just after .?!)

Btw if you create a custom GUI with an Edit control (or perhaps other controls also), you could monitor WM_KEYDOWN messages using OnMessage, which would enable you to capitalise letters on the fly. You block certain key presses, and send alternative key presses instead.
by jeeswg
17 Jun 2018, 06:10
Forum: Ask For Help
Topic: Read/Write registry QWORDS values
Replies: 2
Views: 30

Re: Read/Write registry QWORDS values

You could try this script to read the value: registry: list keys/values via DllCall - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=38191 Or these functions: RegRead64() and RegWrite64() - no redirect to Wow6432Node - Scripts and Functions - AutoHotkey Community https://...
by jeeswg
17 Jun 2018, 05:59
Forum: Ask For Help
Topic: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved
Replies: 7
Views: 89

Re: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved

Try this: q:: ;concatenate 2 binary files vPath1 := A_Desktop "\first.bin" vPath2 := A_Desktop "\second.bin" vPathOut := A_Desktop "\merged.bin" FileGetSize, vSize1, % vPath1 FileGetSize, vSize2, % vPath2 vSize := vSize1 + vSize2 VarSetCapacity(vData, vSize) vOffset := ...
by jeeswg
17 Jun 2018, 05:50
Forum: Ask For Help
Topic: filter non English lines Topic is solved
Replies: 8
Views: 163

Re: filter non English lines Topic is solved

For something like this I would create a list of all the strings. I would then determine a list of all of the unique characters in that list and determine whether to allow each character. I would assess each character manually, I might then make a RegEx line based on my conclusions. E.g. see, LIST E...
by jeeswg
16 Jun 2018, 21:52
Forum: Ask For Help
Topic: Help converting JSON library from v1.1 to v2
Replies: 4
Views: 93

Re: Help converting JSON library from v1.1 to v2

Change is number to is "number". (I've corrected this above.) To get it to work I also replaced IsFunc(obj) with IsObject(obj). (I haven't changed this above. Maybe it was a typo in the original script!?) AFAIK qwe would be invalid, it should fail the function, the string should begin with...

Go to advanced search