Search found 900 matches

by FanaticGuru
15 Feb 2018, 15:25
Forum: Ask For Help
Topic: Outlook M.Reply Help
Replies: 4
Views: 62

Re: Outlook M.Reply Help

That's fantastic and worked perfectly - but there is a problem with adding a : olReplyAllItem.body := To the script, as this replaces the whole thread. Is there a way to keep the thread I'm replying to and add a reply as I would a normal 'reply' email? Thanks again, You just need to put the existin...
by FanaticGuru
15 Feb 2018, 13:36
Forum: Ask For Help
Topic: Best practice ? Read variable from other scripts
Replies: 17
Views: 236

Re: Best practice ? Read variable from other scripts

... You could remove the method callfunction and add another method that only calls a specific function. That way you already limit which functions can be called... great thanks, and here it is: fnReceive_wordlistAddress := Func("Receive_wordlistAddress").Bind(1) ObjRegisterActive(fnRecei...
by FanaticGuru
15 Feb 2018, 02:08
Forum: Ask For Help
Topic: export excel cell as pic
Replies: 5
Views: 79

Re: export excel cell as pic

Here is the basics of one way of doing it. xlApp := ComObjActive("Excel.Application") xlSheet := xlApp.ActiveSheet xlArea := xlSheet.Range("B2:C3") xlArea.CopyPicture xlChart := xlSheet.ChartObjects.Add(0,0, xlArea.Width, xlArea.Height) xlChart.Chart.Paste xlChart.Chart.Export(A_...
by FanaticGuru
15 Feb 2018, 00:37
Forum: Ask For Help
Topic: Best practice ? Read variable from other scripts
Replies: 17
Views: 236

Re: Best practice ? Read variable from other scripts

After I discovered Lexikos' ObjRegisterActive, everything else including my own hidden GUI solution seems like a hack. COM was specifically designed for applications to communicate with each other and ObjRegisterActive provides a way to tap into that. Example: ;ObjReg1 #Persistent ; Create an Object...
by FanaticGuru
14 Feb 2018, 23:59
Forum: Ask For Help
Topic: Read memory and offsets Topic is solved
Replies: 3
Views: 71

Re: Read memory and offsets Topic is solved

If you ever need to find a dynamic base address, read memory values other than UInts, or wish to read pointers in a single line, then this memory class can help. https://github.com/Kalamity/classMemory Mainly as just a shoutout and thank you to RHCP, I also use classMemory and highly recommend it. FG
by FanaticGuru
14 Feb 2018, 13:26
Forum: Ask For Help
Topic: Outlook M.Reply Help
Replies: 4
Views: 62

Re: Outlook M.Reply Help

Here is an example: F12:: olApp := ComObjActive("Outlook.Application") try olItem := olApp.ActiveWindow.CurrentItem catch olItem := olApp.ActiveExplorer.Selection.Item(1) if (olItem.Class = 43) olMailItem := olItem else { MsgBox Mail Item Not Current or Selected return } olReplyAllItem := ...
by FanaticGuru
13 Feb 2018, 04:54
Forum: Ask For Help
Topic: Insert a block in AutoCAD with specific number of loops and wait for the user interaction first
Replies: 16
Views: 193

Re: Insert a block in AutoCAD with specific number of loops and wait for the user interaction first

That's really wonderful to know that AHK can use the VBA although that I am not doing well at it but can understand the process and the way the program runs and I was not encouraged to learn it further since its not going to be supported by Autodesk with AutoCAD anymore as known for all. I am good ...
by FanaticGuru
13 Feb 2018, 00:30
Forum: Ask For Help
Topic: Insert a block in AutoCAD with specific number of loops and wait for the user interaction first
Replies: 16
Views: 193

Re: Insert a block in AutoCAD with specific number of loops and wait for the user interaction first

If you want to delve into the magical world of COM, the code below will demonstrate how to create a block and insert it into the current drawing. ; Create AutoCAD Application object of currently running AutoCAD program acApp := ComObjActive("AutoCAD.Application") ; Create Default Point Str...
by FanaticGuru
12 Feb 2018, 14:22
Forum: Ask For Help
Topic: Listview from GUI to Email
Replies: 7
Views: 119

Re: Listview from GUI to Email

Thank you! Searched around, but did not find Outlook for free, Outlook Express seems to be free, but will Outlook Express work with ComObj? ( I haven´t MS Office on this computer) A new mail client has appeared on Windows 10. it's just called "e-post" on Swedish (Maybe e-mail on english?)...
by FanaticGuru
11 Feb 2018, 01:45
Forum: Ask For Help
Topic: Listview from GUI to Email
Replies: 7
Views: 119

Re: Listview from GUI to Email

What is needed to use Outlook, if I want to test your example above? (Do I need an Outlook account? Office package? or...) You need Outlook installed on your computer. That usually means Microsoft Office although it is possible to just install Outlook. And since I used ComObjActive("Outloo...
by FanaticGuru
10 Feb 2018, 01:44
Forum: Ask For Help
Topic: Listview from GUI to Email
Replies: 7
Views: 119

Re: Listview from GUI to Email

If you use Outlook then you could use COM to create a table in an email. It is not that difficult (if you know all the secret words and magic numbers). Here is a basic example of creating a table in an Outlook email: olApp := ComObjActive("Outlook.Application") olMailItem := olApp.CreateIt...
by FanaticGuru
09 Feb 2018, 17:18
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 161

Re: RegEx issue. Of course.... Topic is solved

Well, could RegExReplace use AnimSeq in a loop and set a loop index variable with first match and remove that match from AnimSeq? Like Loop { FoundString := command%a_index% := regexre(AnimSeq, exp) StringReplace, AnimSeq, FoundString,, 0 ; here would be FoundString reformated to use the end value ...
by FanaticGuru
09 Feb 2018, 16:09
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 161

Re: RegEx issue. Of course.... Topic is solved

Quick (possibly) helpful note: RegExReplace can be used here. RegExReplace(str,regExpression,,cnt) msgbox % cnt It is a good point that RegExReplace can be used to "count" the occurances of a pattern in a string. But as not to side track those with limited knowledge RegExReplace cannot ca...
by FanaticGuru
09 Feb 2018, 15:51
Forum: Ask For Help
Topic: Starting a new project, but with which AHK version?
Replies: 7
Views: 128

Re: Starting a new project, but with which AHK version?

I would agree with the logic of jeeswg and use the latest version of AHK v1.1 but with an eye to using more AHK v2 friend techniques for easy conversion if wanted at a later date. The biggies are always use := for assignments and = for comparisons. And if a built-in function is available always use ...
by FanaticGuru
09 Feb 2018, 15:33
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 161

Re: RegEx issue. Of course.... Topic is solved

Here is a more specific example of what you seem to want. AnimSeq=[Move X 500] [Move Y 300] [Action Pause 3000] [Move X 500] [Move Y 300] [Action Pause 3000] [Action StartAnim AnimSeq2] Needle := "U)\[(Action|Move) (.*)\]" Sequence := {} X:=1 while (X := RegExMatch(AnimSeq, Needle, Command...
by FanaticGuru
09 Feb 2018, 01:31
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 161

Re: RegEx issue. Of course.... Topic is solved

RegExMatch does not work the way you think it does. It does not return MatchCount because it only ever matches once and it returns the position of that one match. Within that one match it might capture multiple subpatterns. To find multiple matches of the needle pattern you have to use multiple RegE...
by FanaticGuru
08 Feb 2018, 16:48
Forum: Ask For Help
Topic: Reference Excel Totals Rows by Column Name?
Replies: 2
Views: 47

Re: Reference Excel Totals Rows by Column Name?

I wish this would work but it doesn't: t.ListColums(colName).TotalsRowRange.Formula := "=SUBTOTAL(109,[colName])" Any ideas? Again, I'm not trying to use the column's index number here... I have a column name in hand and want to apply the formulas based on know column names. You don't nor...
by FanaticGuru
08 Feb 2018, 13:59
Forum: Gaming
Topic: Could you get banned using AHK script? Topic is solved
Replies: 6
Views: 118

Re: Could you get banned using AHK script? Topic is solved

Just as a general life rule: If it feels like you might be doing something bad, then you probably are. And doing bad tends to cause bad things to happen in the long term. But on the other hand, short term rewards often feel the most rewarding and sometimes the enjoyment of the short term reward is w...
by FanaticGuru
08 Feb 2018, 01:01
Forum: Ask For Help
Topic: [MS Outlook] Changing the sender address conditionally
Replies: 1
Views: 28

Re: [MS Outlook] Changing the sender address conditionally

Outlook version: 2010 OS: Windows 7 This is what I would like to do using AHK and COM: 1. If the content of the currenly replying mail (RE: ) has the text "Best regards" in it, change the sender(FROM: ) e-mail to abc@abc.com 2. Else change the sender e-mail to xyz@abc.com FYI, sender e-ma...
by FanaticGuru
07 Feb 2018, 12:36
Forum: Ask For Help
Topic: Problem in making the text bold in MS Word? Please Help.
Replies: 8
Views: 117

Re: Problem in making the text bold in MS Word? Please Help.

sir, could you please make me understand these codes- MSWord_BoldReplace(Arr*) ; this is Variadic function i think. Please tell me why we need to use variadic function here? { wdApp := ComObjActive("Word.Application") wdApp.Selection.Find.ClearFormatting wdApp.Selection.Find.Replacement.C...

Go to advanced search