Search found 76 matches

by Datapoint
23 Sep 2018, 14:42
Forum: Ask For Help
Topic: IniRead, Filename with A_Username in it
Replies: 3
Views: 754

Re: IniRead, Filename with A_Username in it

Code: Select all

DefaultTemplate:="C:\Users\%A_UserName%\AppData\Roaming\blah\Blee.blu"
MsgBox % DefaultTemplate
Transform, DefaultTemplate, Deref, % DefaultTemplate
MsgBox % DefaultTemplate
by Datapoint
03 Sep 2018, 19:35
Forum: Ask For Help
Topic: ahk: Excel Lastrow
Replies: 4
Views: 1022

Re: ahk: Excel Lastrow

Good Evening. have a curiosity when using this code to Loop in Excel to last row. My test Excel file has 3 rows but ahk is Looping until row 5I am new to ahk and using VBA in the past anyone know why lastrow is not correct ? Xl := ComObjActive("Excel.Application") Xl.Visible := True xlUp := -4162 F...
by Datapoint
30 Aug 2018, 21:59
Forum: Ask For Help
Topic: Loop with increments 1a, 1b, 1c, 2a, 2b, 2c, 3a etc
Replies: 5
Views: 1139

Re: Loop with increments 1a, 1b, 1c, 2a, 2b, 2c, 3a etc

Code: Select all

Loop, 500
{
    i := A_Index
    Loop, 3
    {
        ;Send % i . Chr(96 + A_Index)
        MsgBox % i . Chr(96 + A_Index)
    }
}
by Datapoint
28 Aug 2018, 11:58
Forum: Ask For Help
Topic: I don't know very well how to explain this in a title, basically I want to organize a list of words in a given way Topic is solved
Replies: 8
Views: 1140

Re: I don't know very well how to explain this in a title, basically I want to organize a list of words in a given way Topic is solved

SetBatchLines, -1 URLDownloadToFile, https://ia601506.us.archive.org/21/items/00230121/00230121.txt, %A_ScriptDir%\testText.txt FileRead, testText, %A_ScriptDir%\testText.txt FileDelete, %A_ScriptDir%\testText.txt Loop, Parse, testText, `n, `r { s .= "Line " A_Index "`r`n" thisLine := A_LoopField L...
by Datapoint
27 Aug 2018, 22:58
Forum: Ask For Help
Topic: I don't know very well how to explain this in a title, basically I want to organize a list of words in a given way Topic is solved
Replies: 8
Views: 1140

Re: I don't know very well how to explain this in a title, basically I want to organize a list of words in a given way Topic is solved

testText := " (Join`r`n aback|backwards|rearwards 1|2|3|4 forwards|ahead|before|afront|beyond|afore|onwards leave|forsake|desert|renounce|cease|relinquish )" Loop, Parse, testText, `n, `r { s .= "Line " A_Index "`n" thisLine := A_LoopField Loop, Parse, thisLine, | { s1 := A_LoopField Loop, Parse, t...
by Datapoint
26 Aug 2018, 18:56
Forum: Ask For Help
Topic: Looking for advice on Word COM issue when performing a replacement
Replies: 4
Views: 970

Re: Looking for advice on Word COM issue when performing a replacement

You get the object you want here: oWord := ComObjCreate("Word.Application") and here it will find the wrong object if another word window is already open: oWord := ComObjActive("Word.Application") You already have the correct 'oWord' from when it was created. Don't use ComObjActive. https://autohotk...
by Datapoint
22 Aug 2018, 21:33
Forum: Ask For Help
Topic: Issue retrieving results from RegExMatch Topic is solved
Replies: 2
Views: 606

Re: Issue retrieving results from RegExMatch Topic is solved

RegExMatch(vText, "\b\d{1,3}\.(\d{1,3})\.\d{1,3}\.\d{1,3}\b", OutputVar) MsgBox % OutputVar "`n" OutputVar1 ; Note: the objects returned by RegExMatch (in this case "OutputVar") are read-only. RegExMatch(vText, "O)\b\d{1,3}\.(\d{1,3})\.\d{1,3}\.\d{1,3}\b", OutputVar) MsgBox % OutputVar[0] "`n" Outp...
by Datapoint
24 Jul 2018, 00:16
Forum: Ask For Help
Topic: Condition that a "WORD" is inside a Matched "algorithm" on RegExMatch Operation Topic is solved
Replies: 11
Views: 1688

Re: Condition that a "WORD" is inside a Matched "algorithm" on RegExMatch Operation Topic is solved

Thank you very much Datapoint for a very clear explanation, That was amazing. Those methods are overwhelming. But I am going to stick on 1st option you showed because loops makes slower results If it only loops 1 or 2 times it might not be so bad. Right now I am going to suggest option#3 with if In...
by Datapoint
23 Jul 2018, 22:33
Forum: Ask For Help
Topic: Condition that a "WORD" is inside a Matched "algorithm" on RegExMatch Operation Topic is solved
Replies: 11
Views: 1688

Re: Condition that a "WORD" is inside a Matched "algorithm" on RegExMatch Operation Topic is solved

; Note the first "5656" block does not contain "prefab" but the second one does. Haystack = (Join`r`n } "5654" { "name" "Belt of the Gleaming Seal" "prefab" "wearable" "creation_date" "2013-11-06" "image_inventory" "econ/items/phantom_assassin/lodas_pa_set__belt/lodas_pa_set__belt" "item_descriptio...
by Datapoint
06 May 2018, 00:13
Forum: Ask For Help
Topic: #Include confusion
Replies: 4
Views: 924

Re: #Include confusion

After thinking a bit more about what you might be trying to do: docs links: https://autohotkey.com/docs/Functions.htm#Variadic https://autohotkey.com/docs/Functions.htm#VariadicCall First := ["I'm the First!"] Second := ["I'm the Second", "Also in the second"] Third := ["I'm the Third, well fourth"]...
by Datapoint
05 May 2018, 20:35
Forum: Ask For Help
Topic: #Include confusion
Replies: 4
Views: 924

Re: #Include confusion

:wave: Objects within objects? Here's a demo. docs link: https://autohotkey.com/docs/Objects.htm#Usage_Arrays_of_Arrays Test_This: ; #Include Setting.ahk Test := "Hello" First := ["I'm the First!"] Second := ["I'm the Second", "Also in the second"] Third := ["I'm the Third, well fourth"] ; Testing :...
by Datapoint
29 Apr 2018, 17:26
Forum: Ask For Help
Topic: Is it possible to make nested properties? Topic is solved
Replies: 4
Views: 1065

Re: Is it possible to make nested properties? Topic is solved

GollyJer wrote:I'd like to be able to call Texty.SelectedText and Texty.SelectedText.Length.
I don't think that is possible because that would require the key 'SelectedText' to refer to an object and text at the same time. You could settle for Texty.SelectedText.Text and Texty.SelectedText.Length.
by Datapoint
15 Apr 2018, 13:29
Forum: Ask For Help
Topic: ComObjCreate while busy not working
Replies: 2
Views: 728

Re: ComObjCreate while busy not working

I had this when I switched to a new OS. I seem to remember it was related to security settings in IE. https://stackoverflow.com/questions/6661005/error-the-object-invoked-has-disconnected-from-its-clients-automate-ie-8-wit#6676547 https://stackoverflow.com/questions/12965032/excel-vba-controlling-ie...
by Datapoint
07 Apr 2018, 09:45
Forum: Ask For Help
Topic: Using DDE with AHK from Excel
Replies: 1
Views: 498

Re: Using DDE with AHK from Excel

Hi Alex, This was not tested, but I think translating the VBA to AHK is fairly easy. Excel needs to be running already. /* ~VBA~ Sub Kapell(control As IRibbonControl) On Error GoTo bom Dim lngChannel As Long lngChannel = DDEInitiate(App:="Kapell", Topic:="SYSTEM") DDEExecute Channel:=lngChannel, Str...
by Datapoint
23 Mar 2018, 09:07
Forum: Ask For Help
Topic: Horizontal scroll for MS Word Topic is solved
Replies: 6
Views: 1824

Re: Horizontal scroll for MS Word Topic is solved

Even better just hold SHIFT and scroll ze wheel....... ~LShift & WheelUp:: ; Scroll left. ControlGetFocus, fcontrol, A Loop 5 ; <-- Increase or decrease this value to scroll faster or slower. ComObjActive("Word.application").ActiveWindow.SmallScroll(0,0,0,1) return ~LShift & WheelDown:: ; Scroll ri...

Go to advanced search