Search found 111 matches

by HIAC
27 Nov 2017, 06:45
Forum: Ask For Help
Topic: Reading chatlog line
Replies: 3
Views: 535

Re: Reading chatlog line

Sometimes, but just sometimes, i need to write 3 messages to make it register new line, is it possible that file size doesnt become bigger or what?
by HIAC
27 Nov 2017, 05:59
Forum: Ask For Help
Topic: Reading chatlog line
Replies: 3
Views: 535

Re: Reading chatlog line

I have this, but sometimes it doesn't work well so I would like to use another way if possible FilePath = %A_MyDocuments%\chatlog.txt File := FileOpen(FilePath, "r") OldLogFileSize := 0 File.Seek(0, 2) Loop { LogFileSize := File.Length if (LogFileSize > OldLogFileSize) { Loop { if File.AtEOF Break T...
by HIAC
27 Nov 2017, 05:37
Forum: Ask For Help
Topic: Reading chatlog line
Replies: 3
Views: 535

Reading chatlog line

I need a script that will continuously check chatlog.txt file and if file size increased, output penultimate line of it, or last one that contains text
by HIAC
27 Nov 2017, 05:23
Forum: Ask For Help
Topic: Click on message from webpage
Replies: 7
Views: 1457

Re: Click on message from webpage

Try .Click() with empty brackets
by HIAC
27 Nov 2017, 05:14
Forum: Ask For Help
Topic: How to combine must of one command with autohotkey? Topic is solved
Replies: 1
Views: 391

Re: How to combine must of one command with autohotkey? Topic is solved

Code: Select all

$F1::Send, ^x ; cut
$F2::Send, ^c ; copy
$F3::Send, ^v ; paste
or

Code: Select all

$F1::
Send, ^x ; cut
return
$F2::
Send, ^c ; copy
return
$F3::
Send, ^v ; paste
return
by HIAC
27 Nov 2017, 02:54
Forum: Ask For Help
Topic: Ini read and output the Key name that has largest amount Topic is solved
Replies: 16
Views: 2754

Ini read and output the Key name that has largest amount Topic is solved

Hey people!
I would like to get "C" because it has the largest value in "INFO" selection.. How can I do that?
I would note that values are continuously changing

[INFO]
A=1
B=3
C=5
[INFOB]
D=20
by HIAC
23 Nov 2017, 21:46
Forum: Ask For Help
Topic: Multiple strReplace Topic is solved
Replies: 2
Views: 644

Re: Multiple strReplace Topic is solved

Okay, thank you!
by HIAC
23 Nov 2017, 20:41
Forum: Ask For Help
Topic: Multiple strReplace Topic is solved
Replies: 2
Views: 644

Multiple strReplace Topic is solved

Hi,
How can I replace multiple strings at once? I'm creating new lines with same code.. i'm sure it's not correct. :headwall:
(I want to remove "[" and "]" from Name)

Code: Select all

Name := "[IM]Apple"
Name := strReplace(Name,"]")
Name := strReplace(Name,"[")
MsgBox % Name
by HIAC
23 Nov 2017, 19:53
Forum: Ask For Help
Topic: help
Replies: 5
Views: 884

Re: help

Well that code is not exactly what I was looking for but does what it's supposed to in some cases. Thanks! Look, this is what I have: Name := "[AA]Monkey[CC]" RegExMatch(Name, "\[\w+\]\K\w+", NameNoTag) MsgBox % NameNoTag So if Name is [Alex], result will be empty which is bad, as well as Bill[the]C...
by HIAC
23 Nov 2017, 16:47
Forum: Ask For Help
Topic: help
Replies: 5
Views: 884

Re: help

Thanks, but in my case e.g. name "ab" should be valid and "[abc]" invalid..
by HIAC
23 Nov 2017, 14:43
Forum: Ask For Help
Topic: help
Replies: 5
Views: 884

help

Name = [Alex]

If name is does not contain anything between [] or does not contain [] at all
do something
else if name contains something in[] (e.g name: "[AB]Alex[AC]")
do something else

How can I do that?
by HIAC
23 Nov 2017, 14:39
Forum: Ask For Help
Topic: .ini +1 Topic is solved
Replies: 4
Views: 696

Re: .ini +1 Topic is solved

Solved, thank you
by HIAC
23 Nov 2017, 12:29
Forum: Ask For Help
Topic: .ini +1 Topic is solved
Replies: 4
Views: 696

Re: .ini +1 Topic is solved

Thank you very much..
Now I have the problem when KEY contains "[ ]" value will become ERROR and it will write new key instead of overwriting it ( I use variable for key)

Code: Select all

[ABV]
[AA]BB[CC]=1
[AA]BB[CC]=1
by HIAC
23 Nov 2017, 11:03
Forum: Ask For Help
Topic: .ini +1 Topic is solved
Replies: 4
Views: 696

.ini +1 Topic is solved

How can use a variable to write .ini file? like if previous Key value is 1, then make it 2 next time and increase by 1 everytime, Thanks!
by HIAC
22 Nov 2017, 19:22
Forum: Ask For Help
Topic: hotkey problem
Replies: 1
Views: 330

hotkey problem

^numpad1:: SendPlay,^a^c{backspace}{enter} Sendplay, {f6}/astream %Inprogress%{enter} Sleep, 1000 Sendplay, {f6}Currently listening to "%SongName%"{enter} If Clipboard != SendPlay, {f6}%clipboard% return This works for me but not for my friend, like nothing happens at all but this works ^numpad1::M...
by HIAC
20 Nov 2017, 20:51
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1520

Re: Get text content out of HTM file

Code: Select all

FileRead, File, JReport.htm
FileAppend, %File%, AutohotkeyTemp1.txt
by HIAC
20 Nov 2017, 18:44
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1520

Re: Get text content out of HTM file

Code: Select all

SetWorkingDir, %A_ScriptDir%
URLDownloadToFile, https://autohotkey.com/boards/viewtopic.php?f=5&t=40288, JReportLT.htm
FileRead, File, JReportLT.htm
FileDelete, JReportLT.htm
MsgBox % File
by HIAC
20 Nov 2017, 02:00
Forum: Ask For Help
Topic: Sound detection Topic is solved
Replies: 11
Views: 2059

Re: Sound detection Topic is solved

#Warn, All, Off Loop { While(!IsAudioPlaying()) Sleep, 1000 MsgBox, % "Sound Detected" ;or TrayTip,, % "Sound Detected", 1 } return IsAudioPlaying() { AudioLevel := 0.0 VA_IAudioMeterInformation_GetPeakValue(VA_GetAudioMeter(), AudioLevel) return (Round(AudioLevel, 4) > 0) } ;----------------------...
by HIAC
18 Nov 2017, 22:31
Forum: Ask For Help
Topic: Sound detection Topic is solved
Replies: 11
Views: 2059

Re: Sound detection Topic is solved

Sorry but I don't really know how exactly to do it.. I'm on windows 7,so what would be the code to get msgbox when sound is detected? :D
by HIAC
18 Nov 2017, 22:15
Forum: Ask For Help
Topic: Sound detection Topic is solved
Replies: 11
Views: 2059

Re: Sound detection Topic is solved

Thank you both.. So how can I have message pop up when sound is detected? :)

Go to advanced search