Search found 602 matches

by toralf
11 Apr 2019, 14:04
Forum: Ask For Help
Topic: parsing AutoHotkey scripts
Replies: 13
Views: 1081

Re: parsing AutoHotkey scripts

continuation sections and hotkeys/hotstrings Are not really a problem I believe. But currently commands and variables are not identified. Commands might be easy since they are either followed by a space or comma and something that is not an operator. To identify variables seems to me more difficult ...
by toralf
11 Apr 2019, 00:28
Forum: Ask For Help
Topic: parsing AutoHotkey scripts
Replies: 13
Views: 1081

Re: parsing AutoHotkey scripts

In which respect do you want to receive comments?
I believe the code is well commented.
The only thing that the code doesn’t do it to identify user variables
by toralf
03 Apr 2019, 15:35
Forum: Ask For Help
Topic: Aligning text in gui
Replies: 4
Views: 300

Re: Aligning text in gui

You could use a relative offset with y+30 or yp+30 I assume
by toralf
01 Apr 2019, 12:05
Forum: Ask For Help
Topic: Lightroom AHK commission - coders needed
Replies: 2
Views: 357

Re: Lightroom AHK commission - coders needed

What software is needed for testing the script(s)?
I assume Lightroom. Any other required?
Do you consider the code proprietary? Or is it open source?
by toralf
31 Mar 2019, 16:00
Forum: Ask For Help
Topic: GUI: input to text file?
Replies: 8
Views: 451

Re: GUI: input to text file?

Iirc there is something like a z order. You might search for this on this forum.
by toralf
30 Mar 2019, 14:41
Forum: Ask For Help
Topic: No IfIn for a simple array?
Replies: 21
Views: 718

Re: No IfIn for a simple array?

You will have to use the xml values as keys in the AHK associated Array
by toralf
30 Mar 2019, 08:04
Forum: Ask For Help
Topic: No IfIn for a simple array?
Replies: 21
Views: 718

Re: No IfIn for a simple array?

If the check (IfIn) is required more often. You can have the normal Array as you have right now and create a Value Array where the values are the keys. Then you can check in the values Array. Of course, you’ Have to keep the two arrays in sync.

Ps: the value Array could have the xml path as values
by toralf
30 Mar 2019, 07:33
Forum: Ask For Help
Topic: No IfIn for a simple array?
Replies: 21
Views: 718

Re: No IfIn for a simple array?

If you could put the values as keys (they must be unique) then you could use .HasKey()
by toralf
11 Mar 2019, 01:55
Forum: Ask For Help
Topic: SCI_REPLACESEL for Notepad++
Replies: 6
Views: 347

Re: SCI_REPLACESEL for Notepad++

Thanks for the tip. It worked.

Code: Select all

BufferSize := StrPut(Text, "UTF-8")
	vOutput := ""
	VarSetCapacity(vOutput, BufferSize+1, 0)
	StrPut(Text, &vOutput, "UTF-8")
by toralf
11 Mar 2019, 01:46
Forum: Ask For Help
Topic: SCI_REPLACESEL for Notepad++
Replies: 6
Views: 347

Re: SCI_REPLACESEL for Notepad++

how could i do this?
by toralf
11 Mar 2019, 01:39
Forum: Ask For Help
Topic: SCI_REPLACESEL for Notepad++
Replies: 6
Views: 347

Re: SCI_REPLACESEL for Notepad++

I tried to write to memory, but i didn't succeed. A selection gets replaced, but with nothing. SCI_REPLACESEL(text){ hNpp := DllCall("FindWindow" , "Str", "Notepad++" , "Int", 0 , "Ptr") ControlGet hSci, Hwnd,, Scintilla1, % "ahk_id" hNpp NppPID := NPPM_PID() hProcess := DllCall("OpenProcess" , "UIn...
by toralf
10 Mar 2019, 14:19
Forum: Ask For Help
Topic: SCI_REPLACESEL for Notepad++
Replies: 6
Views: 347

Re: SCI_REPLACESEL for Notepad++

It does work when i send numbers

Code: Select all

SCI_GotoLine(Line){
  DllCall("SendMessage", "Ptr", SCI_HWND(), "UInt", 2024 , "Int", Line - 1, "Int", 0)
}
SCI_GOTOPOS(Pos){
  DllCall("SendMessage", "Ptr", SCI_HWND(), "UInt", 2025 , "Int", Pos, "Int", 0)
}
by toralf
10 Mar 2019, 14:07
Forum: Ask For Help
Topic: SCI_REPLACESEL for Notepad++
Replies: 6
Views: 347

SCI_REPLACESEL for Notepad++

I would like to replace the selction in notepad++ with a text. SCI_REPLACESEL(text){ ;2170 ; SCI_REPLACESEL(<unused>, const char *text) ; The currently selected text between the anchor and the current position is replaced by the 0 terminated text string. If the anchor and current position are the sa...
by toralf
09 Mar 2019, 05:06
Forum: Editors
Topic: Setup Notepad++ for AutoHotkey
Replies: 119
Views: 228886

Re: Setup Notepad++ for AutoHotkey

Iirc the 64Bit version of n++ had some issues. Don’t know if this is still the case. But it might be worth a trial with the 32 Bit Version.
I have an older 32 bit version of n++ with the debugger running. But do not know the version out of my head
by toralf
08 Mar 2019, 05:20
Forum: Ask For Help
Topic: Object-based Arrays - (Pseudo-arrays) - Basic
Replies: 21
Views: 1255

Re: Object-based Arrays - (Pseudo-arrays) - Basic

My feeling is you have more trouble with the msgbox then with the creation of the Array
by toralf
08 Mar 2019, 05:14
Forum: Ask For Help
Topic: Object-based Arrays - (Pseudo-arrays) - Basic
Replies: 21
Views: 1255

Re: Object-based Arrays - (Pseudo-arrays) - Basic

I do not understand how you want your pseudo Array be replaced by an Array or object (which is an associated Array). Could you please elaborate? We may be able to help you better if we understand what you exactly want to achieve?
by toralf
08 Mar 2019, 05:11
Forum: Ask For Help
Topic: Object-based Arrays - (Pseudo-arrays) - Basic
Replies: 21
Views: 1255

Re: Object-based Arrays - (Pseudo-arrays) - Basic

Array := Array()[/c] oArray := oArray() Give me an error message .: " Call to nonexistent function the left “Array” is a variable, thus you can name it as you want. The right “Array()” is a build in function. Hence you can not name it differently. Therefore oArray() is a nonexisting function unless...
by toralf
07 Mar 2019, 14:18
Forum: Ask For Help
Topic: Debugging tutorials
Replies: 24
Views: 1589

Re: Debugging tutorials

SpeedMaster wrote:
07 Mar 2019, 13:24
Debugging object :geek:
There is also a function called objecttree or objtree somewhere on the forum that allows to browse through an object in a GUI. I have found it very useful.
by toralf
07 Mar 2019, 14:15
Forum: Ask For Help
Topic: Debugging tutorials
Replies: 24
Views: 1589

Re: Debugging tutorials

The Debugger in AHKStudio (and also Scite4AutoHotkey) provides step by step execution. [...] However it only works on the auto-execution section. iirc you can set breakpoints in other areas of the script as well and then start from there with step by step analysis. Hence it also works outside of th...

Go to advanced search