Search found 490 matches

by toralf
30 minutes ago
Forum: Ask For Help
Topic: Set line and column in Notepad++
Replies: 1
Views: 26

Re: Set line and column in Notepad++

I found some functions hidden in TillaGoto and Scite4AHK. Nppm_HWND(){ return DllCall("FindWindow", "Str", "Notepad++", "Int", 0, "Ptr") } SCI_HWND(){ ControlGet hSci, Hwnd,, Scintilla1, % "ahk_id" Nppm_HWND() Return hSci } SCI_GETFIRSTVISI...
by toralf
Today, 11:25
Forum: Ask For Help
Topic: Set line and column in Notepad++
Replies: 1
Views: 26

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, "I...
by toralf
Yesterday, 08:38
Forum: Ask For Help
Topic: eliminate default values with regex
Replies: 1
Views: 51

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 cu...
by toralf
19 Sep 2018, 16:30
Forum: Ask For Help
Topic: find #Include line by regex
Replies: 4
Views: 113

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: 113

Re: find #Include line by regex

One solution that eliminates the comments is this

Code: [Select all]GeSHi © Codebox Plus

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: 113

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: 2
Views: 43

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: 122

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: 122

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 n...
by toralf
14 Sep 2018, 17:17
Forum: Ask For Help
Topic: Why use "hotkey, If"?
Replies: 4
Views: 122

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 ...
by toralf
08 Sep 2018, 17:16
Forum: Ask For Help
Topic: fast help pls
Replies: 3
Views: 34

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: 21
Views: 446

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: 1
Views: 130

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 ...
by toralf
03 Sep 2018, 13:40
Forum: Ask For Help
Topic: Recurse through treeview
Replies: 1
Views: 35

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: 35

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 := 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: 187

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]GeSHi © Codebox Plus

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: 53

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: 53

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: 94

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: 94

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...

Go to advanced search