
Search found 111 matches
- 03 Dec 2017, 19:17
- Forum: Ask For Help
- Topic: adding amount +(variable) to variable Topic is solved
- Replies: 2
- Views: 328
- 03 Dec 2017, 19:04
- Forum: Ask For Help
- Topic: adding amount +(variable) to variable Topic is solved
- Replies: 2
- Views: 328
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?
- 02 Dec 2017, 11:24
- Forum: Ask For Help
- Topic: Click Elements by ID Topic is solved
- Replies: 32
- Views: 10271
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...
- 02 Dec 2017, 11:11
- Forum: Ask For Help
- Topic: Click Elements by ID Topic is solved
- Replies: 32
- Views: 10271
Re: Click Elements by ID Topic is solved
Can you show us that webpage?
- 02 Dec 2017, 10:41
- Forum: Ask For Help
- Topic: Click Elements by ID Topic is solved
- Replies: 32
- Views: 10271
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()
- 02 Dec 2017, 10:34
- Forum: Ask For Help
- Topic: Click Elements by ID Topic is solved
- Replies: 32
- Views: 10271
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...
- 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: 3172
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

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
- 01 Dec 2017, 18:25
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
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..
I must use SetTimer in my script, therefore I can't use Break
and i have no idea how to get these counts..
- 01 Dec 2017, 17:39
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
Re: If IsAudioPlaying false for 3 minutes Topic is solved
I still can't figure out, its giving me same result. >.> How would your code look like?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.
- 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: 3172
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?
- 01 Dec 2017, 16:58
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
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, ...
- 01 Dec 2017, 16:38
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
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...
- 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: 3172
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
)

- 01 Dec 2017, 15:09
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
Re: If IsAudioPlaying false for 3 minutes Topic is solved
nothing comes on my mind lolBoBo wrote:To expensive 4 U ?What would be the code if sound is not playing for 3 minutes, then do something?

- 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: 3172
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?
@Odlanir, is it possible to output last 3 with max value?
- 01 Dec 2017, 14:44
- Forum: Ask For Help
- Topic: If IsAudioPlaying false for 3 minutes Topic is solved
- Replies: 12
- Views: 1887
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...
- 28 Nov 2017, 16:58
- 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: 654
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
Works great, thanks! Is it possible to put multiple keys in it?
- 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: 654
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
If any of keyboard keys is down for more than 5 seconds, clear the clipboard...
if possible provide code, thanks
- 28 Nov 2017, 07:45
- 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: 654
How can I make a script that will, if I hold any key for more than 5 seconds, clear the clipboard? Topic is solved
How can I make a script that will, if I hold any key for more than 5 seconds, clear the clipboard?
- 27 Nov 2017, 07:07
- Forum: Ask For Help
- Topic: Ini read and output the Key name that has largest amount Topic is solved
- Replies: 16
- Views: 3172