Search found 26 matches

by Martin
07 Jan 2020, 11:01
Forum: Ask For Help
Topic: Voice recognition to AHK
Replies: 13
Views: 1023

Re: Voice recognition to AHK

I found my files :)
Oh, yes, it was an interesting project!
They are mixed and disorganized, but I remember the project.

You need Python27 and a lot of modules to install at command line.
If you are a beginner, I do not advise you to take the python way.....
by Martin
07 Jan 2020, 10:27
Forum: Ask For Help
Topic: Voice recognition to AHK
Replies: 13
Views: 1023

Re: Voice recognition to AHK

I've done some tests in the past with python and autohotkey. Python with SpeechRecognition. Maybe you will look at https://pypi.org/project/SpeechRecognition/ Something like a voice assistant... Basically, he listens all the time, all the words, then he sends them to goole for recognition, and if he...
by Martin
07 Jan 2020, 08:03
Forum: Ask For Help
Topic: Hikvision alertStream
Replies: 1
Views: 131

Re: Hikvision alertStream

I tried this, but the ahk script runs continuously in the background, and I cannot access the text transmitted by NVR. Or I don't know how to do it.... :headwall: u = http://admin:[email protected].168.1.200:8000/ISAPI/Event/notification/alertStream s := "test.txt" _download(u,s) Msgbox exitapp return _downl...
by Martin
07 Jan 2020, 07:43
Forum: Ask For Help
Topic: Hikvision alertStream
Replies: 1
Views: 131

Hikvision alertStream

I have a Hikvision NVR and I try to access the stream of motion alerts so I can use it with autohotkey. The flow can be accessed from Chrome browser with : admin:[email protected].168.1.200:8000/ISAPI/Event/notification/alertStream This starts an endless download in Chrome, in a temporary file not yet closed...
by Martin
09 Dec 2019, 10:48
Forum: Ask For Help
Topic: Can a key name in the object name be replaced with a variable?
Replies: 1
Views: 166

Re: Can a key name in the object name be replaced with a variable?

Interesting !
This bellow doesn't work

Code: Select all

test := network.[relay].ch
But this one (without the first point) WORKS !

Code: Select all

test := network[relay].ch
Doesn't look weird? :wtf:
by Martin
09 Dec 2019, 10:21
Forum: Ask For Help
Topic: Can a key name in the object name be replaced with a variable?
Replies: 1
Views: 166

Can a key name in the object name be replaced with a variable?

Can't get this little script to work. Can a key name in the object name be replaced with a variable? network := {} network["BA", "ch"] := "000" network["GA", "ch"] := "123" network["WA", "ch"] := "111" Msgbox % "network.BA.ch = " network.BA.ch "`n" . "network.GA.ch = " network.GA.ch "`n" . "network....
by Martin
06 Dec 2019, 14:37
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Re: Variable as variable name Topic is solved

Works very well!
teadrinker thank you very much for your trick :thumbup: !!
by Martin
06 Dec 2019, 14:33
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Re: Variable as variable name Topic is solved

I tried these below:

Code: Select all

	return % %res%
	return %res%
	return res
Result: "QA", but not "000".
by Martin
06 Dec 2019, 14:25
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Re: Variable as variable name Topic is solved

I think I'm making a mistake, but I don't know where.... It wont work like this: QA := 000 WA := 123 GB := 222 LIST := "QA,WA,GB" msgbox % test(LIST)[1] test(LIST){ Global res := {} split := StrSplit(LIST, ",") Loop % split.MaxIndex() { ;res[A_index] := % %split[A_index]% res[A_index] := % split[A_i...
by Martin
06 Dec 2019, 14:14
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Re: Variable as variable name Topic is solved

I'm sorry, it actually works, but not as I expected...
Let's say that "Loop" is inside a function and instead of "Msgbox" I have a "Return res".
Then it won't work.
by Martin
06 Dec 2019, 13:52
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Re: Variable as variable name Topic is solved

Unfortunately, it doesn't work :(
Its the same..
by Martin
06 Dec 2019, 12:00
Forum: Ask For Help
Topic: Variable as variable name Topic is solved
Replies: 16
Views: 1086

Variable as variable name Topic is solved

I have the following code: QA := 000 WA := 123 GB := 222 LIST := "QA,WA,GB" split := StrSplit(LIST, ",") Loop % split.MaxIndex() { ;res = %split[A_index]% ;res = % split[A_index] ;res = split[A_index] ;res := %split[A_index]% ;res := % split[A_index] res := split[A_index] Msgbox % res } I want to ge...
by Martin
03 Dec 2019, 11:09
Forum: Ask For Help
Topic: AHKhttp - HTTP Server.
Replies: 7
Views: 411

Re: AHKhttp - HTTP Server.

Using ahk as an http server :lol: :lol: Anyway, I think I found it. I replaced For each, Pair in StrSplit(req.body,"&") { Part := StrSplit(Pair, "=") HttpReqBodyArray.Push([Part[1], Part[2]]) } UserLogin := HttpReqBodyArray[1,2] UserPass := HttpReqBodyArray[2,2] with req.queries["username"] req.que...
by Martin
03 Dec 2019, 07:00
Forum: Ask For Help
Topic: AHKhttp - HTTP Server.
Replies: 7
Views: 411

AHKhttp - HTTP Server.

I'm playing with AHKhttp - HTTP Server ( https://www.autohotkey.com/boards/viewtopic.php?f=6&t=4890 ) The example posted there with the "Login" page works well. But when I tried to write the following link directly localhost:8000/page?username=admin&password=1234 I get the following message "Wrong u...
by Martin
30 Nov 2019, 16:54
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

Yes, I also noticed your edits earlier :) Works very well without UnhookWinEvent(), too . I returned to the value you said "0x800B -> EVENT_OBJECT_LOCATIONCHANGE". Because I also tried 0x8002 -> EVENT_OBJECT_SHOW, but it doesn't display the first notification received, I don't know why. But neither ...
by Martin
30 Nov 2019, 08:25
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

I made great progress, thanks for codes, guys ! :thumbup: rommmcek , you illuminated my mind, I forgot about "Events".. As for the code, I made some minor changes: - I replaced "0x800B -> EVENT_OBJECT_LOCATIONCHANGE" with 0x8002 -> EVENT_OBJECT_SHOW "; - "WinGetTitle, Title,%" ahk_id "hwnd" didn't w...
by Martin
29 Nov 2019, 16:08
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

I've made some progresses, not many, but hey, its better then nothing.. I noticed that all toasts, no matter what application they come from, use the same hWnd. hWnd which is only seen through AccViewer (basic or v2). I understand there are some problems with capturing toast's hwnd "ShellExperienceH...
by Martin
29 Nov 2019, 08:41
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

Thanks jeeswg for suggestions, I modified my script for testing and also tried some combinations. Unfortunately, my test is a failure : I re-checked the toast's hwnd, with AccViewer . It is "0x301D0". Then I ran the script below. And ... detects many hwnds, but there is no "0x301D0" in the list. I c...
by Martin
29 Nov 2019, 04:58
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

I have tested different combinations between : "MyWindowTitle" "ahk_id 0x301D0" "ahk_class Windows.UI.Core.CoreWindow" "ahk_exe ShellExperienceHost.exe" #Include Acc.ahk DetectHiddenText, On q:: ;=============== TEST ==================== message_test:=[] ;message_test_1 <=== OK oAcc := Acc_Get("Obje...
by Martin
28 Nov 2019, 17:55
Forum: Ask For Help
Topic: AccViewer and toast notification
Replies: 10
Views: 1126

Re: AccViewer and toast notification

I succeeded in something... I wrote down and use hwnd of Telegram notification toast, that I got with AccViewer. Then, I ran the script below. When notification received via Telegram appears, I press "q" and display everything I want on the screen. But its one more problem: Telegram hwnd window chan...

Go to advanced search