AutoHotkey Community

It is currently May 26th, 2012, 2:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next
Author Message
 Post subject:
PostPosted: January 13th, 2008, 9:53 am 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
FYI, 2.0 Beta available.
* Colorized Work/Break Pop-Up Text and matched to icon status meter.
* Added sound notification option.
* Fixed minor GUI bugs.
* Note: Changed log file name from lifelog.txt to tasklog.txt.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2008, 11:58 pm 
Please forgive my complete ignorance here... I came here from the ToDoList forum and I know absolutely nothing about AHK. (So for starters you have a good ploy to indoctrinate unsuspecting noobs like me :roll: )

Before I download, install, try to run, etc, I'm really not understanding what the offering is. What do I need to know or install before trying this? I have TDL, not AHK. Ummm, does AHK press keys in other applications that make your script work to do things that we want? Well, what does it do?

Can you give us a little more insight into how this works, the flow? We have a task, we work on it, we take a break, repeat as necessary?

TIA


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2008, 12:28 am 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
Not a problem, glad your visiting. 1st, I'll defer to others, far more knowledgeable than me, to extol the virtues, uses & benefits of AHK :wink:

As for the script features, I'll assume you've read the 1st thread of this post and understand it's a stand-alone app. As an avid user of TDL, I selfishly included a few lines of code to provide a hook to compliment TDL with the functionality it provides as a stand-alone.

To use in conjunction with TDL here's a quick process flow of what happens, related to TDL:

1) When the WB-Timer is started, the program's timer begins it's work/break/repeat cycle ( i.e. default is 48min/work - 12min/break - repeat 3 times). To actually send a task with Title, tags and/or description to TDL, you need to select "New Task" from the tray icon or use the hotkey(s) you've setup in the Preference GUI.
2) Once a New Task is created and sent:
a) it creates a timestamped entry in the TaskLog.txt file
b) then creates a new task in TDL with the info provided (to which TDL file is configured in Preferences).
b1) starts TDL's timer.
3) When a new task is created, it repeats above but stops previous TDL task timer and starts TDL timer for new task.

As for the other features provided and how they compliment TDL, I'd suggest reading the WBReadme.txt file and/or taking it for a test spin. Then, let me know what other questions you've got.

P.S. In the zipped file, I've also included a self contained EXE file so you don't need AHK installed on your system to run the app. Just place the exe in a folder of your choosing and you're ready to go.
P.S.S. The app. doesn't make any changes to TDL (other than adding new tasks). If you just want to test it out, I'd suggest you create a new "Test.tdl" file, point to it in the preference GUI and take it for a spin.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject: suggested improvement
PostPosted: January 15th, 2008, 8:40 pm 
Here's a change that I made to the beta 2 version.

It allows the work break timers to start automatically when the program starts.

It also has an addition to the settings screen to turn on/off of the auto start option

here's the additions to the ahk script
==================
...
IniRead, Sound, %AppName%.ini, Sound, Sound
IniRead, AutoStart, %AppName%.ini, AutoStart, AutoStart
IniRead, IrfanView, %AppName%.ini, Helper Apps Settings, IrfanView
...
Else
WorkTime := 48, BreakTime := 12, RepeatTimes := 3, ScreenCapTime := 20, ScreenCap := "0", ScreenSelect := 1, Sound := 1, AutoStart := 0, IrfanView := "0", ToDoList := "0", ChosenHotkey := "^!L"
;the above line replaces the current default settings line
Gui, 1: Add, GroupBox, x10 y10 w330 h140, Timer Settings
...
Gui, 1: Add, Text, x+0 yp+0 w110 r1 -Multi -Wrap, Active Window
Gui, 1: Add, CheckBox, x168 yp+0 r1 -Multi -Wrap vAutoStart Checked%AutoStart%
Gui, 1: Add, Text, xp+30 yp+0 w110 r1 -Multi -Wrap, AutoStart Enabled?
Gui, 1: Add, Text, x20 y+10 w110 r1 -Multi -Wrap, Save to:
...
OnMessage(0x203, "WM_LBUTTONDOWN")
If AutoStart
{
MsgBox, Auto starting...
GoSub, TrayStart
}
Return
...
IniWrite, %Sound%, %AppName%.ini, Sound, Sound
IniWrite, %AutoStart%, %AppName%.ini, AutoStart, AutoStart
IniWrite, %IrfanView%, %AppName%.ini, Helper Apps Settings, IrfanView
...
================

Hopefully, the snippets above made sense.

James


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2008, 10:39 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
bradtwurst, thanks for sharing your enhancement. It was actually on my todo and now it's done :wink:
I'll incorporate it into the next version release. The only mod. I'll make is to comment out the msgbox so the timer starts immediately.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 3:04 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Hi TotalBalance,

nice script, thanks for posting it. I have a bug report + fix (I think):

When I delete the hotkey for New task is tries to assign an empty
value to the Hotkey command, that doesn't work of course:

Code:
---------------------------
WB_Timer.ahk
---------------------------
Error: "" is not a valid key name.  The current thread will exit.

   Line#
   220: IniWrite,%TDLTaskFile%,%AppName%.ini,Helper Apps Settings,TDLTaskFile
   221: IniWrite,%ChosenHotkey%,%AppName%.ini,Helper Apps Settings,ChosenHotkey
--->   222: Hotkey,%ChosenHotkey%,TrayNewTask


By adding this line in both the iniread (line 75) and iniwrite (line 222)

Code:
If (ChosenHotkey <> "")


above the hotkey command, it will only assign the hotkey if a hotkey is actually entered.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 8:57 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
Thx. HugoV.
I really appreciate both the catch and more important the time you took to provide the fix :D

I'm not sure either if your solution is the best way to fix the bug, but it works!

I'll include the changes in the next release.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 1:26 am 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
WB-Timer 2.5 Alpha is now available.
It has not been thoroughly tested so let me know if you find any bugs. As always, feedback is always appreciated.

Fixes/Updates in WB-Timer 2.5 Alpha
User requested modifications:
* Screen captures are now saved in dated folder
* For IrfanView slideshow, user now has ability to select which dated folder to perform slideshow
* Re-odered New Task GUI - Task Title is now the 1st in tab order and Timestamp is last
* Added AutoStart option in Preferences GUI - Thanks bradtwurst
* ToDoList: If "Exit" is selected on "Session Over" pop-up, timer is stopped for New Task created in Helper Apps - ToDoList file. Note: if the New Task created is not highlights (active), on Exit, timer will start on highlighted task. Make sure, before you Exit, task is highlighted in ToDoList. If not, you'll need to manually update.

Bug Fixes:

* Error msg when there's no Hotkey in Preferences GUI for New Task - Thanks HugoV

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 7:32 am 
Offline
User avatar

Joined: January 25th, 2006, 8:08 am
Posts: 225
Location: Froschtümpel
Is there a way to continue work on existing task?

What I think about is: When selecting "New task" in WB-Timer, there should be a possibilty to insert a task reference into field "Task". Doing this the corresponding - already existing - task should continue time measurement in TDL ...

Or is there an other way to continue work on already existing tasks using WB-Timer?

Will test the new 2.5alpha version now ...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 2:54 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Suggested cosmetic change: the New Task GUI might popup
off center or partially off screen, if you replace this line

Code:
Gui, 99: Show, x344 y247 h218 w596, New Task

with:
Code:
GuiWidth=596
GuiHeight=218
X := (A_ScreenWidth / 2) - (GuiWidth / 2)
Y := (A_ScreenHeight / 2) - (GuiHeight / 2)
Gui, 99: Show, x%X% y%Y% h%GuiHeight% w%GuiWidth%, New Task

it will always pop up in the center of the first monitor.

Also, perhaps adding & to the Cancel label in the New Task GUI
will allow you to close the window by pressing Alt-C just like
in the Settings GUI

Note: there is already another method in the script which centers
a GUI, but that uses DLLCall and I haven't got a clue how that
works, otherwise you might be able to reuse some of that code
for consistency.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 6:38 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
Thanks HugoV, I'll make the changes.

Quote:
there is already another method in the script which centers
a GUI, but that uses DLLCall and I haven't got a clue how that
works

You and me both! Tic, an awesome AHK programmer, help tremendously get the initial release out the door. The downside is I too am challenged to figure out how he did most it :oops:

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 9:27 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
An updated version of WB-Timer 2.5 Alpha is available. Rather than rename the zip same name with HugoV's suggestions added.
* New Task GUI centered regardless of screen size
* Hot keys added for New Task GUI Task Log and Cancel

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2008, 7:19 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
WB-Timer 2.6 Alpha is available.
Fix for TDL users:
Fixed bug in New Task entry and TDL timer when exiting WB-Timer.
* New task will be assigned to designated TDL file, regardless of whether TDL is open or not and TDL file is active or not.
* TDL timer will stop when exiting WB-Timer session, regardless if active or not.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2008, 3:13 pm 
Offline

Joined: January 22nd, 2007, 11:24 pm
Posts: 206
Location: CO, USA
WB-Timer 2.75 Alpha Released.

Lot's of changes/fixes. Read 1st post or WBReadme_Alpha.txt for details.

_________________
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject: needed enhancements
PostPosted: January 21st, 2008, 6:41 am 
I think what's needed is a way to launch WB_Timer.exe from TDL where repeated tasks are predefined and can be passed into WB_Timer.exe as parameter?. In that case the estimate time will besome the time of the "Work" session.

Let me know what you think.

FYI
Also when I loaded the latest vesion, I kept getting error for line 81 which I fixed by adding "Other Features" section to the ini file and adding ChosenTDLHotkey variable to "Helper Apps Settings" section.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 24 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group