Search found 88 matches

by songdg
14 Oct 2019, 04:41
Forum: Ask For Help
Topic: How to detect an unpredictable pop-up window
Replies: 7
Views: 457

Re: How to detect an unpredictable pop-up window

Thanks for your help. Since it takes nearly 3 hours to finish the loop, it seems SetTimer is not suitable inside a loop. You set the timer to execute every 5 seconds (or however often you want) Checking for any of your popups should be very lightweight and take less than 1ms so while your main loop...
by songdg
01 Oct 2019, 21:32
Forum: Ask For Help
Topic: How to detect an unpredictable pop-up window
Replies: 7
Views: 457

Re: How to detect an unpredictable pop-up window

Thanks for your help. Since it takes nearly 3 hours to finish the loop, it seems SetTimer is not suitable inside a loop.
by songdg
30 Sep 2019, 23:42
Forum: Ask For Help
Topic: How to detect an unpredictable pop-up window
Replies: 7
Views: 457

Re: How to detect an unpredictable pop-up window

Take a look at the #1 example for SetTimer Thanks, but I don't know where to place the SetTimer code in the loop.I tried something below, but seems not working. loop, % counter { SetTimer, CloseMailWarnings, 250 return FindText(A) do something } CloseMailWarnings: WinClose, window_A return
by songdg
30 Sep 2019, 11:42
Forum: Ask For Help
Topic: How to detect an unpredictable pop-up window
Replies: 7
Views: 457

How to detect an unpredictable pop-up window

I use FindText to find some patterns and click on them in a loop to do some boring stuff, normally it works perfectly, except occasionally an window pop up and bolcks the patterns causing the loop cann't continue.I wonder if there is a way to detect the window when it pop up simply close it.
by songdg
28 Aug 2019, 02:18
Forum: Ask For Help
Topic: a problem about open excel file
Replies: 1
Views: 163

a problem about open excel file

FileSelectFile, SelectedFile, 3, , Open a file, Excel File (*.xls; *.xlsx) if SelectedFile = ExitApp objExcel := ComObjCreate("Excel.Application") objWorkbook := objExcel.Workbooks.Open(SelectedFile) I used to the code to read excel file, but recently my system(win7 32bit) broken then I make a new o...
by songdg
30 Jul 2019, 04:00
Forum: Ask For Help
Topic: Find text on a webpage (IE)
Replies: 9
Views: 659

Re: Find text on a webpage (IE)

teadrinker wrote:
29 Jul 2019, 04:22
Did you specify url of the page, which is already opened? Show your code.
yes, I just chang the url nothing else.
by songdg
29 Jul 2019, 01:37
Forum: Ask For Help
Topic: Find text on a webpage (IE)
Replies: 9
Views: 659

Re: Find text on a webpage (IE)

I used your code, it just opening another IE ignoring the one already exist.
by songdg
28 Jul 2019, 21:24
Forum: Ask For Help
Topic: Find text on a webpage (IE)
Replies: 9
Views: 659

Re: Find text on a webpage (IE)

What if find text on an already exist IE.
by songdg
17 Jun 2019, 01:57
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 860

Re: Is it possible to use printscreen to save an image Topic is solved

If I want to use Gdip.ahk to select a rectangle area of the screen manually and save it as an image, how to do that, thanks. I just posted a script here that has that written into it. https://www.autohotkey.com/boards/viewtopic.php?f=6&t=60949 It only draws on the main monitor, but can be tweaked t...
by songdg
13 Jun 2019, 20:38
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 860

Re: Is it possible to use printscreen to save an image Topic is solved

If I want to use Gdip.ahk to select a rectangle area of the screen manually and save it as an image, how to do that, thanks.
by songdg
12 Jun 2019, 20:19
Forum: Ask For Help
Topic: How to select a rectangle area of the screen and save as an image
Replies: 1
Views: 196

How to select a rectangle area of the screen and save as an image

I want to use Gdip.ahk to select a rectangle area of the screen manually and save as an image.
by songdg
12 May 2019, 21:37
Forum: Ask For Help
Topic: How to detect if a webpage is change
Replies: 4
Views: 417

Re: How to detect if a webpage is change

This might also be relevant: #Persistent GUI, Add, ActiveX, vwb w400 h400, Shell.Explorer wb.Navigate("https://duckduckgo.com/") while (wb.busy || wb.readyState <> 4) sleep, 100 ComObjConnect(wb, {BeforeNavigate2: "onBeforeNavigate2"}) GUI, Show, w400 h400 return onBeforeNavigate2(_p*) { ; BeforeNa...
by songdg
12 May 2019, 21:37
Forum: Ask For Help
Topic: How to detect if a webpage is change
Replies: 4
Views: 417

Re: How to detect if a webpage is change

tank wrote:
10 May 2019, 08:09
wait for page to load was answered here
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64206

i suggest use image search to detect if it changed
Yes, this is maybe the best way. Thanks!
by songdg
10 May 2019, 01:47
Forum: Ask For Help
Topic: How to detect if a webpage is change
Replies: 4
Views: 417

How to detect if a webpage is change

I use Internet Explorer, I want to know if there is a way to detect the webpage is changed and fully loaded.For example, I click on one link, then the page's contents is different from previous.
by songdg
26 Apr 2019, 01:44
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 860

Re: Is it possible to use printscreen to save an image Topic is solved

I use Gdip.ahk by tic to save the screenshot as file. btw, you can use other Hotkey, not just PrintScreen #Include Gdip.ahk PrintScreen:: CurrentDate := A_YYYY "-" A_MM "-" A_DD CurrentTime := A_Hour "-" A_Min "-" A_Sec "." A_MSec Screenshot(CurrentDate "_" CurrentTime ".png") Return Screenshot(Out...
by songdg
26 Apr 2019, 01:42
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 860

Re: Is it possible to use printscreen to save an image Topic is solved

Here's a script I wrote that does just that ^q:: sleep, 100 send {PrintScreen} sleep, 500 run MSPaint Sleep, 1000 Send, #{Up} Sleep, 500 Mouseclick, left, 250, 250, 5 Sleep, 200 send ^v sleep, 500 Send ^s Random, filename, 10000, 99999 Sleep, 500 Send %filename% Sleep, 500 Send ^l Sleep, 200 Send, ...
by songdg
26 Apr 2019, 01:39
Forum: Ask For Help
Topic: A problem about conbine two dictionarys Topic is solved
Replies: 2
Views: 236

Re: A problem about conbine two dictionarys Topic is solved

Odlanir wrote:
25 Apr 2019, 06:34

Code: Select all

MsgBox % key "=" address[key] "=" value
Thanks you very much.
by songdg
25 Apr 2019, 05:47
Forum: Ask For Help
Topic: A problem about conbine two dictionarys Topic is solved
Replies: 2
Views: 236

A problem about conbine two dictionarys Topic is solved

phone := {} address := {} name1 := "Jo" name2 := "Tim" address1 := "NewYork" address2 := "London" phone1 := 123 phone2 := 456 phone[name1] := phone1 phone[name2] := phone2 address[name1] := address1 address[name2] := address2 [b]For key, value in phone MsgBox %key% = address[%key%] = %value%[/b] I ...
by songdg
22 Apr 2019, 07:27
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 860

Is it possible to use printscreen to save an image Topic is solved

I want to use printscreen key to capture the screen and then save an image file.
by songdg
18 Apr 2019, 00:32
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 385
Views: 111759

Re: FindText - Capture screen image into text and then find it Topic is solved

@feiyueThanks for your patience, this tool is wonderful and with increasing improvement.

Go to advanced search