Search found 57 matches

by wer
14 Jul 2023, 05:25
Forum: Ask for Help (v1)
Topic: How to quickly switch system DPI?
Replies: 1
Views: 206

How to quickly switch system DPI?

thanks in advance.
by wer
20 May 2023, 07:21
Forum: Wish List
Topic: gonna need more built-in functions Topic is solved
Replies: 2
Views: 1039

gonna need more built-in functions Topic is solved

so dear mr.boiler and mr.lexikos
have you considered converting some popular scripts from the v1 era
into built-in functions in v2, so that we can completely abandon the use of v1?
by wer
06 Apr 2023, 08:40
Forum: Wish List
Topic: wish UrlDownloadToFile could specify the name automately
Replies: 2
Views: 760

Re: wish UrlDownloadToFile could specify the name automately

Fwlink applies to linkid s in an internal Microsoft database, see here . There's millions of linkids, you could set up a crawler to build a reference list, it will be only be good for a limited time as MS are likely to re-use links from decommissioned products. right sir, thanks for reply, got a so...
by wer
06 Apr 2023, 07:58
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

Re: how to get the original file name from UrlDownloadToFile? Topic is solved

malcev k i think i got it thank you sir get_origin_name(url) { get_retry_time:=1 loop, { try { whr:=ComObjCreate("WinHTTP.WinHTTPRequest.5.1") whr.Open("GET", url) whr.SetRequestHeader("Range", "bytes=0-0") whr.Send() String:=whr.GetAllResponseHeaders() Array :=StrSplit(String, "filename=") file_na...
by wer
06 Apr 2023, 06:53
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

Re: how to get the original file name from UrlDownloadToFile? Topic is solved

I did not compare them, but to get filename from links like this We need start download. https://drive.google.com/uc?id=1RG3CAPiwiFlFATUlIIwhk0RrbEU4PgVP&export=download thanks a lot for help sir still want to know how to catch the error if url is unavailable do not want script suspend when error o...
by wer
06 Apr 2023, 06:44
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

Re: how to get the original file name from UrlDownloadToFile? Topic is solved

@malcev
wow, you are real pro
so which is better sir?
method 2 seems faster than 1
by wer
06 Apr 2023, 06:05
Forum: Wish List
Topic: wish UrlDownloadToFile could specify the name automately
Replies: 2
Views: 760

wish UrlDownloadToFile could specify the name automately

wish if i run the command:
UrlDownloadToFile, https://go.microsoft.com/fwlink/?linkid=2186537
it could download file as "dotnetfx35.exe" automately and set it to variable
@boiler @Lexikos is it possible got my wish sir?
by wer
06 Apr 2023, 05:39
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

Re: how to get the original file name from UrlDownloadToFile? Topic is solved

@mikeyww
dear mr.mikey, is there any possible way without reading url itself?
by wer
06 Apr 2023, 05:36
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

Re: how to get the original file name from UrlDownloadToFile? Topic is solved

@garry
right, thank you sir, its a good example, but
how to deal someting like this:
https://go.microsoft.com/fwlink/?linkid=2186537
even no file name inside
by wer
05 Apr 2023, 03:06
Forum: Ask for Help (v1)
Topic: how to get the original file name from UrlDownloadToFile? Topic is solved
Replies: 10
Views: 632

how to get the original file name from UrlDownloadToFile? Topic is solved

sometimes download url is not include the file name,
and dont want to specify the name before download,
so is there possible to get the downloaded file name?
thanks for help in advance
by wer
25 Mar 2023, 12:15
Forum: Ask for Help (v1)
Topic: help with 2d array please Topic is solved
Replies: 8
Views: 434

Re: help with 2d array please Topic is solved

@flyingDman
got one more question sir,
how to deal with the duplicate item in original data?
if original data like this:
a 1
b 2
c 3
b 4
a 5
the match result will be like:
a 15
b 24
c 3
b 24
a 15
and the script seems stuck in the loop...
by wer
24 Mar 2023, 23:25
Forum: Ask for Help (v1)
Topic: help with 2d array please Topic is solved
Replies: 8
Views: 434

Re: help with 2d array please Topic is solved

Put unit := "" at the top of the loop but you might want to consider something like this: xl := ComObjActive("excel.application") if !xl.activecell.value return FileRead, txt_content, % A_ScriptDir "\xl2clip.txt" arr := {} for x,y in strsplit(txt_content,"`n","`r") arr[strsplit(y,a_tab).1] := strsp...
by wer
24 Mar 2023, 22:03
Forum: Ask for Help (v1)
Topic: help with 2d array please Topic is solved
Replies: 8
Views: 434

Re: help with 2d array please Topic is solved

flyingDman thank you sir, you are always so kind i rewrite my code with your teaching, and the original data is like this: a 1 b 2 c 3 but i got this after running search: c 3 b 32 a 321 could you please tell me whats wrong did i make? get_unit() { excel:=comobjactive("excel.application") excel.act...
by wer
24 Mar 2023, 21:28
Forum: Ask for Help (v1)
Topic: help with 2d array please Topic is solved
Replies: 8
Views: 434

Re: help with 2d array please Topic is solved

This page has a handy search form. I used it and found a few ideas: https://www.autohotkey.com/boards/viewtopic.php?p=448398#p448398 https://www.autohotkey.com/boards/viewtopic.php?p=481787#p481787 https://www.autohotkey.com/boards/viewtopic.php?p=135359#p135359 right, dear mr.mikeyww, with your pr...
by wer
24 Mar 2023, 05:49
Forum: Ask for Help (v1)
Topic: help with 2d array please Topic is solved
Replies: 8
Views: 434

help with 2d array please Topic is solved

got a excel file like this:
a 1
b 2
c 3
how to convert it into a txt file,
and search the given content ?
for example, give the "c" could got the "3"
thanks in advance
by wer
02 Feb 2023, 06:31
Forum: Ask for Help (v1)
Topic: Can I write this better? Topic is solved
Replies: 8
Views: 828

Re: Can I write this better? Topic is solved

you could use while loop to do it whatever times you want:

Code: Select all

max:=2
now:=0
while (now<max)
{
Send, +{Tab}
Sleep, 100
now++
}
Send, +{Tab}
or just ordinary loop with break:

Code: Select all

max:=2
now:=0
loop
{
if now=max
   break
Send, +{Tab}
Sleep, 100
now++
}
Send, +{Tab}
by wer
02 Feb 2023, 06:18
Forum: Ask for Help (v1)
Topic: counting a number of pixels together 'an object' with a certain color on screen
Replies: 13
Views: 1118

Re: counting a number of pixels together 'an object' with a certain color on screen

is your "arrows" all have the same size and shape? may be we could say those look like "→" if so, maybe you can split the screen to many smaller areas, depend on your need then use pixelsearch these areas one by one, with x y offsets once you got the matched coordinate on the most left of "→" you ca...

Go to advanced search