Search found 61 matches
- 02 Feb 2023, 14:48
- Forum: Ask for Help (v1)
- Topic: Write MultiLine To INI File
- Replies: 1
- Views: 404
Write MultiLine To INI File
I'm trying to figure out how to write a multiline variable to an ini file, but cant figure out how the syntax. Atm it just returns the first line in the variable. Thanks! The Code : #NoEnv #SingleInstance Force ML :=" ( {} hkkhk gjgj [] :;.,""@'# )" IniWrite, %ML%, D:\Project\VSync\Launch\Test\myfil...
- 15 Oct 2022, 11:54
- Forum: Ask for Help (v1)
- Topic: Detect Items Selected In TreeView Topic is solved
- Replies: 2
- Views: 301
Re: Detect Items Selected In TreeView Topic is solved
Found it:
Code: Select all
/::
{
GetSelectedTextID:=TV_GetSelection()
GetSelectedText:=TV_GetText(OutputVar, GetSelectedTextID)
msgbox % OutputVar
}
Return
- 15 Oct 2022, 11:40
- Forum: Ask for Help (v1)
- Topic: Detect Items Selected In TreeView Topic is solved
- Replies: 2
- Views: 301
Detect Items Selected In TreeView Topic is solved
Hi! I'm trying to figure out how to detect items selected in a treeview. Ie if a person selects tree2 child1, I need to detect both the "tree 2" selected & its "child 1". I've tried googling this, but cant find much info ... Thanks! My code : Gui, Add, TreeView Tree1 := TV_Add("First parent") Tree1C...
- 25 Nov 2021, 08:28
- Forum: Ask for Help (v1)
- Topic: How To Remove Graves Accent From String
- Replies: 3
- Views: 700
How To Remove Graves Accent From String
Hi, Ive tried to remove graves accent from string
StringReplace, Contents, Contents,',, All
but its clearly not working ... whats the correct syntax ...
Thanks!
StringReplace, Contents, Contents,',, All
but its clearly not working ... whats the correct syntax ...
Thanks!
- 25 Nov 2021, 08:15
- Forum: Ask for Help (v1)
- Topic: StrSplit Strips Decimal Points From Array
- Replies: 1
- Views: 413
StrSplit Strips Decimal Points From Array
Hi, im trying to figure out how create an array, but strsplit removes all the decimal points ... no idea why & nothing in google Thanks! My Code : #SingleInstance, force Detectxs:=1 Goto m1 m1: { ;FileRead, Contents, D:\12\Temp\1.txt Contents = ['2.48800000', '40.10000000']['2.48700000', '300.200000...
- 19 Nov 2021, 13:43
- Forum: Ask for Help (v1)
- Topic: Cant Figure Out How To Combine Variables Extracted From An Array
- Replies: 3
- Views: 464
Re: Cant Figure Out How To Combine Variables Extracted From An Array
Works great thanks!
- 19 Nov 2021, 12:45
- Forum: Ask for Help (v1)
- Topic: Cant Figure Out How To Combine Variables Extracted From An Array
- Replies: 3
- Views: 464
Cant Figure Out How To Combine Variables Extracted From An Array
Hi, Im trying to remove all words containing UP & Down in an array, but i cant get the results to combine into a new variable ... So basically remove any words with up ie 'ETHUPUSDT' or down from the array, & then copy the processed array to the clipboard Thanks! #SingleInstance, force string := "DO...
- 18 Nov 2021, 17:42
- Forum: Ask for Help (v1)
- Topic: Convert Decimal Integer to String
- Replies: 1
- Views: 425
Convert Decimal Integer to String
Hi, im trying to set an editbox with decimal points but the editbox keeps rounding them up ... The only work around i can think of, is to convert it to a string, but cant find any info on how to ... Ive tried DivideBuyPriceBy100=%DivideBuyPriceBy100%, but the editbox keeps rounding up, when i send t...
- 16 Nov 2021, 11:14
- Forum: Ask for Help (v1)
- Topic: Ini File Created in AHK In Python Is Unreadable
- Replies: 2
- Views: 388
Re: Ini File Created in AHK In Python Is Unreadable
Thanks, works great!
- 16 Nov 2021, 06:23
- Forum: Ask for Help (v1)
- Topic: Ini File Created in AHK In Python Is Unreadable
- Replies: 2
- Views: 388
Ini File Created in AHK In Python Is Unreadable
Hey, Im trying to read an AHK ini file in python, but its unreadable in python. I know you need some type of encoding to read the ini file in python. But im pretty new to python, so no idea where to start ... Thanks! Ive attached the file DetectPress.ini Code im using to create the ini file IniWrite...
- 15 Jun 2021, 09:59
- Forum: Ask for Help (v1)
- Topic: Cant Get Min To Find Value In Array
- Replies: 7
- Views: 552
Re: Cant Get Min To Find Value In Array
Thanks, missed that ... Ok, now it just shows a single variable 20 & doesnt seem to be incrementing ... ;Initialise #SingleInstance, Force Every5Seconds:=0 MultilineInc:=0 AddMinFoundInc:=0 CopyToMultiline1 =20 CopyToMultiline2 =19 CopyToMultiline3 =18 CopyToMultiline4 =17 CopyToMultiline5 =16 CopyT...
- 15 Jun 2021, 09:40
- Forum: Ask for Help (v1)
- Topic: Cant Get Min To Find Value In Array
- Replies: 7
- Views: 552
Re: Cant Get Min To Find Value In Array
Hi, I've tried to incorporate the fix into my script, but it still refuses to work ... Basically every 5 seconds, it adds 5 new strings to the array, & displays the new min, im guessing the new line still isnt being removed correctly ... Thank! ;Initialise #SingleInstance, Force Every5Seconds:=0 Mul...
- 15 Jun 2021, 09:13
- Forum: Ask for Help (v1)
- Topic: Cant Get Min To Find Value In Array
- Replies: 7
- Views: 552
Re: Cant Get Min To Find Value In Array
Awesome, works fantastic, thanks!
- 15 Jun 2021, 08:50
- Forum: Ask for Help (v1)
- Topic: Cant Get Min To Find Value In Array
- Replies: 7
- Views: 552
Cant Get Min To Find Value In Array
I'm trying to convert a multiline string to an array & then find the minimum value in the array. But min refuses to work on the array ... Not sure why, as i checked the array & its populated fine The guide says "If one of the input values is non-numeric, an empty string is returned.", but all the va...
- 14 Jun 2021, 11:47
- Forum: Ask for Help (v1)
- Topic: Cant Reset Array Keeps Getting Higher ...
- Replies: 4
- Views: 293
Re: Cant Reset Array Keeps Getting Higher ...
Thanks, Totally missed that one ...
Much appreciated!
Much appreciated!
- 14 Jun 2021, 11:34
- Forum: Ask for Help (v1)
- Topic: Cant Reset Array Keeps Getting Higher ...
- Replies: 4
- Views: 293
Re: Cant Reset Array Keeps Getting Higher ...
oh yea, i used the x wrong ... fixed, but it still gives the same problem, the array keeps getting higher ... ; Create pre-generated AutoHotkey script ; with a basic template or import your own #SingleInstance, Force Every5Seconds:=0 MultilineInc:=0 Goto Main Main: { MultilineInc++ ;FileRead, Curren...
- 14 Jun 2021, 11:20
- Forum: Ask for Help (v1)
- Topic: Cant Reset Array Keeps Getting Higher ...
- Replies: 4
- Views: 293
Cant Reset Array Keeps Getting Higher ...
Hi, Im trying to reset an array, but cant figure out how, I've tried clearing all variables in the loop, but nothing works ... lol Basically the script should just check variables from 1 to 10, & reset the array, but it just keeps getting larger ... Thanks! ; Create pre-generated AutoHotkey script ;...
- 11 Jun 2021, 12:51
- Forum: Ask for Help (v1)
- Topic: How To Create A Multiline String From A Set Of Variables
- Replies: 6
- Views: 1560
Re: How To Create A Multiline String From A Set Of Variables
Thanks Chunjee, could you put that in a loop?
- 11 Jun 2021, 12:45
- Forum: Ask for Help (v1)
- Topic: Best Algorithm to See If A price Is Rising Or Descending
- Replies: 15
- Views: 784
Re: Best Algorithm to See If A price Is Rising Or Descending
I totally missed AHKStudents post, which is also a great approach, counts the number of highs vs lows. Thanks, very handy! Also Chunjees suggestion is great, but ill be adding historical data later on to detect the overall trend, i just need to predict the current price direction. Thanks guys, saved...
- 11 Jun 2021, 08:31
- Forum: Ask for Help (v1)
- Topic: Best Algorithm to See If A price Is Rising Or Descending
- Replies: 15
- Views: 784
Re: Best Algorithm to See If A price Is Rising Or Descending
Boiler, thanks!, your script works brilliantly, it seems to use the average from what i understand, to check the direction. Many thanks!