Search found 776 matches

by FanaticGuru
18 Nov 2017, 02:38
Forum: Ask For Help
Topic: Send variables to another script Topic is solved
Replies: 7
Views: 142

Re: Send variables to another script Topic is solved

But the method I decided to go with is to create a hidden Gui that acts like a variable. You could use ShellBrowserWindow object instead of a hidden window. Through this object you may send even objects from one script to another: Interesting! lexikos' ObjRegisterActive method is also very cool. It...
by FanaticGuru
18 Nov 2017, 01:34
Forum: Ask For Help
Topic: merging 2 arrays
Replies: 7
Views: 120

Re: merging 2 arrays

Merging arrays: #singleInstance force #persistent #include *i <Lib_1> array1:=[1,2,3,4,5] array2:=[2,4,6] loop % array2.length() ; iterate through the array2 array1.push(array2.pop()) ; remove the last entry of array2 and put it at the end of array1 ; display array1 out:= for i,a in array1 out.=a m...
by FanaticGuru
17 Nov 2017, 20:02
Forum: Ask For Help
Topic: merging 2 arrays
Replies: 7
Views: 120

Re: merging 2 arrays

I cannot understand what you want enough to provide an answer. I don't understand what the number after the ; means in your final result of first post. Your second post has different format for your input data and a different output format of the results. You need to provide exact code examples of y...
by FanaticGuru
17 Nov 2017, 17:22
Forum: Scripts and Functions
Topic: [Library] GuiVar - Use Gui as Variable Between AHK Scripts
Replies: 44
Views: 5638

Re: [Library] GuiVar - Use Gui as Variable Between AHK Scrip

I have been fascinated by classes and look for every opportunity to put another one together. I was intrigued by FG's use of a hidden Gui for cross communication between scripts. Well, here is the functionality in the form of a class. It may or may not be useful, but the more I worked with it, the ...
by FanaticGuru
16 Nov 2017, 22:10
Forum: Ask For Help
Topic: Clueless and need help with a few old AHK codes
Replies: 6
Views: 79

Re: Clueless and need help with a few old AHK codes

⋅ 1. I see nothing glaring wrong. But cannot test. I would try with the latest version of AHK. ⋅ 2. That is not an AutoHotkey script. ⋅ 3. I have seen several launchers. You might be able to find a better, more up to date one. But I took out two periods on lines 1256 a...
by FanaticGuru
16 Nov 2017, 19:58
Forum: Ask For Help
Topic: Running an Excel macro
Replies: 7
Views: 195

Re: Running an Excel macro

But I cannot get it to work. Here is my code so far The code below works as I would expect: #F12:: IfWinNotActive, ahk_class XLMAIN { MsgBox % "Excel is not active. No action will be performed." Return } try oExcel := ComObjActive("Excel.Application") catch { MsgBox % "Unab...
by FanaticGuru
16 Nov 2017, 18:46
Forum: Ask For Help
Topic: AHK array to Excel rows/columns -- more speed!
Replies: 2
Views: 49

Re: AHK array to Excel rows/columns -- more speed!

sArray:=ComObjArray(12,length,width) for k, line in dataArr{ for i, cell in line{ sArray[k-1,i-1]:=cell } } oExcel.Worksheets(2).Range("A1:" num2letter(width) length).Value:=sArray This is lightning fast. It is creating a second array (dataArr and sArray) but I couldn't wish for any faste...
by FanaticGuru
16 Nov 2017, 18:17
Forum: Scripts and Functions
Topic: [Library] GuiVar - Use Gui as Variable Between AHK Scripts
Replies: 44
Views: 5638

Re: [Library] GuiVar - Use Gui as Variable Between AHK Scripts

UPDATED SCRIPT IN FIRST POST Added Class: Version 1.0 The class version is a little easier to use because of the class's dynamic Get and Set. Allows stuff like this: Script1.ahk ; Script1.ahk X := new GuiVar("Tree") X.Value := "Apple Script2.ahk ; Script2.ahk Y := new GuiVar("Tr...
by FanaticGuru
16 Nov 2017, 12:48
Forum: Ask For Help
Topic: Send variables to another script Topic is solved
Replies: 7
Views: 142

Re: Send variables to another script Topic is solved

How do I pass a variable from Script 1 into my main script and store it. Then pass a variable from Script 2 and store it in another variable? Below is a link to a library of functions called GuiVar that allows you to pass information from one script to another. https://autohotkey.com/boards/viewtop...
by FanaticGuru
15 Nov 2017, 19:34
Forum: Ask For Help
Topic: Associative Array or as an Object
Replies: 14
Views: 218

Re: Associative Array or as an Object

But if they literally only care about fields 13, 14, 18, and 19 then a pure RegEx solution will suffice. Hmmm, I supposed, the content of fields is not literally "Field1", "Field2" and so on... Yea, that would make it considerably easier. RegExMatch(InputData, "(?<13>Field1...
by FanaticGuru
15 Nov 2017, 16:52
Forum: Ask For Help
Topic: Associative Array or as an Object
Replies: 14
Views: 218

Re: Associative Array or as an Object

Is there any functional difference? I think both should be as easy to use in a function. Is it so? SirRFI approach creates a more complex data structure as it contains all the information produced by the Match Object option of RegExMatch . Things like Length of Value. That additional complexity can...
by FanaticGuru
15 Nov 2017, 16:29
Forum: Ask For Help
Topic: Associative Array or as an Object
Replies: 14
Views: 218

Re: Associative Array or as an Object

Below is my approach which is not as advanced However, if they can't, there is more simple approach: InputData = (LTrim Join Comments "01","Field1","Field2","Field3","Field4","Field5"`n "02","Field6","Field7",...
by FanaticGuru
15 Nov 2017, 14:23
Forum: Scripts and Functions
Topic: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
Replies: 97
Views: 19148

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

What if I added support for (some of) AutoHotkey's built-in variables , so you could just write A_MyDocuments anywhere in your snippet (or plugin) and it would be translated to the correct value. The paths could be useful. Maybe the time ones although you already have the DateTime=. If it is just t...
by FanaticGuru
15 Nov 2017, 13:42
Forum: Ask For Help
Topic: Associative Array or as an Object
Replies: 14
Views: 218

Re: Associative Array or as an Object

InputData = (LTrim Join Comment "01","Field1","Field2","Field3","Field4","Field5"`n "02","Field6","Field7","Field8","Field9","Field10"`n "03","Field11","F...
by FanaticGuru
14 Nov 2017, 16:03
Forum: Ask For Help
Topic: Move Excel "Find and Replace" Window
Replies: 6
Views: 66

Re: Move Excel "Find and Replace" Window

Is there a way to make it work without the vWinCriteria (IE. use a different WinWait criteria or just use sleep?) or is that the only way around this particular problem? Asking for my own education to better understand that line of the script. #IfWinActive, ahk_class XLMAIN ~^f:: WinWaitActive, Fin...
by FanaticGuru
14 Nov 2017, 13:32
Forum: Ask For Help
Topic: How to start a ahk script from a ppt macro
Replies: 4
Views: 64

Re: How to start a ahk script from a ppt macro

Hi all, I'm a new beginner at AHK. And I'm wondering how to start a AHK script at the end of a MS-PowerPoint macro. I hope somebody can help. Thx in advantage. Evert Jan You need to run something like this at the end of your macro. This is basically an example of how to make a VBA macro run a progr...
by FanaticGuru
14 Nov 2017, 02:26
Forum: Ask For Help
Topic: dict.txt file sorting
Replies: 7
Views: 108

Re: dict.txt file sorting

Amazing the help you guys give to people with no interest in learning anything (and its fairly obvious it is going to be used for s p a m purposes given the other posts by the OP on how to "paste" in whatsapp). If he even googled he would found various solutions already. I answer post for...
by FanaticGuru
14 Nov 2017, 02:11
Forum: Ask For Help
Topic: COM Outlook Events
Replies: 24
Views: 270

Re: COM Outlook Events

I used .SenderEmailAddress but it still returns the exchange server string. How do I modify this to retrieve the email address itself, without the Exchange Server address? Can't actual test it but you might try this: #F10:: olApp := ComObjActive("Outlook.Application") olEmail := olApp.Act...
by FanaticGuru
14 Nov 2017, 01:56
Forum: Ask For Help
Topic: dict.txt file sorting
Replies: 7
Views: 108

Re: dict.txt file sorting

Pretty much a textbook case for a custom sort function. vText := " ;continuation section ( two key AutoHotkey length what about me get find search long alphabet )" Sort, vText, F Sort_Custom MsgBox % vText Sort_Custom(a,b) { if (L := StrLen(a) - StrLen(b)) return L return a > b ? 1 : a < b...
by FanaticGuru
13 Nov 2017, 21:18
Forum: Scripts and Functions
Topic: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
Replies: 97
Views: 19148

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

Below is my first plugin for Lintalist. It produces an Ordinal Indicator for a number. Yay - first third party plugin :-) Would be useful for others as well I think, would you mind if I included in a future version? You are more than welcome to use any of my code anyway that you want. Just curious:...

Go to advanced search