Search found 24 matches

by johnhill
03 Jan 2018, 18:31
Forum: Ask For Help
Topic: Open .mp3 at certain time and close after play
Replies: 10
Views: 575

Re: Open .mp3 at certain time and close after play

Thanks @xtra, Bobo

Do want to close the potplayer not the timer. If successful writing this, I do want to turn it off at the week days though :) . Any idea what command I need for the tasks.
by johnhill
03 Jan 2018, 07:50
Forum: Ask For Help
Topic: Open .mp3 at certain time and close after play
Replies: 10
Views: 575

Re: Open .mp3 at certain time and close after play

@Bobo, now with this code, the script will only run once.The only reason I think it run multiple time is the checktime is 1000. #persistent ppPath := "C:\(programme file)" SetTimer, CheckTime, 1000*60 Return CheckTime: FormatTime, CurrentTime,, HH:mm If (CurrentTime = "20:41") { Runwait, %ppPath% "D...
by johnhill
03 Jan 2018, 07:01
Forum: Ask For Help
Topic: Open .mp3 at certain time and close after play
Replies: 10
Views: 575

Re: Open .mp3 at certain time and close after play

Xtra wrote:You can use SoundPlay to play .mp3
Thank you. Will check it later. :)
by johnhill
03 Jan 2018, 02:23
Forum: Ask For Help
Topic: Open .mp3 at certain time and close after play
Replies: 10
Views: 575

Re: Open .mp3 at certain time and close after play

Since I can open the mp3 directly. Not going to include ppPath. Below is the code I currently using but it will continuously open the same file until the script is stopped. #persistent SetTimer, CheckTime, 1000 Return CheckTime: FormatTime, CurrentTime,, HH:mm If (CurrentTime = "06:00") { Run, "C:\(...
by johnhill
02 Jan 2018, 08:24
Forum: Ask For Help
Topic: Open .mp3 at certain time and close after play
Replies: 10
Views: 575

Open .mp3 at certain time and close after play

Hi,

I would like to open .mp3 file, "Play my song", which is located in my D:\ drive. Currently using Potplayer to open all my media player. This song will be my alarm clock at 6:00am. When done, close the Potplayer. The song is about 3 minutes long.

Thank you.
by johnhill
28 Oct 2015, 07:21
Forum: Ask For Help
Topic: Get text from status bar
Replies: 15
Views: 3207

Get text from status bar

Hi, Would like to learn to use command StatusBarGetText and import to excel. However it doesnt seem to work. I could be missing something big here. Tried other software but result is the same. StatusBarGetText, test1, 1, 1b.xlsb - Excel Msgbox %test1% Is this the correct way or is the other way? Tha...
by johnhill
27 Aug 2015, 23:58
Forum: Ask For Help
Topic: What is the best way to insert data into box?
Replies: 3
Views: 354

Re: What is the best way to insert data into box?

Have downloaded the Java Access Bridge but not sure how to install it.
I tried all the .exe but only window pop up.
Did I do anything wrong?
by johnhill
27 Aug 2015, 08:17
Forum: Ask For Help
Topic: What is the best way to insert data into box?
Replies: 3
Views: 354

What is the best way to insert data into box?

Hi, I am working with REW Tone Generator. I try to create a script to insert the data automatically so I dont have to enter manually every time. The date I need to insert is RMS Level dB FS and Frequency Hz. Currently I have tried using the {tab} and click on the box to enter the data but no data in...
by johnhill
20 Jul 2015, 23:26
Forum: Ask For Help
Topic: Loop time with increment of 5min
Replies: 5
Views: 828

Re: Loop time with increment of 5min

Maybe? I'm not sure what you're after: #NoEnv target_time = 1100 ; for testing target_time = %A_Now% ; current date-time EnvAdd, target_time, 5, Minutes ; add 5 minutes StringMid, target_time, target_time, 9, 4 ; get the HH24MI part of the date-time stamp ; end of test code target = %A_YYYY%%A_MM%%...
by johnhill
20 Jul 2015, 20:59
Forum: Ask For Help
Topic: Loop time with increment of 5min
Replies: 5
Views: 828

Re: Loop time with increment of 5min

Im not really sure what your asking for if i run your script modified like this target_time = 1100 target = %A_YYYY%%A_MM%%A_DD%%target_time%00 EnvSub, target, %A_Now%, Seconds sum := target * 1000 + 25000 ; milliseconds + delay msgbox,,, % sum I get a negative number ( don't think you can sleep ne...
by johnhill
20 Jul 2015, 05:27
Forum: Ask For Help
Topic: Loop time with increment of 5min
Replies: 5
Views: 828

Re: Loop time with increment of 5min

Am I asking question that is easy to figure out or hard to figure out?
by johnhill
20 Jul 2015, 04:05
Forum: Ask For Help
Topic: Loop time with increment of 5min
Replies: 5
Views: 828

Loop time with increment of 5min

Hi, I have below code that I would like to do loop with increment of 5min to avoid a long list. The target_time is the part that need 5min increment. target_time = 1100 target = %A_YYYY%%A_MM%%A_DD%%target_time%00 EnvSub, target, %A_Now%, Seconds Sleep, % target * 1000 + 25000 ; milliseconds + delay
by johnhill
19 Jul 2015, 03:19
Forum: Ask For Help
Topic: Ammend Count Sleep code to count run time code
Replies: 7
Views: 1222

Re: Ammend Count Sleep code to count run time code

What your suggested is what am I looking for. Thank you.
by johnhill
18 Jul 2015, 06:59
Forum: Ask For Help
Topic: Ammend Count Sleep code to count run time code
Replies: 7
Views: 1222

Re: Ammend Count Sleep code to count run time code

Hi T_Lube,

Is my post not clear?
by johnhill
18 Jul 2015, 01:55
Forum: Ask For Help
Topic: Ammend Count Sleep code to count run time code
Replies: 7
Views: 1222

Ammend Count Sleep code to count run time code

Hi, Posted under http://www.autohotkey.com/board/topic/145533-trying-something-different-with-sleepcount/. I have this code that I wanted to used it to count run time of the script. It was used to count Sleep time. target_time = 1000 target = %A_YYYY%%A_MM%%A_DD%%target_time%00 EnvSub, target, %A_No...
by johnhill
06 Jul 2015, 19:46
Forum: Ask For Help
Topic: Unable to startup Task Manager in Windows 10
Replies: 1
Views: 496

Re: Unable to startup Task Manager in Windows 10

Also I just upgraded AHK from 112200 to 112202.
by johnhill
06 Jul 2015, 19:45
Forum: Ask For Help
Topic: Unable to startup Task Manager in Windows 10
Replies: 1
Views: 496

Unable to startup Task Manager in Windows 10

HI, I have this code. It run on later build of Windows 10 but not running in the latest build 10162. #NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% SetBatchLines -1 #SingleInstance Force CoordMode, Mouse, Screen #Persistent winwait Where am I? winclose sleep 10000 run C:\Windows\System32\Ta...
by johnhill
21 Nov 2014, 09:40
Forum: Ask For Help
Topic: SciTE4AHK gone berserk!
Replies: 4
Views: 1106

SciTE4AHK gone berserk!

Hi all, Every time I run script on SciTE4AHK, it gone berserk. It also affected the .ahk. It start to delete itself or adding ;~ in front in the script. Could someone have a look? #NoEnv #SingleInstance force #NoTrayIcon SetBatchLines -1 SendMode Input SetWorkingDir %A_ScriptDir% SetWinDelay 0 SetMo...
by johnhill
09 Nov 2014, 18:49
Forum: Ask For Help
Topic: Creating wait process with A_Cursor
Replies: 2
Views: 710

Re: Creating wait process with A_Cursor

I want to use when MS Excel is waiting for my VBA to finish it tasks.

If you have better solution, please suggest.

Go to advanced search