Search found 1397 matches

by FanaticGuru
14 Feb 2020, 10:48
Forum: Ask For Help
Topic: load a page's Html into a string
Replies: 2
Views: 140

Re: load a page's Html into a string

Hi, I came acros some code posted by @boiler which I found very helpful which loads a page's Html into a string instead of in a browser. WebObj := ComObjCreate("WinHttp.WinHttpRequest.5.1") WebObj.Open("GET", "https://www.autohotkey.com/boards/") WebObj.Send() HtmlText := WebObj.ResponseText RegExM...
by FanaticGuru
06 Feb 2020, 14:19
Forum: Ask For Help
Topic: Extracting info from PDF fields and copying into text fields Topic is solved
Replies: 8
Views: 316

Re: Extracting info from PDF fields and copying into text fields Topic is solved

Alas I have the free version. 1. Do you know how to call the free version as comobject? The free version does not have much in the way of COM object interface. There are some very limited stuff that mostly have to do with navigating a PDF. There might be a possibility of getting information about f...
by FanaticGuru
05 Feb 2020, 13:48
Forum: Ask For Help
Topic: Extracting info from PDF fields and copying into text fields Topic is solved
Replies: 8
Views: 316

Re: Extracting info from PDF fields and copying into text fields Topic is solved

Is there a possible way to get info from a PDF with autohotkey? e.g. COM Object for PDF files? If you have the full paid version of Adobe Acrobat, you can do this through COM objects. He is some example code that I already had that has to do with fields: F12:: AFormAut := ComObjCreate("AFormAut.App...
by FanaticGuru
03 Feb 2020, 14:22
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 428

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

olMailItems := olFolder.Items.Restrict("@SQL=""http://schemas.microsoft.com/mapi/proptag/0x0037001f"" = '" sSubject "'") again thanks for code above I find it very useful but I am curious about the url will it remain same? if yes why ? That is not a true url, that is just Microsoft's crazy naming c...
by FanaticGuru
03 Feb 2020, 13:44
Forum: Ask For Help
Topic: move an email to another folder
Replies: 5
Views: 225

Re: move an email to another folder

https://ibb.co/4NwDBKR Does not work, either with folder or folders. I can use your script above and it works on the selected item, so I created a loop with it, and it runs fine, after my script runs, I then run the loop from your script. But this gives me another error. https://ibb.co/fdjb89q but ...
by FanaticGuru
30 Jan 2020, 13:51
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 428

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

this will get you newest email from folder olItem := objFolder.items.Item( objFolder.items.count ) ; newest email from folder It is worth noting that 'newest' is somewhat ambiguous here. This will get the last item in the collection which is often the item with the newest receive date and time but ...
by FanaticGuru
30 Jan 2020, 13:34
Forum: Ask For Help
Topic: move an email to another folder
Replies: 5
Views: 225

Re: move an email to another folder

I tried for about an hour or so now to implement this but somehow I don't understand how to integrate this into my script. So I defined my destination folder olDestFolder := account.Folders("completed") You have this in your original code eMail := account.Session.GetDefaultFolder(6).Items.Item(A_In...
by FanaticGuru
29 Jan 2020, 20:41
Forum: Ask For Help
Topic: move an email to another folder
Replies: 5
Views: 225

Re: move an email to another folder

I need the email to be moved into another folder Here is an example of moving emails to a folder. F12:: olApp := ComObjCreate("Outlook.Application") olNameSpace := olApp.GetNamespace("MAPI") olDestFolder := olNameSpace.Folders("[email protected].com").Folders("Deleted Items") olEmails := olApp.ActiveExpl...
by FanaticGuru
29 Jan 2020, 15:27
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 428

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

1. both scripts work but save the email one directory level up For example it will save the file in Documents rather than 18-reports PDFs C:\Users\JK\Documents\18-reports PDFs\ FYI I have shared network drive which i dont want to share on here. So rather than C:\Users really it reads xxxxxxx\Users ...
by FanaticGuru
28 Jan 2020, 16:41
Forum: Ask For Help
Topic: Copyng an email from sent items folder into C:\Users\folder Topic is solved
Replies: 11
Views: 428

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

what I am trying to do 1. Get a specific email from the sent items (investigation reports complete.msg) 2. Hit the shortcut and it will copy this into a folder in my c drive e.g. C:\Users\JK\finished report emails F5:: olApp := ComObjCreate("Outlook.Application") olNameSpace := olApp.GetNamespace("...
by FanaticGuru
27 Jan 2020, 15:50
Forum: Ask For Help
Topic: Publishing Excel sheet to .html using VBA/COM Topic is solved
Replies: 3
Views: 188

Re: Publishing Excel sheet to .html using VBA/COM Topic is solved

Here is a more exact translation. xlApp := ComObjActive("Excel.Application") xlHtmlStatic := 0, xlSourceAutoFilter := 3 PublishObject := xlApp.ActiveWorkbook.PublishObjects.Add(xlSourceAutoFilter, "D:\mailsend-go-dir\123.htm", "Sheet1",, xlHtmlStatic, "123_4257") PublishObject.Publish(true) PublishO...
by FanaticGuru
27 Jan 2020, 14:14
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 934

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 FanaticGuru
24 Jan 2020, 21:36
Forum: Ask For Help
Topic: Grid of Checkboxes Topic is solved
Replies: 8
Views: 514

Re: Grid of Checkboxes Topic is solved

Just a proof of concept: This is pretty nifty. I like the effect of how rows are highlighted. It looks like it would be pretty easy to modify so that you can only pick one item from each row which makes for a nice multiple choice questionnaire type effect. I am squirreling this code away for a rain...
by FanaticGuru
24 Jan 2020, 18:39
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 934

Re: Get PDF full path Topic is solved

He is an example of how to block Adobe Reader from using Save As. WinHook.Event.Add(0x0010, 0x0010, "SaveAsDialog",, "Save As ahk_class #32770") ; EVENT_SYSTEM_DIALOGSTART = 0x0010 SaveAsDialog(hWinEventHook, event, hwnd, idObject, idChild, dwEventThread, dwmsEventTime) { WinGet, ProcessName, Proces...
by FanaticGuru
24 Jan 2020, 14:22
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 934

Re: Get PDF full path Topic is solved

meanprogram wrote:
23 Jan 2020, 23:15
Its just Adobe reader, i want to restrict users from saving pdf files opened from a certain location

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
by FanaticGuru
23 Jan 2020, 17:11
Forum: Ask For Help
Topic: Get PDF full path Topic is solved
Replies: 11
Views: 934

Re: Get PDF full path Topic is solved

So any other way to get fullbpath of all the opened pdf files. This is going to have to be an application specific solution. As in what PDFs are open by xxxxx application. There are dozens of applications that could have a PDF 'open'. I mean you can 'open' a PDF with NotePad. It just does not displ...
by FanaticGuru
22 Jan 2020, 17:22
Forum: Ask For Help
Topic: W10 Create a link on the desktop and select it? Topic is solved
Replies: 7
Views: 361

Re: W10 Create a link on the desktop and select it? Topic is solved

Try this code: file := "D:\Test Me.txt" SplitPath, file, fileName FileCreateShortcut, % file, % A_Desktop . "\" . fileName . ".lnk" Desktop_SFV := GetDesktopIShellFolderViewDual() Folder := Desktop_SFV.Folder FolderItem := Folder.ParseName(fileName . ".lnk") WinActivate, ahk_class Progman Desktop_S...
by FanaticGuru
21 Jan 2020, 16:13
Forum: Ask For Help
Topic: Grid of Checkboxes Topic is solved
Replies: 8
Views: 514

Re: Grid of Checkboxes Topic is solved

Is there a way to setup a listview so that there is a checkbox in each cell, not just at the beginning of each row? Not exactly what you asked for. It is not a listview but I already had it so here is an example of a bunch of checkboxes in a GUI. Day_Names :=["Su","Mo","Tu","We","Th","Fr","Sa"] for...
by FanaticGuru
21 Jan 2020, 15:53
Forum: Ask For Help
Topic: Output Each Element in an Array Onto Its Own Line in 1 MessageBox Topic is solved
Replies: 5
Views: 221

Re: Output Each Element in an Array Onto Its Own Line in 1 MessageBox Topic is solved

Here is a really great function from the String Things library. /* ; inspired by Lexikos ExploreObj() PrintArr Prints the layout of an array (in text form) so that you can easily see the layout of it. array = The input array. Don't add the []'s. depth = How deep should we go if there are arrays with...
by FanaticGuru
17 Jan 2020, 14:58
Forum: Ask For Help
Topic: Private Script ?
Replies: 9
Views: 520

Re: Private Script ?

sorry, but could you show me what the code would look like from UUID? Have the User run this script and send you the information: MsgBox % UUID() Clipboard := UUID() ; put UUID on clipboard for easy pasting ; Function UUID ; returns UUID member of the System Information structure in the SMBIOS info...

Go to advanced search