Search found 3556 matches

by jeeswg
Yesterday, 23:25
Forum: Ask For Help
Topic: FileAppend to stdout/stderr
Replies: 0
Views: 13

FileAppend to stdout/stderr

- I have some concerns re. the following lines: ;FileAppend, % vOutput, *, UTF-8 FileAppend, % vOutput, **, UTF-8 ;FileAppend, % vOutput, * *, UTF-8 ;doesn't work ;FileAppend, % vOutput, * **, UTF-8 ;doesn't work ;FileAppend, % vOutput, %vPath%, UTF-8 ;FileAppend, % vOutput, * %vPath%, UTF-8 - There...
by jeeswg
Yesterday, 13:39
Forum: Ask For Help
Topic: Better understanding of pseudo-arrays Topic is solved
Replies: 5
Views: 89

Re: Better understanding of pseudo-arrays Topic is solved

Keeping it simple: q:: ;StrSplit v. StringSplit vText := "a,b,c" oArray := StrSplit(vText, ",") MsgBox, % oArray.Length() " " oArray.1 " " oArray.2 " " oArray.3 StringSplit, vPseudoArray, vText, % "," MsgBox, % vPseudoArray0 " " v...
by jeeswg
Yesterday, 13:32
Forum: Ask For Help
Topic: Wild cards in filepatterns
Replies: 2
Views: 33

Re: Wild cards in filepatterns

- AFAIK and based on tests I just did, wildcards can only be used on the last part in a File loop.
- I couldn't find an explicit mention of this here:
Loop (files & folders)
https://autohotkey.com/docs/commands/LoopFile.htm
by jeeswg
Yesterday, 12:45
Forum: Wish List
Topic: StrJoin bulitin function
Replies: 15
Views: 4399

Re: StrJoin bulitin function

- @joefiesta: Ideally you would also use VarSetCapacity, and a not-currently-available ObjCount function, unless it's a very small array, to improve performance. Complications to do with VarSetCapacity is one reason I think that both StrRept and StrJoin functions should be implemented. (Other reason...
by jeeswg
Yesterday, 12:22
Forum: Ask For Help
Topic: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA
Replies: 3
Views: 54

Re: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA

- Yes, without the LoadLibrary line, it appears to crash AutoHotkey. - There's all sorts of good code, that shouldn't appear in the help. When I complete my beginner tutorial, I might put some links there, to make certain things easier to find. I might put a link here also: jeeswg's documentation ex...
by jeeswg
19 Feb 2018, 18:37
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 343
Views: 56236

Re: Suggestions on documentation improvements

- The zoom/text size techniques work on Internet Explorer (online) *and* HTML Help (offline). - @joefiesta: My hunch is that it might be good if you collected your documentation ideas together, a bit like this: jeeswg's documentation extension tutorial - AutoHotkey Community https://autohotkey.com/b...
by jeeswg
19 Feb 2018, 17:19
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 343
Views: 56236

Re: Suggestions on documentation improvements

- It appears that the online documentation is preventing Alt+Left/Alt+Right from working on Internet Explorer. - I often do 'Google search, click, find, copy, back (alt+left)' in quick succession. - Workaround: ;WBGet function - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&a...
by jeeswg
19 Feb 2018, 16:38
Forum: Ask For Help
Topic: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA
Replies: 3
Views: 54

Re: DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA

- Try this. q:: ;AutoHotkey Help (HTML Help) - navigate to page vPathChm := "C:\Program Files\AutoHotkey\AutoHotkey.chm" vPath := vPathChm "::/docs/commands/Random.htm" if !hModuleHH hModuleHH := DllCall("kernel32\LoadLibrary", Str,"hhctrl.ocx", Ptr) ;HtmlHelp...
by jeeswg
19 Feb 2018, 07:18
Forum: Ask For Help
Topic: Break text into new lines
Replies: 3
Views: 36

Re: Break text into new lines

Some ideas: q:: ;split text by '--', using RegExReplace vText := "--AAA-BBB--CCC-DDD--EEE-FFF" ;[^a] means not a, in RegEx, text between square brackets is a character class ;[^\-] means not -, - is escaped with \ because - has a special meaning within a character class e.g. [a-z] means al...
by jeeswg
19 Feb 2018, 01:54
Forum: Ask For Help
Topic: What are things that you can't do with AHK?
Replies: 6
Views: 149

Re: What are things that you can't do with AHK?

- It's possible that AHKHID might be able to help with distinguishing between key presses from different devices: NEW Barcode Input Capture (USB and RS232 compatible) - Page 2 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=36241&p=170673#p170673 - To detect a clipbo...
by jeeswg
19 Feb 2018, 01:35
Forum: Bug Reports
Topic: How to find reason for crash every few weeks
Replies: 9
Views: 157

Re: How to find reason for crash every few weeks

- How do you know that it's crashing? Does the systray icon disappear? Does it no longer appear in Task Manager. Taken from: jeeswg's Explorer tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=31755 To show the Command Line column in Task Manager: if the Command L...
by jeeswg
19 Feb 2018, 01:16
Forum: Ask For Help
Topic: Firefox : toggle on/off sidebar - HELP
Replies: 1
Views: 35

Re: Firefox : toggle on/off sidebar - HELP

I was able to invoke the button using the Acc library. ;[Acc functions] ;Acc library (MSAA) and AccViewer download links - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&t=26201 q:: ;Mozilla Firefox - toggle show/hide Sidebars WinGet, hWnd, ID, A ;MsgBox, % Clipboard := JE...
by jeeswg
19 Feb 2018, 01:03
Forum: Ask For Help
Topic: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones
Replies: 3
Views: 62

Re: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones

- In reference to: oEdit[A_Index] := hCtl if !oEdit2.HasKey(vCtlX) ;it's possible that these 2 lines are unnecessary oEdit2[vCtlX] := [] ;it's possible that these 2 lines are unnecessary oEdit2[vCtlX, vCtlY] := hCtl vCount := A_Index - What I was doing here was: creating a key: oEdit[n], the nth Edi...
by jeeswg
18 Feb 2018, 15:50
Forum: Ask For Help
Topic: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones
Replies: 3
Views: 62

Re: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones

- The key facts are: how many Edit controls are there, and are their physical positions (relative to the top-left corner) constant, or do they move about. - Here is some relevant code: q:: ;refer to Edit controls by their hWnd or by their coordinates WinGet, hWnd, ID, A oEdit := {}, oEdit2 := {} Loo...
by jeeswg
17 Feb 2018, 18:43
Forum: Ask For Help
Topic: 400 arrays of 400 values Topic is solved
Replies: 2
Views: 52

Re: 400 arrays of 400 values Topic is solved

Here are two ideas that I might consider. Cheers. q:: ;create array / list contents vText := " ;continuation section ( abcd efgh ijkl mnop )" ;create array oArray := StrSplit(vText, "`n") ;list an example MsgBox, % SubStr(oArray[3], 3, 1) ;list contents vOutput := "" fo...
by jeeswg
17 Feb 2018, 17:59
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 304

Re: list of every object type/property/method

- @lexikos: Many thanks for your detailed response. - I read the documentation and thought: there are exactly 3 meta-functions, they are called when keys/methods aren't found. But your explanation makes a lot of sense. Also, changing(/declining) grammar standards in schools might lead people to miss...
by jeeswg
17 Feb 2018, 16:55
Forum: Ask For Help
Topic: HSB to HEX Topic is solved
Replies: 14
Views: 126

Re: HSB to HEX Topic is solved

- These calculations gave the same result as Photoshop, although, I just computed the numbers, I can't vouch for their accuracy. Multiplying by 255 didn't quite give the right answers, although multiplying by 256 did. - I'd been meaning to look at HSV at some point, so thanks for the reminder. - The...
by jeeswg
17 Feb 2018, 16:09
Forum: Ask For Help
Topic: Please help on RegExMatch
Replies: 3
Views: 66

Re: Please help on RegExMatch

Note: RegExMatch has a case-insensitive option: i.

Regular Expressions (RegEx) - Quick Reference
https://autohotkey.com/docs/misc/RegEx-QuickRef.htm#Options
by jeeswg
17 Feb 2018, 16:05
Forum: Ask For Help
Topic: HSB to HEX Topic is solved
Replies: 14
Views: 126

Re: HSB to HEX Topic is solved

Might come in handy at some point.

Code: [Select all]GeSHi © Codebox Plus

q:: ;dec2hex / hex2dec
;dec2hex
vNum := 255
MsgBox, % Format("0x{:X}", vNum)

;hex2dec
vHex := 0xFF
MsgBox, % vHex+0
return

Go to advanced search