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 

Is it posslible to do s.th. like this idea
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
AGU
Guest





PostPosted: Wed Feb 16, 2005 2:21 am    Post subject: Is it posslible to do s.th. like this idea Reply with quote

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" Wink
+ 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. Very Happy 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.
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 16, 2005 2:47 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Feb 16, 2005 2:48 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Wed Feb 16, 2005 2:56 am    Post subject: Reply with quote

To my knowlege, you can do everything listed except for mouseover gui event procedures (you can do ToolTips though).
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 16, 2005 3:06 am    Post subject: Reply with quote

You can do mouseovers. SetTimer and MouseGetPos (It's relative to 0,0 of the active window by default).
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Feb 16, 2005 4:03 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
AGU
Guest





PostPosted: Wed Feb 16, 2005 2:04 pm    Post subject: Reply with quote

@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. Laughing

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.
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Wed Feb 16, 2005 3:02 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AGU
Guest





PostPosted: Wed Feb 16, 2005 4:30 pm    Post subject: Reply with quote

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.
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Wed Feb 16, 2005 4:50 pm    Post subject: Reply with quote

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!
_________________
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Feb 16, 2005 5:02 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 16, 2005 6:25 pm    Post subject: Reply with quote

Quote:
with my somewhat little experience working with ahk gui,


It's not often that I laugh out loud while browsing the forum. Laughing
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Feb 16, 2005 6:33 pm    Post subject: Reply with quote

I got a giggle out of that comment too... rajat being one on the most experienced at this forum(my opinion)
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
AGU
Guest





PostPosted: Wed Feb 16, 2005 10:49 pm    Post subject: Reply with quote

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?
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 16, 2005 10:51 pm    Post subject: Reply with quote

There is not currently such a control, no.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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