Search found 85 matches

by hyaray
14 Jan 2023, 08:57
Forum: Ask for Help (v2)
Topic: how to get current video filepath of PotPlayer?
Replies: 22
Views: 2068

Re: how to get current video filepath of PotPlayer?

wetware05 wrote:
10 Jan 2023, 10:08
Image
Thanks for you image, I got it.
The script GetOpenedFiles seems work well now. I only use one process of PotPlayer :D :D
by hyaray
10 Jan 2023, 01:13
Forum: Ask for Help (v2)
Topic: how to get current video filepath of PotPlayer?
Replies: 22
Views: 2068

Re: how to get current video filepath of PotPlayer?

@teadrinker
GetOpenedFiles is very powerfull, thanks very much!!
I got it! :clap: :clap: :clap:
by hyaray
09 Jan 2023, 23:37
Forum: Ask for Help (v2)
Topic: how to get current video filepath of PotPlayer?
Replies: 22
Views: 2068

Re: how to get current video filepath of PotPlayer?

@mikeyww
thank you very much.
I tried, if filepath is startwith \\xxxip\a.mp3, It won't save lnk to recent folder.
now I use Ctrl-o to get dir instead. but not so perfect.
by hyaray
09 Jan 2023, 22:39
Forum: Ask for Help (v2)
Topic: how to get current video filepath of PotPlayer?
Replies: 22
Views: 2068

how to get current video filepath of PotPlayer?

Hi, has anyone know this? thanks a lot!
1. WinGetTitle default is filename, is there an options to change to filepath?
2. any ahk methods to get filepath?
by hyaray
03 Jan 2023, 09:09
Forum: Ask for Help (v2)
Topic: Is there a way to check why my script crashed?
Replies: 1
Views: 263

Is there a way to check why my script crashed?

My script is 50+ MB of MEM, It crashed when I use Chrome DevTools Protocol sometimes.
I wanna know if there's a tool to tell me why it crashed, so I can fix my code.
Is it possible?

Best Regards!!
by hyaray
25 Dec 2022, 04:03
Forum: Ask for Help (v1)
Topic: ComObjActive("Powerpoint.application") error on just opened files
Replies: 2
Views: 511

ComObjActive("Powerpoint.application") error on just opened files

code as below, I want open a ppt file and goto slide 3, but ComObjActive takes 5 seconds on my PC. run("c:\1.pptx") WinWaitActive("ahk_class PPTFrameClass") ap := waitAP() ; wait 10 times on my computer, don't know what's the reason ap.slides(3).select return waitAP() { endTime := A_TickCount + 1000...
by hyaray
11 Dec 2022, 20:53
Forum: Wish List
Topic: add A_LineDir|A_UserProfile|A_LocalAppdata
Replies: 5
Views: 1409

Re: add A_LineDir|A_UserProfile|A_LocalAppdata

dir of A_LineFile
there are a lot A_xxx vars, A_UserProfile|A_LocalAppdata is much useful then some others.
so why not add these var in it.
by hyaray
08 Dec 2022, 19:11
Forum: Scripts and Functions (v2)
Topic: sendEx with smart "send sleep SendText"
Replies: 2
Views: 573

Re: sendEx with smart "send sleep SendText"

iseahound wrote:
07 Dec 2022, 12:30
You should check \d\d+ so Send 1 won't sleep.
use string will be ok. sendEx("1")
by hyaray
07 Dec 2022, 04:27
Forum: Scripts and Functions (v2)
Topic: sendEx with smart "send sleep SendText"
Replies: 2
Views: 573

sendEx with smart "send sleep SendText"

sendEx is not so strictly, but very very usefull. send("{tab}") sleep(100) SendText("string") ;simplify to sendEx("{tab}", 100, "string") sendEx(arr*) { for v in arr { if (v is integer) { sleep(v) } else { if (v ~= "i)^\{\w+(?: (?:down|up|\d+))?\}") ;case of {ctrl down}|{a 2}|{ctrl up} send(v) else...
by hyaray
06 Dec 2022, 22:14
Forum: AutoHotkey Development
Topic: some suggestion of v2-beta
Replies: 7
Views: 1935

Re: some suggestion of v2-beta

lexikos wrote:
07 Nov 2022, 17:27

Code: Select all

class Mapi extends Map {
    CaseSense := "Off"
}

m := Mapi("a", "alpha")
m["A"] := "apple"
MsgBox m["a"] " " Type(m) " " (m is Mapi)
if Mapi is buildin, I'm glad to use it,
I don't want to define it personally. these are basic use case.
by hyaray
06 Dec 2022, 21:10
Forum: Wish List
Topic: add A_LineDir|A_UserProfile|A_LocalAppdata
Replies: 5
Views: 1409

add A_LineDir|A_UserProfile|A_LocalAppdata

these usefull vars is omited all the time.
by hyaray
13 Nov 2022, 10:47
Forum: Bug Reports
Topic: [v2-beta15-BUG]StrCompare return 0 Topic is solved
Replies: 2
Views: 555

[v2-beta15-BUG]StrCompare return 0 Topic is solved

msgbox(StrCompare("", "a")) ;0 :wtf:
by hyaray
07 Nov 2022, 11:18
Forum: Bug Reports
Topic: [v2-bug]Last Found Window when use hwnd and object Topic is solved
Replies: 4
Views: 741

Re: [v2-bug]Last Found Window when use hwnd and object Topic is solved

#2: is activated but not shown? most people will not knows this, and I think this is not they want.
anyway, you decide
by hyaray
05 Nov 2022, 09:13
Forum: Bug Reports
Topic: [v2-bug]Last Found Window when use hwnd and object Topic is solved
Replies: 4
Views: 741

[v2-bug]Last Found Window when use hwnd and object Topic is solved

I'm very glad that hwnd and object with hwnd can use as WinTitle !! :xmas: 1. there's a bug of set Last Found Window. oGui := gui() oGui.AddText(, "text") oGui.show() if (1) WinWaitActive("ahk_id" . oGui.hwnd) ;OK else WinWaitActive(oGui) ;or WinWaitActive(oGui.hwnd) will not update Last Found Windo...
by hyaray
14 Oct 2022, 20:12
Forum: AutoHotkey Development
Topic: some suggestion of v2-beta
Replies: 7
Views: 1935

Re: some suggestion of v2-beta

Thank you very much, I never know Wish List before :yawn:
I write AutoHotkey more than 7 years, map needs CaseSense just on less than 5 times.
At least, should add a #MayCaseSense, Maybe this is my final struggle :yawn:
So I use https://github.com/thqby/AutoHotkey_H for transition.
by hyaray
14 Oct 2022, 11:08
Forum: AutoHotkey Development
Topic: some suggestion of v2-beta
Replies: 7
Views: 1935

some suggestion of v2-beta

I have some suggestion of v2-beta, :dance: 1. A_LineDir , A_UserProfile , A_LocalAppdata can be added. 2. map CaseSence should be default to false. 3. integer, string, array, map should add simple methods for use, maybe everyone have to write a lot lib . 4. IndexError make array hard to use 5. json ...
by hyaray
30 Sep 2022, 02:38
Forum: Scripts and Functions (v2)
Topic: String.ahk, Array.ahk, Misc.ahk
Replies: 34
Views: 5803

Re: String.ahk

great, BTW, is anywhere has "array.ahk", "object.ahk", "number.ahk"??
by hyaray
28 Sep 2022, 00:33
Forum: Bug Reports
Topic: v2 beta-10 bugs:tooltip level and Last Found WinTitle Topic is solved
Replies: 3
Views: 619

v2 beta-10 bugs:tooltip level and Last Found WinTitle Topic is solved

tooltip(,,, 20)
Error:Parameter #4 of ToolTip is invalid.

WinActive("A")
WinClose
by hyaray
23 Jan 2022, 19:37
Forum: Ask for Help (v1)
Topic: Logitech mouse didn't work at GetKeyState
Replies: 8
Views: 1085

Re: Logitech mouse didn't work at GetKeyState

It worked with v2 as written with my Logitech M705 mouse. As mikeyww pointed out before, each of your GetKeyState() functions are looking for MButton. Are you sure you didn't mean the following? MButton::tooltip(A_ThisHotkey . "`n" . GetKeyState("MButton", "P")) XButton1::tooltip(A_ThisHotkey . "`n...

Go to advanced search