AutoHotkey Community

It is currently May 25th, 2012, 3:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: February 16th, 2005, 2:21 am 
I always dreamt of a small ToDo application. As I'm new to programming at all but willing to learn I just wanted to ask if the following hmmm lets say idea will work with AHK. I came across AHK by the mentioned c't article in german press. As I find this programme fascinating and relativly easy to learn I just wanted to know whether this is possible or if I just should drop this idea. But lets start with what I imagined.

Quote:
+ Some kind of GUI. A small window.
+ An own icon in the titlebar just like every window in "windows" ;)
+ Inside the window some kind of listbox (subform) with at least 3 coloumns and a scrollbar
+ 1st column: A Checkbox ("checked:done"/"unchecked:still to do")
+ 2nd column: A textbox (the thing I shall not forget)
+ 3rd column: A small button (archive)

+ On mouseover of any single todo action (consisting of checkbox, textbox and the button in one line) some kind of tooltip with additional information (Date of creation, some kind of deadline or alarmtime)
+ alternating background colors of lines in order to be better readable.
+ clicking the checkbox (1st column) strike through the text in the box.( a horizontal line in the middle of the text)
+ clicking button (3rd column) moves the entry in some kind of archive
+ some kind of timer that moves checked entries to the archive according to a setup period of time.
+ at the lower end of the main window two buttons "Now" and "Archive" where Archive lists all archived entrys in the above mentionen listbox. The Now button works the other way round.
+ one or two files to store the data in. Simple textfiles?
+ and of course a menu bar like <file - edit - ...> In this direction


So far what I thought about. I don't expect someone to make a script. :D I'm really willing to do this and read all the needed information. I just need a short informtion if this would be possible. But feel free to tell me some commands or example scripts where I can study certain tasks I would need. Thanks for any help.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 2:47 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
AutoHotkey may not be the right tool for this job. You could check out other simple languages that are more suited for Gui work, like AutoHotkey's cousin AutoIt3 or Gui4Cli.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 2:48 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
every thing you want is possible with AHK, but looks like it wont come over night. I would like to help you write this what ever it is...that is if you dont mind

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 2:56 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
To my knowlege, you can do everything listed except for mouseover gui event procedures (you can do ToolTips though).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 3:06 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
You can do mouseovers. SetTimer and MouseGetPos (It's relative to 0,0 of the active window by default).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 4:03 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
this should do well for proforming something based on the mouse, and this can be set to a range too

Code:
SetTimer, MyLabel, 500
MyLabel:
Loop,
{
   WinGetActiveTitle, TheActiveWindow

   If TheActiveWindow = The Crystal Society's Key Stroke Automator ;Some Know Window Name goes here
   {
      WinGetActiveStats, TheActiveWindow, ActiveW, ActiveH, ActiveX, ActiveY
      MouseGetPos, OutX, OutY
;----------------------------------------------------------------
      XRangeMin = 1 ;         Set Ranges Here   |
      XRangeMax = 50 ;            |
      YRangeMin = 1 ;             |
      YRangeMax = 50 ;            |
;----------------------------------------------------------------



      If OutX between %XRangeMin% and %XRangeMax%
      {
         If OutY between %YRangeMin% and %YRangeMax%      
         {
            ToolTip, Your Within Range, %OutX%, %OutY% ;   This Could be another Funtion- run, GoSub, etc.
         }
      }
      IfWinNotActive, TheActiveWindow
      {
         ToolTip,
         Continue
      }
   }
}
END::
ExitApp

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 2:04 pm 
@invalid user
it would be okay with me, if you help me. But as I said. I'm completely new to programming. Therefore I don't hardly know where to start. What should I do first? So helping me, would be you doing the work and me looking and trying to understand what you did. :lol:

Concerning the tooltip. It was just an idea. I'm very flexible for alternative solutions. The only thing I thought was, that you mustn't see the date of creation or any deadline in the listbox. But there should be a possibility to reach that information. And my first thought was a tooltip.
Another solution maybe a fourth column with an additional button that opens a second window displaying that info.

Just had another idea. A hothey like #t that opens a window where you can fill out all fields to generate a new entry in the listbox.

And finally to make a complete fool out of me, can someone give me a short tip what to start with. Should I first build a routine that asks for the folder and creates the files and then build the other things around it, or what? Where should I begin? Just a short word. :wink: or maybe a complex script that includes some of these aspects that I can study.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 3:02 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi, nobody's fool just because he's newbe.

As a newbe try to start with small tasks (even if some of the code is not needed at the end).

E.g. you want to store the data on disk, right? Not only keeping the data during runtime, right?
So think of how you can store the data effectivly and retrieve it when you start the Gui a second time.
Start with a small GUI that only has a Checkbox and a Edit field, and buttons you think you need. Don't care about the layoout. The data that is put into it is also not of interest. Just store data and retrieve it when the script runs a second time.

Then play with it, until its functionality is close to what you want to have. And if you wnat, post it and let other people help you to tweak it. :) That's maybe the best appoach as a newbe. Afterwards you can extend that script to get more functionality or start with another small task.

And as I write it, I think BoBo will give me a smack at the back of my head, because he likes PAP, right? Ask Bobo for it. :)

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 4:30 pm 
you're right toralf. I want to store the data on disk.

I thought about a semicolon seperated textfile and retrieving the information with a string command.

Check;TaskToDo;DateofCreation;Deadline;Status(Archive,Actual)

Thanks for the good starting tips.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 4:50 pm 
Online

Joined: March 28th, 2004, 3:53 pm
Posts: 1868
hey AGU! ... with my somewhat little experience working with ahk gui, what i suggest is first create a gui. visualise what you want and create the basic form, then add functions to its elements. well, that's what i'd have done.

all the best!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 5:02 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
Sure I will help, and I might teach ya a few things along the way, most programming I found is just logic. it all makes sense...sooner or later that is.

The way I start project that have a interface is creating the interface via Smart GUI 3.3 (Rajat...oh thank you Rajat!) then I add each function as I go along, alot of the time tho the first gui I make is not the last for the project.

I am gonna re read your first post and take some notes and create a few layouts and see what it is your trying to do...

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 6:25 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Quote:
with my somewhat little experience working with ahk gui,


It's not often that I laugh out loud while browsing the forum. :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 6:33 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
I got a giggle out of that comment too... rajat being one on the most experienced at this forum(my opinion)

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 10:49 pm 
I tried to create a GUI with SmartGUI but I had difficulties to visualize what I want. I created a GUI as following.

Code:
; Generated using SmartGUI Creator 3.4

Gui, Add, Checkbox, x12 y10 w15 h14, Checkbox
Gui, Add, Edit, x36 y7 w180 h20, Edit
Gui, Add, Button, x226 y7 w20 h20, A
Gui, Add, Button, x256 y7 w20 h20, I
Gui, Show, x418 y429 h42 w291, Generated using SmartGUI Creator 3.4
Return

GuiClose:
ExitApp


But this is not exactly what I want. This GUI should be part of a bigger window. I mean a main window that contains a big element which holds the above mentioned GUI in every line. Here an ascii art to show what I mean


Code:
-------------------------------------------------
| Icon | Titlebar                           |X| |
-------------------------------------------------
|  _________________________________________    |
| |Check| Todo/Task          |Arch |Info |UP|   |
| |_____|____________________|_____|_____|__|   |
| |Check| Todo/Tast          |Arch |Info |S |   |
| |_____|____________________|_____|_____|c |   |
| |Check| Todo/Tast          |Arch |Info |r |   |
| |_____|____________________|_____|_____|o |   |
| |Check| Todo/Tast          |Arch |Info |l |   |
| |_____|____________________|_____|_____|l |   |
| |Check| Todo/Tast          |Arch |Info |b |   |
| |_____|____________________|_____|_____|a |   |
| |Check| Todo/Tast          |Arch |Info |r |   |
| |_____|____________________|_____|_____|  |   |

      ...
   _____ ____________________ _____ _____ __
| |Check| Todo/Tast          |Arch |Info |DW|   |
| |_____|____________________|_____|_____|__|   |
|                                               |
|              ________   ________              |
|             |  Now   | |Archive |             |
|             |________| |________|             |
|_______________________________________________|


Exists an GUI Element that can hold other GUI elements? It should be s.th like a endless form. Do you understand what I mean?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2005, 10:51 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
There is not currently such a control, no.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, engunneer, rbrtryn, vsub, Yahoo [Bot] and 20 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