Search found 11 matches
- 14 Mar 2023, 16:35
- Forum: Scripts and Functions (v1)
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
- Replies: 668
- Views: 471757
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Thanks malcev and Gh0sTG0 , finally everything works, including this code if (Chromes := Chrome.FindInstances()) ChromeInst := {"base": Chrome, "DebugPort": Chromes.MinIndex()} ; or if you know the port: ChromeInst := {"base": Chrome, "DebugPort": 9222} if !(PageInst := ChromeInst.GetPage()) { Chrom...
- 10 Mar 2023, 16:20
- Forum: Scripts and Functions (v1)
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
- Replies: 668
- Views: 471757
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Yes, it works: ChromeInst := new Chrome(ChromeProfile, "https://www.google.com", "--remote-allow-origins=*") It works: if (Chromes := Chrome.FindInstances()) ChromeInst := {"base": Chrome, "DebugPort": Chromes.MinIndex()} ; or if you know the port: ChromeInst := {"base": Chrome, "DebugPort": 9222} U...
- 07 Dec 2022, 16:03
- Forum: Помощь
- Topic: Windows 10 заблокировала уведомления autohotkey? Topic is solved
- Replies: 3
- Views: 1941
Re: Windows 10 заблокировала уведомления autohotkey? Topic is solved
Сработало, спасибо!
- 07 Sep 2022, 06:55
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Hi, Maybe someone will be interested to know how to insert Cyrillic text in an ANSI encoded file using SCI_REPLACESEL You just need to change UTF-8 to CP1251. The code will look like this: SCI_REPLACESEL(hScintilla, text) { WinGet, PID, PID, ahk_id %hScintilla% size := StrPut(text, "CP1251") RB := n...
- 22 Jul 2022, 10:36
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Yes, it works for me tooScintilla also "supports" EM_REPLACESEL
- 21 Jul 2022, 14:46
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
All right, it works, thank you
- 21 Jul 2022, 12:43
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Great, it works! Thank you, teadrinker.
Just how do I make it work with Cyrillic, ANSI encoding?
Now this code:
is inserted:
Just how do I make it work with Cyrillic, ANSI encoding?
Now this code:
Code: Select all
SCI_REPLACESEL(hScintilla, "Борщ")
is inserted:
Code: Select all
Борщ
- 21 Jul 2022, 08:16
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
It's lib from here?
https://github.com/Ixiko/AHK-libs-and-classes-collection/blob/master/libs/g-n/NPPM.ahk
Unfortunately, it doesn't work for me.
Maybe this is a lib for AHK_V2? I have v 1.1.33
https://github.com/Ixiko/AHK-libs-and-classes-collection/blob/master/libs/g-n/NPPM.ahk
Unfortunately, it doesn't work for me.
Maybe this is a lib for AHK_V2? I have v 1.1.33
- 21 Jul 2022, 07:31
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Thanks, toralf, I'll try
- 07 Jul 2022, 01:23
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Tnank you, toralf.
I'm waiting.
I just used your code with StrPut added. But unfortunately, as I mentioned, it doesn't work
I'm waiting.
I just used your code with StrPut added. But unfortunately, as I mentioned, it doesn't work
- 05 Jul 2022, 05:31
- Forum: Ask for Help (v1)
- Topic: SCI_REPLACESEL for Notepad++ Topic is solved
- Replies: 19
- Views: 2800
Re: SCI_REPLACESEL for Notepad++ Topic is solved
Hi, toralf , When I run this code, only the first letter of the text 't' is inserted. What am I doing wrong? SCI_REPLACESEL("test") Return SCI_REPLACESEL(text){ hNpp := DllCall("FindWindow" , "Str", "Notepad++" , "Int", 0 , "Ptr") ControlGet hSci, Hwnd,, Scintilla1, % "ahk_id" hNpp NppPID := NPPM_PI...