Search found 549 matches

by toralf
21 Sep 2018, 11:25
Forum: Ask For Help
Topic: Set line and column in Notepad++
Replies: 3
Views: 323

Set line and column in Notepad++

Dear all, I look for a way to set the line and column in Notepad++ I know how to get the current: NPPM_GETCURRENTLINE(){ ; 4032 ; Returns the caret current position 0-based line return DllCall("SendMessage", "Ptr", Nppm_Hwnd(), "UInt", 4032 , "Int", 0, "Int", 0) } NPPM_GETCURRENTCOLUMN(){ ; 4033 ; R...
by toralf
20 Sep 2018, 08:38
Forum: Ask For Help
Topic: eliminate default values with regex
Replies: 1
Views: 170

eliminate default values with regex

I try to RemoveDefaultDefinitions from Parameters. But Can't create a needle that is robust or correct. ;Input >param1 := { 1:"Test" , "Key {2": "" } , Param3 := [ {"t,e[a]s:t{b}": {1:"t,e[a]s:t{b}","t,e[a]s:t{b}": [4 ] }}]< ;this is the current result >param1 .. --------------------------- , Param3...
by toralf
19 Sep 2018, 16:30
Forum: Ask For Help
Topic: find #Include line by regex
Replies: 4
Views: 279

Re: find #Include line by regex

Thanks a lot
by toralf
19 Sep 2018, 05:55
Forum: Ask For Help
Topic: find #Include line by regex
Replies: 4
Views: 279

Re: find #Include line by regex

One solution that eliminates the comments is this

Code: Select all

NeedleInclude = O)^\s*#Incl\s+(\*i )?(?P<Path>[^;]*)(\s+;(?P<Comment>.*))?
But it doesn't find the comments now...
by toralf
19 Sep 2018, 05:46
Forum: Ask For Help
Topic: find #Include line by regex
Replies: 4
Views: 279

find #Include line by regex

I would like to find the include line in a file and extract it's Information. I have the following needle, but the named subpattern Path contains the comment. How can this needle be improved? NeedleInclude = O)^\s*#Include\s+(\*i )?(?P<Path>.*)(\s+;(?P<Comment>.*))? Here a small example ( I had to a...
by toralf
16 Sep 2018, 10:39
Forum: Ask For Help
Topic: How do I send a text Hotkey to a Notepad++ window
Replies: 4
Views: 369

Re: How do I send a text Hotkey to a Notepad++ window

Why don’t you send the text of the hotstring directly ?
by toralf
16 Sep 2018, 03:25
Forum: Ask For Help
Topic: Why use "hotkey, If"?
Replies: 4
Views: 312

Re: Why use "hotkey, If"?

Custom function objects and classes are currently beyond my abilities.
A workaround to avoid too many variants could be a reload of the script after the hotkeys have changed.
by toralf
15 Sep 2018, 16:07
Forum: Ask For Help
Topic: Why use "hotkey, If"?
Replies: 4
Views: 312

Re: Why use "hotkey, If"?

I think you mean "latter" rather than "former", and If !(WinActive...) rather than If (WinActive...) . correct. IWhy would you ever use #If or #IfWinActive when you could use a normal If or If WinActive()? The answer is the same here. true Disabling a hotkey is not the same as sending it after it f...
by toralf
14 Sep 2018, 17:17
Forum: Ask For Help
Topic: Why use "hotkey, If"?
Replies: 4
Views: 312

Why use "hotkey, If"?

I came accross the command Hotkey, If, <Expression> . But when I used it, I started to wonder what the benefits are. This is what I initially coded. It is not functional since it is only a snip out of a larger code: #If GuisAreActive() #If GuisAreActive(){ global hGui Return (WinActive("ahk_id " Get...
by toralf
08 Sep 2018, 17:16
Forum: Ask For Help
Topic: fast help pls
Replies: 3
Views: 216

Re: fast help pls

Make the set timer line the first line in your code.
Currently that line never gets executed, since it is not inside any label or in the auto-exec section.
by toralf
06 Sep 2018, 15:36
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 24
Views: 1915

Re: Nothing.

Just my two cents :
I never had the need for a null so far.
Do I understand it right that “If 0”, “If False” and “If Null” would behave identical?
by toralf
06 Sep 2018, 09:08
Forum: Wish List
Topic: Improve Handling of BOLD for Treeview control
Replies: 3
Views: 703

Improve Handling of BOLD for Treeview control

While working with a treeview control, I realized, that handling BOLD is not as efficient as CHECKED or SELECTED or Expanded. a) For CHECKED and SELECTED two functions exist, to find the checked or the selected item: TV_GetNext([ItemID, "Checked | Full"]) and TV_GetSelection() No function exists tha...
by toralf
03 Sep 2018, 13:40
Forum: Ask For Help
Topic: Recurse through treeview
Replies: 1
Views: 127

Re: Recurse through treeview

I found the solution.
I had to use a while Loop instead of until. Or negate the Until Expression
by toralf
03 Sep 2018, 12:45
Forum: Ask For Help
Topic: Recurse through treeview
Replies: 1
Views: 127

Recurse through treeview

Hi, I can't figure out why this recursiv function doesn't Loop through the whole treeview. It gets stuck in an endless Loop between "One", "One.One" and "". Gui, Add, TreeView, r8 w100, Gui, Show p := TV_Add("one", 0) p := TV_Add("one.one", p) p := TV_Add("two", 0) p := TV_Add("three", 0) TVX_Walk(T...
by toralf
29 Aug 2018, 08:27
Forum: Ask For Help
Topic: IF statement does not work with 'AND' Topic is solved
Replies: 11
Views: 523

Re: IF statement does not work with 'AND' Topic is solved

Since you have parentheses you should not use the %%. (%xMouse%) refers to the adress of xMouse.

Code: Select all

If ((MouseX = xMouse) and (MouseY = yMouse) and (A_PriorKey = MButton))
by toralf
24 Aug 2018, 15:07
Forum: Ask For Help
Topic: Does someone habe TVX from majkinetor? Topic is solved
Replies: 1
Views: 154

Re: Does someone habe TVX from majkinetor? Topic is solved

Never mind, on the second page someone posted a modified Version of the module.
by toralf
24 Aug 2018, 14:51
Forum: Ask For Help
Topic: Does someone habe TVX from majkinetor? Topic is solved
Replies: 1
Views: 154

Does someone habe TVX from majkinetor? Topic is solved

I'm looking for the TVX module from majkinetor. The download link doesn't work anymore.
Does someone have it?
by toralf
21 Aug 2018, 16:34
Forum: Ask For Help
Topic: Wrapper for Notepad++ messages and notifications
Replies: 4
Views: 280

Re: Wrapper for Notepad++ messages and notifications

- @toralf: I would recommend mentioning any/all desired features explicitly. It could be a good checklist for a Notepad++ library and for other IDEs. Thanks jeeswg, my biggest dream is to create an AHK controlled project manager for notepad++. The integrated project views of notepad++ are way to si...
by toralf
21 Aug 2018, 16:16
Forum: Ask For Help
Topic: Wrapper for Notepad++ messages and notifications
Replies: 4
Views: 280

Re: Wrapper for Notepad++ messages and notifications

TheDewd wrote:FYI -- Notepad++ has an 'ActiveX Plugin' available for download.
Good idea, but you need to register the activeX for which You need admin rights AFAIK, which I do not have on my company pc...
by toralf
20 Aug 2018, 01:26
Forum: Ask For Help
Topic: Wrapper for Notepad++ messages and notifications
Replies: 4
Views: 280

Wrapper for Notepad++ messages and notifications

Dear all, I have been using PSPad in the past and would like to switch to notepad++. But since a few features are missing in notepad++ that I would need, i’m planing on automate Notepad++. But I’m not very good at messages . Therefore, I’m looking for wrappers or a class that I could use as a basis ...

Go to advanced search