wavget.com Forum Index wavget.com
Message Board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TII Tricks: Interactive Calendar

 
Post new topic   Reply to topic    wavget.com Forum Index -> TypeItIn
View previous topic :: View next topic  
Author Message
Ambimind



Joined: 27 Jan 2009
Posts: 80

PostPosted: Fri Feb 11, 2011 12:48 am    Post subject: TII Tricks: Interactive Calendar Reply with quote

Goal:
Be able to activate a calendar-window which will allow one to interactively select a date/time in the future/past/present and have it available to the clipboard and a TII variable(Var4).
Setup should be portable.


Method:
A. The Calendar Program
This trick relies on some third party software - its extremely low on resources and portable, making it a perfect companion to TII.

For my own convenience I prepared a small installer that places the program in the TII directory, ready to be used by the following button script.
You may download the file here:
http://www.mediafire.com/?36okm6u119e6ijn
(Note: Unzip it and run the installer, it will inform you when it's done.)
If you don't trust me(I don't blame you) you can get it directly from :
http://home.mnet-online.de/horst.muc/wrem.htm#calendar

B. The Button Script
You'll need to add this to every button that requires the use of a calender; alternatively you can create single button that will be activated by another button using {Sub GroupName,ButtonName}:

{Var1 GetDrive}
{Var2=\Program Files\TypeItIn\calendar\}


{*** Put it all together ***}
{Run {Var1}{Var2}Calendar.exe}{Delay 100}
{Activate Calendar }


{*** Wait till the calander window has been shut down ***}
{Var3 Application}
{While (Var3 =Calendar.exe) [{Activate Calendar |{Var3 =Clicked}}]}


{*** Put the choice of date into var4 for use where ever you like ***}
{Var4 GetClip}

Application Notes:
To use just press either of the two buttons below the calendar.

Its important to remember that the button makes your selection available in Var4. If your integrating it into a button or activating via the {Sub..} function it will be best to start your variable numbering from 5.

For anyone activating and waiting for programs using TII, I recommend the {While...} function in the third paragraph of the script. After trying numerous methods this turned out to be the most reliable.

Finally, thanks to Paul for being so responsive to my/our requests!; as a consequence you'll need the latest beta for this to work.


Last edited by Ambimind on Mon May 02, 2011 1:25 am; edited 2 times in total
Back to top
View user's profile Send private message
Erihpro



Joined: 18 Sep 2008
Posts: 76

PostPosted: Sun Feb 13, 2011 6:17 pm    Post subject: Reply with quote

Awesome! This is just what I needed. Thank you Kiril. Smile

Thanks again,

Erih
Back to top
View user's profile Send private message
Larryt97



Joined: 20 Apr 2010
Posts: 84
Location: Kansas City, MO

PostPosted: Tue Feb 15, 2011 4:46 pm    Post subject: Reply with quote

Love it and have been using this since you posted it....I found though that using only 1 variable reduces the risk of variable overwriting and Just today I found myself using Var99 and this overwritten that variable. So I incorporated the Save and Load functions so that prior to calling this calander function I keep the original contense of Var99. With this modification, It don't matter what variables I use to call the calendar...It works without risk of any variables being overwritten!


In the button that needs the date or time from the user:

Code:
{Sub Called,Calendar}{***Asks user to pick time or date***}
{Varxx Load TimeDate}{***Loads the time or date into Var x***}


Below is the contense of Group="Called" and Button name="Calendar":

Code:

{Var99 Save BeforeCalendar}{***Save incase I need Var99 contense***}


{Var99 GetDrive}
{Var99={Var99}\Program Files\TypeItIn\Calendar\}

{*** Put it all together ***}
{Run {Var99}Calendar.exe}{Delay 100}
{Activate Calendar }

{*** Wait till the calender window has been shut down ***}
{Var99 Application}
{While (Var99 =Calendar.exe) [{Activate Calendar |{Var99 =Clicked}}]}

{*** Put the choice of date into var99***}
{Var99 GetClip}



{***Save, So I can Load the date or time into any variable I want in the button that called this function***}
{Var99 Save TimeDate}

{***Put the original contense of Var99 back in Var99***}
{Var99 load BeforeCalendar}
Back to top
View user's profile Send private message AIM Address
Ambimind



Joined: 27 Jan 2009
Posts: 80

PostPosted: Tue Feb 15, 2011 5:09 pm    Post subject: Reply with quote

Larryt97 wrote:
....It works without risk of any variables being overwritten!


Useful idea indeed. Save/load Var functions seem to have far more applications then I've previously led myself to believe.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    wavget.com Forum Index -> TypeItIn All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group