Search found 217 matches

by Xeo786
21 Mar 2020, 01:23
Forum: Scripts and Functions
Topic: MS Outlook COM : Find and Extract attachments from Outlook folder
Replies: 4
Views: 966

Re: MS Outlook COM : Find and Extract attachments from Outlook folder

Hi Xeo786, Question, how did you get #3 to work " Make inverse loop so it will look for recent to past order and function `return` when first attachment found"? I cant seem to get that to work. Im trying to loop through the email for a specific attachment and return the most recent. If you could he...
by Xeo786
20 Feb 2020, 00:04
Forum: Scripts and Functions
Topic: Optical character recognition (OCR) with UWP API
Replies: 41
Views: 6806

Re: Optical character recognition (OCR) with UWP API

:?: does it support windows 7 or I am missing something :?: seems, I do not have `IAsyncInfo` :problem: Error: No valid COM object! Line# 103: { 104: DllCall("Combase.dll\WindowsCreateString", "wstr", string, "uint", StrLen(string), "ptr*", hString) 105: } 108: { 109: DllCall("Combase.dll\WindowsDel...
by Xeo786
01 Feb 2020, 00:36
Forum: Ask For Help
Topic: ComObjCreate("InternetExplorer.Application")
Replies: 4
Views: 515

Re: ComObjCreate("InternetExplorer.Application")

Hi all i use ComObjCreate("InternetExplorer.Application") i want change the value 112233 https://i.imgur.com/zmmkzbx.jpg anyone can help me? i tryed wb.document.getElementById("bikesice").value := "888888" but not work there should be ID for getElementById but this <input tag have no id but name so...
by Xeo786
31 Jan 2020, 00:35
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 1023

Re: Copyng an email from sent items folder into C:\Users\folder Topic is solved

I have encountered cases where it is not which is when I then started using the "Sort" method. Quote from MSDN: "The index for the Items collection starts at 1, and the items in the Items collection object are not guaranteed to be in any particular order." FG Fascinating..! I never had issue using ...
by Xeo786
30 Jan 2020, 01:47
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 1023

Re: Copyng an email from sent items folder into C:\Users\folder Topic is solved

@Xeo786 your script copies over the oldest email. Is it possible to copy over the newest sent? e.g. olItem := objFolder.items.Item(Newest) Appreciate your help with this J this will get you newest email from folder olItem := objFolder.items.Item( objFolder.items.count ) ; newest email from folder
by Xeo786
28 Jan 2020, 06:20
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 1023

Re: Copyng an email from sent items folder into C:\Users\folder Topic is solved

Let me know any suggestions of things to try.[/b] Cheers J this is tested code, outlook gona show pop up saying allow a program to access, https://images.guru/images/2020/01/28/Krts4.png olDoc := 4 ; Microsoft Office Word format (.doc) olHTML := 5 ; HTML format (.html) olICal := 8 ; iCal format (.i...
by Xeo786
28 Jan 2020, 04:26
Forum: Ask For Help
Topic: Help for IE page COM automation Topic is solved
Replies: 7
Views: 539

Re: Help for IE page COM automation Topic is solved

:think: input := IE.document.getElementsByTagName("TR") ; loop through list of <input> tags loop, % input.Length ;% Loop { ; find <input> tag by name if ( input[(A_index-1)].InnerTEXT = "0123456789" ){ ; change to InnerTEXT MsgBox FOUND Buttons := input[(A_index+1)].getElementsByTagName("a") ; this ...
by Xeo786
28 Jan 2020, 04:10
Forum: Ask For Help
Topic: Help for IE page COM automation Topic is solved
Replies: 7
Views: 539

Re: Help for IE page COM automation Topic is solved

problem, with this i found nothing :( you have posted same code but following code can also through same msgbox and you can also break while loop input := IE.document.getElementsByTagName("TR") While ( input[ A_Index - 1 ].InnerText != "0123456789" ) msgbox, tag found having % input[ A_Index - 1 ]....
by Xeo786
28 Jan 2020, 03:59
Forum: Ask For Help
Topic: Excel Undo Method
Replies: 2
Views: 401

Re: Excel Undo Method

actually when you make changes on sheet using COM its simply done and can only be undone if you preserve the previous state, and you can imagine how much detail you have to store per step, a excel cell has so many attrib / sub details like value formatting color borders, yah there is possibility but...
by Xeo786
28 Jan 2020, 03:38
Forum: Ask For Help
Topic: Help for IE page COM automation Topic is solved
Replies: 7
Views: 539

Re: Help for IE page COM automation Topic is solved

following code is supposed to look for InnerText having "0123456789" and click on 3rd tag which having href input := IE.document.getElementsByTagName("TR") While ( input[ A_Index - 1 ].InnerText != "0123456789" ) { input[ A_Index + 1].getElementsByTagName("a")[ 0 ].click() ; this is "<a" tag a and h...
by Xeo786
28 Jan 2020, 02:49
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 1023

Re: Copyng an email from sent items folder into C:\Users\folder Topic is solved

try something like, following code is not test so :mrgreen: try oOutlook := ComObjActive("Outlook.Application") catch { MsgBox, Could not find the Outlook application object. return } objFolder := oOutlook.Session.GetDefaultFolder(olFolderSentMail := 5) oOutlook.ActiveExplorer.CurrentFolder := objFo...
by Xeo786
25 Jan 2020, 05:09
Forum: Ask For Help
Topic: Function in external file with try/catch/Com Interface MUCH SLOWER
Replies: 22
Views: 1947

Re: Function in external file with try/catch/Com Interface MUCH SLOWER

So the issue here can be summarized: 1) The Excel update performed with try/catch inside the code in the same file updates extremely fast in the order of 10 ms tops per Excel COM Interface update. 2) The same exact code executed from an external .ahk function file (only difference) same amount of l...
by Xeo786
25 Jan 2020, 02:45
Forum: Ask For Help
Topic: Function in external file with try/catch/Com Interface MUCH SLOWER
Replies: 22
Views: 1947

Re: Function in external file with try/catch/Com Interface MUCH SLOWER

Every time you change single cell content in excel and is part of some function which makes excel to calculate and update results normally it does not take time but .. two conditions with I am familiar 1) your sheet might be huge 2) sheet consist function doing enormous calculation, with above condi...
by Xeo786
25 Jan 2020, 01:54
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 1565

Re: Get PDF full path Topic is solved

well ....! it has COM but.... as you said not like Acrobat COM access, AcroReader := ComObjCreate( "AxAcroPDFLib.AxAcroPDF" ) AcroReader.LoadFile("D:\test.pdf") msgbox, reader and open test.pdf but I do not know, it can get location of every file opened, so I looked and found nothing so far. Sorry ...
by Xeo786
25 Jan 2020, 01:33
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 1565

Re: Get PDF full path Topic is solved

Adobe Reader has no COM access like Acrobat. But you could have AHK constantly watch for the Save AS window and immediately close it or disable the Save button. FG well ....! it has COM but.... as you said not like Acrobat COM access, AcroReader := ComObjCreate( "AxAcroPDFLib.AxAcroPDF" ) AcroReade...
by Xeo786
23 Jan 2020, 04:10
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 1565

Re: Get PDF full path Topic is solved

I think it would only work with acrobat DC pro, I do not know that it will work with acrobat reader or not coz have never worked with reader AcroApp := ComObjCreate( "AcroExch.App" ) loop, % AcroApp.GetNumAVDocs { AcroAvDoc := AcroApp.GetAVDoc( a_index - 1 ) Title := AcroAvDoc.GetTitle objAcroPDDoc ...
by Xeo786
09 Jan 2020, 02:28
Forum: Offtopic
Topic: Flat Earth vs. Globe Earth
Replies: 92
Views: 32643

Re: Flat Earth vs. Globe Earth

suganm wrote:
09 Jan 2020, 01:27
they have meetings every Friday ......a bunch of crazy men and woman
I can only wish to have those meeting visited :problem:
by Xeo786
09 Jan 2020, 02:02
Forum: Ask For Help
Topic: Can't figure out how to "click" on this element by ID
Replies: 9
Views: 1375

Re: Can't figure out how to "click" on this element by ID

I played with these type of web pages built on anglerjs or connect with saps , where every time browser go tell you I am ready not busy, but loading is going one in back grounds and you face real pain in telling your script when this loading is done but there is few trick, image search is not reliab...
by Xeo786
09 Jan 2020, 01:33
Forum: Ask For Help
Topic: Yes, another post on working with pdf files ...
Replies: 5
Views: 1032

Re: Yes, another post on working with pdf files ...

You can take a look on my script which is about pdf stamp I posted in Scripts and Functions , It has many thing you may find useful like https://www.autohotkey.com/boards/viewtopic.php?f=6&t=71376 find the highest invoice number in the customer's invoice folder on my PC, then find that invoice numbe...

Go to advanced search