AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Work Break Timer, Task/Idea Logger, ScreenCapture - v. 3.00
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
TotalBalance



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Fri Jul 23, 2010 7:19 am    Post subject: Problem starting timer in ToDoList running on Win 7 Reply with quote

I'll be asking the TDL forum as well but thought wouldn't hurt to ask here too. The code below worked fine in XP to create a new task in TDL and start the TDL timer. On Win 7 it only creates the new task. Any ideas how to correct.

Code:
; Function: If enabled, write new task to TDL & start TDL timer
If ToDoList =1 ; check if ToDoList is enabled
  {
  TDLTask = "%ToDoListExe%" "%TDLTaskFile%"
  Run %TDLTask% -nt "%Task%" -cm "%Day% - %Date% - %Time%`nTags: %Tags%`nComments:`n%Comments%`n"
      WinWaitActive, %TDLTaskFile%,,3
      ;Start TDL Timer
      SetTitleMatchMode, 2
    PostMessage, 0x111, 32967,,,ToDoList © AbstractSpoon
  }

_________________
Lars
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Jul 23, 2010 1:53 pm    Post subject: Reply with quote

Probably the
Code:
PostMessage, 0x111, 32967,,,ToDoList © AbstractSpoon
did you try to run the script with UAC/administrator - is the title still the same?
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
TotalBalance



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Fri Jul 23, 2010 5:36 pm    Post subject: Reply with quote

Thx hugov! ToDoList has indeed change their title from:
Code:
PostMessage, 0x111, 32967,,,ToDoList © AbstractSpoon

To:
Code:
PostMessage, 0x111, 32967,,,ToDoList (c) AbstractSpoon

Perhaps the copyright symbol was causing too much challenge for others wanting to do similar things.
Once I made the change, the code works fine now. Just need to find time to re-compile and update the 1st page of this thread Wink

Thanks again!
Lars
_________________
Lars
Back to top
View user's profile Send private message
louis058



Joined: 21 Aug 2010
Posts: 6

PostPosted: Mon Aug 23, 2010 9:21 am    Post subject: Reply with quote

I tried to delete the folder, but the folder 'Images' became locked, access denied. I couldn't even take ownership of it, even though I was the Admin. Any reason for this, or is this exclusive to me?
Back to top
View user's profile Send private message
TotalBalance



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Mon Aug 23, 2010 3:02 pm    Post subject: Reply with quote

1st I've heard of this issue. There's nothing in the code that would lock any folder. To be honest, I wouldn't know how even if possible through AHK.

It does sound unique to your system. As a possible remedy, have you tried to remove all the files within the images folder, then remove folder? Can you rename the folder?
_________________
Lars
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Mon Aug 23, 2010 3:24 pm    Post subject: Reply with quote

Use something like unlocker http://www.autohotkey.com/forum/viewtopic.php?t=20866&highlight=unlocker so you can see which programs prevents you to delete a file. Unlocker is what I'd use.
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
volair



Joined: 18 Sep 2010
Posts: 1

PostPosted: Sat Sep 18, 2010 9:59 pm    Post subject: Reply with quote

Hello Lars,

Thanks you for sharing this great script. I've been using this script for a little while now and find it very useful. One thing I like to use it for is switching between two tasks. Maybe work 30 minutes on one large task and then use the 10 minute "break" for smaller tasks. This keeps me a little more focused when writing AHK or SQL as I can get into daze staring at the code for to long. Because I use it like this, I'd like to add a suggestion (which may or may not be useful to anyone but me).

Suggestion:
Ability to use multiple sessions. My thought would be to have two options settings screen:
(1) traditional/simple work and break sessions (ie what it is now) or
(2) custom. The custom would just read from supplied delimited file with times for each session (ex: 45, 15, 30, 12). It would be easy to test for file correctness ("if time is not integer"). As for the break session, it could be the last one.

The hassle I see with this is the messages for multiple sessions. I'd guess you'd have to add more image files (numbers 0-9) and find a way to display the current work session number and maybe the minutes of the session.

I don't know how many other folks would find this useful, but it would grant the ability to set times for multiple tasks of varying importance, and keep you out of the "daze zone" when you have a lot to get done. If I get a chance I might look into seeing if I could help get something started.

Thanks again for the script!
Back to top
View user's profile Send private message
mixer
Guest





PostPosted: Tue Sep 21, 2010 3:21 pm    Post subject: Reply with quote

I would like to thank you for this script - it's very useful. Thank you!

But I would also like to point out one improvement that would definitely improve the program.

The whole work+rest methodology has two important points:
1. work fully on one task at a time, but when it's a time to rest - REST!
2. each work cycle you need to change the task

Your script does well with the first point, but is somewhat non-optimal with the second one. Currently I am generating the list of all the tasks I need to work on and they are written to the text file. But then, at the beginning of each work cycle, I need to copy next task and paste it as a new current task. This is pretty monotonic and takes a lot of time - half of my rest period (I use 12+3 method), which doesn't make much sense.

I would therefore like to suggest creating some kind of drop-menu, which would contain all the in-progress tasks (tasks that have not yet been closed) and show that list before the start of each work cycle. Voluntary auto-rotation of the tasks would be nice as well.

This feature would save a lot of time and hassle. I hope you find my suggestion good enough to be implemented!

Thanks again for the script!
Back to top
TotalBalance



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Mon Oct 04, 2010 5:27 am    Post subject: Reply with quote

Thx Volair & Mixer for your compliments. While each of your suggestions are worthy of consideration & implementation, I just don't have time right now to do enhancements. I'm very sorry.
However, the source code is freely available. By all means tweak to your heart's content. All I ask is you share enhancements done.

Regards,

Lars
_________________
Lars
Back to top
View user's profile Send private message
santiago.demierre
Guest





PostPosted: Mon Mar 14, 2011 6:53 am    Post subject: Re: Trouble iwth Icon? Reply with quote

Karyss wrote:
Has anyone else had trouble with an error saying the icon won't load? I'm wondering if this is a Vista problem...

Thanks in advance for any help.


I figured out that it may be a problem with tic's tic-MakeICOBars-1.10.ahk script. When I try launching tic-MakeICOBars-1.10.ahk example.ahk I get a very similar error. Tic could you please take a look at this?

When running example.ahk in windows vista: http://screencast.com/t/lZ0tRnawIv

When running wb_timer.exe in windows vista:
http://screencast.com/t/SLioDsWYftc

basically the .ico file doesn't seem to be a valid .ico file, it cannot be opened with any program.

Thanks!!!
Back to top
George_AHK



Joined: 22 Sep 2011
Posts: 24

PostPosted: Fri Sep 30, 2011 6:07 pm    Post subject: Reply with quote

I was interested in what this script was all about but had issues getting it to run. Anyway still not sure if I am going to use it but....

I had to comment out this line (around line# 942) and tweak the next:
;DllCall("kernel32\MultiByteToWideChar", "Uint", 0, "Uint", 0, "Uint", &sFile, "Int", -1, "Uint", &wFile, "Int", 512)

DllCall("gdiplus\GdipCreateBitmapFromFile", "Uint", &sFile, "UintP", pBitmap)

Apparently the second function does not need the file massage that the first function is doing. I am a total novice at calling any API's so this is pure speculation.

Also had the same issue as previously reported above with the Menu, Tray, Icon line #445. I just commented it out to get the script to run.

Again this post is only to save others the debug time I put in to get it going.

Apparently I spoke to soon. It will load but now there are problems with the icon building section. If I have time I will investigate, maybe the same issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Page 10 of 10

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group