Search found 45 matches

by sanmaodo
14 Jun 2023, 04:11
Forum: Ask for Help (v1)
Topic: How to modify html in MSHTML
Replies: 4
Views: 432

Re: How to modify html in MSHTML

hi, Rohwedder
I can read the contents of <Style>, but not write.

Code: Select all

MsgBox, % img.GetElementsByTagName("style")[0].InnerHtml
I want to change the heigth to 400.
by sanmaodo
13 Jun 2023, 09:20
Forum: Ask for Help (v1)
Topic: How to modify html in MSHTML
Replies: 4
Views: 432

How to modify html in MSHTML

How to modify image height in <Style> ? please help. html= ( <!DOCTYPE html> <html> <head> <style> img:hover { background-color: #888888; } img { height: 200px; width: auto; PADDING: 10px;} </style> </head> <body> <div> <IMG id=1 src="https://www.autohotkey.com/assets/images/features-bootstrap.png">...
by sanmaodo
19 May 2023, 03:57
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

Adding the following settings, the problem improved.

Code: Select all

mpv_set_opt_st(mpvhd, "input-default-bindings", "yes") 
mpv_set_opt_st(mpvhd, "input-vo-keyboard", "yes") 
mpv_set_opt_st(mpvhd, "osc", "yes")
by sanmaodo
17 May 2023, 05:06
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

Tulip, Do you know how to make mpv receive keypress information, and how to display osc panel?
These problems seem intractable with no solutions.
by sanmaodo
14 May 2023, 14:39
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

@Tulip Thank you so much!Everything is fine now. :P
by sanmaodo
14 May 2023, 12:17
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

@malcev Thanks!
I tried changing to strput, and tested all types of dlls in the website, but it still doesn't work,
by sanmaodo
14 May 2023, 06:49
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

@swagfag Thank you for your repl.
After changing as you said, there will no longer be an error message, but the image cannot be displayed normally.
by sanmaodo
13 May 2023, 14:46
Forum: Scripts and Functions (v2)
Topic: mpv.dll perfect picture/video control
Replies: 13
Views: 2222

Re: mpv.dll perfect picture/video control

There's something wrong with me. Can someone tell me why? :( 11.png ui := Gui() pic := ui.Add("Picture", "w300 h200") A_AhkDir := "D:\Downloads\mpv-dev-x86_64-v3-20230507-git-a1580b6" mpv := gif(pic.hwnd, 'loadfile "D:\Pictures\2200.gif" replace loop-file=inf') ui.show() return gif(hwnd, path) { ;ht...
by sanmaodo
06 Nov 2022, 21:44
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 20378

Re: [Library] cJson.ahk (version 0.4.1 pre-release)

@geek Thanks for giving me the answer so quickly, everything works fine now.
by sanmaodo
06 Nov 2022, 09:40
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 20378

Re: [Library] cJson.ahk (version 0.4.1 pre-release)

geek When GoogleTranslate runs, CJson does not work, Not sure why, but GoogleTranslate works. #NoEnv #Include <CJson.ahk> arr := {"1" : {"100" : {"k1" : "v1", "k2" : "v2"}}} f1:: ;normal text := JSON.Dump(arr) MsgBox, % text Return f2:: ;error str := GoogleTranslate("Hello, World!", "en", "zh-cn") ...
by sanmaodo
17 Oct 2022, 08:17
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 551
Views: 121605

Re: UIAutomation with a focus on Chrome

@Descolada Thanks! The script works perfectly now. :D
by sanmaodo
17 Oct 2022, 04:16
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 551
Views: 121605

Re: UIAutomation with a focus on Chrome

Descolada thank you very much! :D Following your instructions, I did it, is there any room for improvement in the code please? Example: Select the last tab with the same name. #include <UIA_Interface> #include <UIA_Browser> cUIA := new UIA_Browser("ahk_exe msedge.exe") n := cUIA.GetTabs(" | AutoHot...
by sanmaodo
15 Oct 2022, 13:04
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 551
Views: 121605

Re: UIAutomation with a focus on Chrome

There are 2 tabs with the same name. How to select the second TAB ?


@Descolada Thank you very much. The script helped me a lot .
by sanmaodo
17 Aug 2022, 08:41
Forum: 脚本函数
Topic: 基于Mediapipe的摄像头手势识别
Replies: 1
Views: 2306

Re: 基于Mediapipe的摄像头手势识别

没想到 ahk 还能实现这种功能,这很有用,感谢!
by sanmaodo
04 Aug 2022, 08:38
Forum: 脚本函数
Topic: 代码片段管理
Replies: 3
Views: 2940

Re: 代码片段管理

很好,谢谢!
by sanmaodo
17 Apr 2022, 05:27
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68579

Re: FindText tutorial

Finally a tutorial, thank Descolada.
by sanmaodo
08 Mar 2022, 01:55
Forum: Ask for Help (v1)
Topic: Gui +Resize - Caption Topic is solved
Replies: 4
Views: 3338

Re: Gui +Resize - Caption Topic is solved

@flyingDman Thanks a lot, solved my big trouble.

Go to advanced search