AutoHotkey Community

It is currently May 27th, 2012, 1:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 85 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: October 10th, 2010, 3:25 am 
might be of help
http://www.autohotkey.com/forum/topic33189.html, 3rd page, joten


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2010, 6:11 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
Anonymous wrote:
... when launching it from another AHK script, it prompts the infamous error message:

#Include file "_Functions\AddTooltip.ahk" cannot be opened.

Creating a shortcut file wont work either.
It launches ok from explorer. I dont understand this error :(

The error occurs because the #include directive cannot find the necessary file to include in the main script. Any one of these options should get you where you need to go:
  • Run the executable (QuickReminder.exe). Unlike the script, the executable can be run from anywhere as long as the project run-time folders (Icons and Sounds) are located in the same folder as the QuickReminder.exe file. Actually, all of these solutions require that the project folders be located in the same folder as the executable (QuickReminder.exe) or the main script (QuickReminder.ahk).
  • Edit the script. The script doesn't work because it expects the _Functions sub-folder to be in same folder as the script that started the script. Since you are starting the script from another folder entirely, it can't find the _Functions sub-folder. To fix the problem, prepend "%A_ScriptDir%" (sans quotes) to the path of files to be included. For example:
    Code:
    #include %A_ScriptDir%\_Functions\AddTooltip.ahk
  • Specify a "Start In" folder. When using the Run command or when creating a shortcut, specify the path where the script should be run from. The parameters will look something like this:
    Code:
    Target:   "C:\blah blah\AHK\AutoHotkey.exe" "C:\blah blah\QuickReminder\QuickReminder.ahk"
    Start in: "C:\blah blah\QuickReminder"

I hope this helps.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 11th, 2010, 8:56 am 
Offline

Joined: October 18th, 2006, 8:07 pm
Posts: 169
Hi guest,

Try setting the workingdir parameter when you launch it

Quote:
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2010, 12:42 pm 
This script is great!
The only thing not working with AHK_L is TTS.

Quote:
Function Name: "GetVoices"
ERROR: The COM Object may not be a valid Dispatch Object! First ensure that COM Library has been initialized through COM_Init().


Is there an easy fix?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2010, 4:24 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
Guest wrote:
This script is great!
The only thing not working with AHK_L is TTS.

Quote:
Function Name: "GetVoices"
ERROR: The COM Object may not be a valid Dispatch Object! First ensure that COM Library has been initialized through COM_Init().


Is there an easy fix?

I'm not a AutoHotkey_L user (yet), so I installed the latest ANSI version and gave it a try. The script and Text-To-Speech feature worked without any errors.

Some stuff to try...
  • Run the compiled version (QuickReminder.exe). If TTS doesn't work, then it's probably not the script or the version of AutoHotkey. Of course, if the compiled version does work, you can stop here unless you want to make modifications to the script.
  • SAPI5 is required. Read the Requirements section of the first post and verify that you have the necessary TTS software/version on your PC.
  • If that doesn't do it, uninstall L and install AutoHotkey Basic and try again. This should not be the problem but at least you can exclude it from list of possibilities.

Good luck!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 9:36 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
I would like to ask if I can do this with your script:

set the begining of project1 and automatically set reminders at day 2, 7, 14, 28 after the start date of the project

(the sequence is customisable, but also I should be able to choose it as preset)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2011, 3:21 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
user wrote:
I would like to ask if I can do this with your script:

set the begining of project1 and automatically set reminders at day 2, 7, 14, 28 after the start date of the project

(the sequence is customisable, but also I should be able to choose it as preset)

Although it's fairly easy to quickly add these four reminders (click on the down button next to the Date/Time field to display a calendar), there is currently no method to auto-generate reminder records. Sorry.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 7:19 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
jballi wrote:
user wrote:
I would like to ask if I can do this with your script:

set the begining of project1 and automatically set reminders at day 2, 7, 14, 28 after the start date of the project

(the sequence is customisable, but also I should be able to choose it as preset)

Although it's fairly easy to quickly add these four reminders (click on the down button next to the Date/Time field to display a calendar), there is currently no method to auto-generate reminder records. Sorry.


is there any way to find the correct dates, that I will set the reminders at?

I mean, eg I want to set reminders at 2nd, 7th, 14th, 21st day after eg. September 14th. How can I get the correct dates in a list? and then somehow import them to the reminder program??


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 9:09 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
This request of yours got me thinking. I'll have to rethink the logic used in my WASP, someday...

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 10:39 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
user wrote:
is there any way to find the correct dates, that I will set the reminders at?

I mean, eg I want to set reminders at 2nd, 7th, 14th, 21st day after eg. September 14th. How can I get the correct dates in a list? and then somehow import them to the reminder program??

I'm afraid that this requirement is (way) out of scope for the QuickReminder program. It might be something that a good scheduling or project management program can do but it's not something that average calendar/reminder program can do or wants to do. But and however, if you would like help to write small script to calculate this information, PM me and we'll get started.

This is certainly not a perfect solution but you can use the Snooze feature to create an alarm in the future without using the calendar. It takes two steps.

Step 1: Create a new alarm. Put whatever you need in the Note field, set it to expire in 1 second, and press the "Start" button to start the alarm.

Step 2: When the alarm goes off (1 second from when you pressed the "Start" button), enter the future time in the snooze field and press the "Snooze" button.

The snooze field is a free-form field and you can enter a future period in almost any format. For example, to have the alarm expire in 2 days, just enter "2 days". To have the alarm expire in 2 weeks, enter "2 weeks" or "14 days". You get the idea. See the first post in this thread for more examples.

I hope this helps.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2011, 2:55 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
If you have a very long reminder text spoken via TTS, how can we stop the TTS engine via xml tag again, before it will finish the complete text?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2011, 4:09 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
automaticman wrote:
If you have a very long reminder text spoken via TTS, how can we stop the TTS engine via xml tag again, before it will finish the complete text?

I'm fairly certain I don't really understand your question as written. I would have to say that I don't know how we can stop the TTS engine via xml tag again, before it will finish the complete text.

But if you just mean that you need to stop the TTS engine that is speaking text that includes XML, it is done the same way as you would with plain text.

Programmatically, speech is stopped by sending the TTS engine blank (null) text with the SVSFPurgeBeforeSpeak flag. For example:

Code:
COM_Invoke(pSpVoice,"Speak","",SVSFlagsAsync|SVSFPurgeBeforeSpeak)

For the QuickReminder application, all windows that can speak via TTS, include a button that toggles as a "Play/Stop" button. When not speaking, the button is a "Play" button. While speaking, the button becomes a "Stop" button. Simply press the "Stop" button to get the TTS engine to stop speaking. For Alarm windows, closing the Alarm window will also get the TTS engine to stop speaking.

I hope this helps but I have a sneaking hunch that I didn't quite answer your question or the program is not working as expected. If that is the case, please ask again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2011, 4:43 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
No, you answered already perfectly, thanks. Just a few minutes ago I posted already this: http://www.autohotkey.com/forum/viewtop ... 828#491828


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2012, 9:01 am 
Offline

Joined: March 9th, 2012, 8:57 am
Posts: 5
Sorry for bumping this old topic, but does anyone have a copy of this program?

The old QuickReminder.zip link at the first page no longer works.

My old copy is unable for an uncertain amount of weeks, due to computer technical reasons. So I would love to have the program on this temporary computer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2012, 9:54 am 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
Here you are: QuickReminder 0.5
Hopefully it uploaded without errors - my Internet connection is a joke lately. :(

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Bon and 13 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