Search found 111 matches

by HIAC
03 Dec 2017, 19:04
Forum: Ask For Help
Topic: adding amount +(variable) to variable Topic is solved
Replies: 2
Views: 321

adding amount +(variable) to variable Topic is solved

Code: Select all

A = 5
B = 1

f9::
B += %A%
MsgBox %B% ; Should be 6

not working.. what am I doing wrong?
by HIAC
02 Dec 2017, 11:24
Forum: Ask For Help
Topic: Click Elements by ID Topic is solved
Replies: 32
Views: 9384

Re: Click Elements by ID Topic is solved

Yes, you should be using IE. And, instead of Goto, use Loop. #SingleInstance, Force OnExit, ExitSub pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := true pwb.Navigate("MyWebPage") while pwb.busy or pwb.ReadyState !=4 sleep, 10 Loop, { pwb.document.getElementById("54").click() while...
by HIAC
02 Dec 2017, 11:11
Forum: Ask For Help
Topic: Click Elements by ID Topic is solved
Replies: 32
Views: 9384

Re: Click Elements by ID Topic is solved

Can you show us that webpage?
by HIAC
02 Dec 2017, 10:41
Forum: Ask For Help
Topic: Click Elements by ID Topic is solved
Replies: 32
Views: 9384

Re: Click Elements by ID Topic is solved

Are you sure that ID is "61"? I doubt it, it may be Index number.. however, try this.

Code: Select all

pwb.document.getElementById("61").click()
by HIAC
02 Dec 2017, 10:34
Forum: Ask For Help
Topic: Click Elements by ID Topic is solved
Replies: 32
Views: 9384

Re: Click Elements by ID Topic is solved

Hope this helps :) pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := true pwb.Navigate("https://autohotkey.com/boards/") while pwb.busy or pwb.ReadyState !=4 sleep, 10 pwb.document.getElementById("keywords").value := "Example" ; By ID pwb.document.getElementsByClassName("button icon...
by HIAC
01 Dec 2017, 18:32
Forum: Ask For Help
Topic: Ini read and output the Key name that has largest amount Topic is solved
Replies: 16
Views: 2754

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

Thanks a lot! It works, but there is another problem -.-

A=30.000000
B=15
C=5
D=8
E=11.800000
F=1

it won't consider numbers with decimals in it, so result would be 15, 8,5 instead of 30,11,15
by HIAC
01 Dec 2017, 18:25
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

Re: If IsAudioPlaying false for 3 minutes Topic is solved

I'm not smart. xD

I must use SetTimer in my script, therefore I can't use Break
and i have no idea how to get these counts..
by HIAC
01 Dec 2017, 17:39
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

Re: If IsAudioPlaying false for 3 minutes Topic is solved

jeeswg wrote:Increment a counter, reset it to 0 every time sound is heard. If the counter gets high enough, that's 3 minutes of no audio.
I still can't figure out, its giving me same result. >.> How would your code look like?
by HIAC
01 Dec 2017, 17:01
Forum: Ask For Help
Topic: Ini read and output the Key name that has largest amount Topic is solved
Replies: 16
Views: 2754

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

Thank you, how can i divide them in 3 different variables?
by HIAC
01 Dec 2017, 16:58
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

Re: If IsAudioPlaying false for 3 minutes Topic is solved

#Include SoundDetection.ahk #Persistent SetTimer, IfNoMusic return IfNoMusic: { while(IsAudioPlaying()) Sleep, 10 Sleep, 10000 MsgBox No music } return Okay I made this, but it does not check whether is audio not playing for 10 seconds. I mean, if I stop audio for these 10ms, and turn it on again, ...
by HIAC
01 Dec 2017, 16:38
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

Re: If IsAudioPlaying false for 3 minutes Topic is solved

- To check that something is never happening, I suppose involves an infinite number of checks? Zeno's paradoxes? - Are there some AHK commands etc that you know of that can handle doing the same action multiple times and/or delaying actions? If I understood you correctly, you might be thinking of L...
by HIAC
01 Dec 2017, 16:21
Forum: Ask For Help
Topic: Ini read and output the Key name that has largest amount Topic is solved
Replies: 16
Views: 2754

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

Could you kindly make me one like you did previously to read .ini file but outputting last 3 instead :))
by HIAC
01 Dec 2017, 15:09
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

Re: If IsAudioPlaying false for 3 minutes Topic is solved

BoBo wrote:
What would be the code if sound is not playing for 3 minutes, then do something?
To expensive 4 U ? :eh:
nothing comes on my mind lol :?
by HIAC
01 Dec 2017, 14:49
Forum: Ask For Help
Topic: Ini read and output the Key name that has largest amount Topic is solved
Replies: 16
Views: 2754

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

@A_AhkUser Thanks.

@Odlanir, is it possible to output last 3 with max value?
by HIAC
01 Dec 2017, 14:44
Forum: Ask For Help
Topic: If IsAudioPlaying false for 3 minutes Topic is solved
Replies: 12
Views: 1665

If IsAudioPlaying false for 3 minutes Topic is solved

Hello. Alright so I have this script which detects whether is audio playing and it works fine. What would be the code if sound is not playing for 3 minutes, then do something? IsAudioPlaying() { AudioLevel := 0.0 VA_IAudioMeterInformation_GetPeakValue(VA_GetAudioMeter(), AudioLevel) return (Round(Au...
by HIAC
28 Nov 2017, 15:08
Forum: Ask For Help
Topic: How can I make a script that will, if I hold any key for more than 5 seconds, clear the clipboard? Topic is solved
Replies: 4
Views: 646

Re: How can I make a script that will, if I hold any key for more than 5 seconds, clear the clipboard? Topic is solved

Whatever I try doesn't work, and in some cases that key doesn't work when I type.. Is there a way to mark all keys?
If any of keyboard keys is down for more than 5 seconds, clear the clipboard...
if possible provide code, thanks

Go to advanced search