| View previous topic :: View next topic |
| Author |
Message |
leo Guest
|
Posted: Fri Dec 07, 2007 2:12 pm Post subject: text file to desktop background |
|
|
Hi,
I've started experimenting with Autohotkey and I think it is great!
I was wondering if it would be possible to read a text file and then place the content on my desktop background. I have a todo list and it would be really helpful to always be able to see it.
I have a script that allows me to enter text into a text box and this is then appended to my todo.txt file. I can read and manipulate the data just fine with Autohotkey.
I have just found a program called Samurize that will do exactly what I want, but I would prefer to do it with Autohotkey! More fun this way : )
Any pointer to get me started?
Again, I'm fine with reading and manipulating the data. I just don't know where to start when it comes to putting it onto the desktop.
Thanks
leo |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Dec 07, 2007 2:41 pm Post subject: |
|
|
| I'm not sure exactly what you mean, but this might be related. |
|
| Back to top |
|
 |
dmatch
Joined: 15 Oct 2007 Posts: 113
|
Posted: Fri Dec 07, 2007 3:51 pm Post subject: |
|
|
There are many AHK tools at your disposal that you might apply to your task, depending on the exact results you are looking for.
If you want your desktop to show thru except where there are text characters then:
WinSet, TransColor, Color [N], WinTitle
might be useful, especially if you create a Gui window with no Border and no Title bar ( Gui, -caption ) and choose a text color and font that contrasts well with your desktop (Gui, Font [, Options, FontName]). The text would just float on your desktop. TransColor command won't work on some early Windows OS's (from help file - "has no effect on Windows 9x and NT4"). It works on my XP system. Also, the text characters might be on top of any icons that are on the desktop so it would depend on where you put your Gui window and your desktop icons as to whether they get in each others way. I have all my icons on about 1/4 of the screen to one side so in my case I would have plenty of room for something like this on the right side of my desktop.
I hope you enjoy your experimenting. I certainly have enjoyed mine.
dmatch |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
|
| Back to top |
|
 |
leo Guest
|
Posted: Fri Dec 07, 2007 6:26 pm Post subject: |
|
|
Thanks for the feedback!
@dmatch: That's not quite what I had in mind. The effect I am after is something akin to a text replacement for the desktop image. This is not a big deal - just part of my exploring Autohotkey and something that I thought could be cool to do. I'm amazed by how much can be accomplished by this software! I normally code in php, so having a scripting language that interacts directly with windows is fun.
@engunneer: yip, I think that samurize is probably the best tool for this job.
Another great piece of software.
Thanks
leo |
|
| Back to top |
|
 |
dmatch
Joined: 15 Oct 2007 Posts: 113
|
Posted: Fri Dec 07, 2007 9:41 pm Post subject: |
|
|
You're Welcome.
I guess I don't see the difference between the transparent window background concept and the Samurize concept. I looked at the web page regarding Samurize (as posted by Engunneer) and it appears to be text displayed on whatever wallpaper/desktop image you have chosen. The same as this concept? (You can run the script below)
| Code: |
;Escape Closes this App
IfWinActive, TodoList
{
^e:: ;Edit Todolist - pick your own hotkey
;RunWait, Notepad.exe Todo.txt
;OR Do whatever to create/Edit TodoList here
MsgBox, Can edit TodoList here
return
}
;FileRead Todos, Todo.txt
;if Errorlevel
;{
Todos=
(
====== My Todo List =======
First thing to do today
Second thing to do today
Third thing to do today
And On and On
========================
)
;}
;****Change as desired****
TodoListWidth:=300
TodoListRows:=30
TodoColor:=0xffffff ;White
xpos:=A_ScreenWidth/2-TodoListWidth/2
CheckColorX:=0.5*TodoListWidth
CheckColorY:=100
;*************************
Gui,+lastfound
Gui, Margin, 0,0
Gui, Font, s14 c%TodoColor%, Arial Italic
Gui, Add, Text, vTodos w%TodoListWidth% r%TodoListRows%
Gui, Show, x%xpos% y10,TodoList
PixelGetColor, BKColor, %CheckColorX%, %CheckColorY%, RGB
WinSet, TransColor, %BKColor%, A
Gui, -caption
GuiControl, , Todos, %Todos%
return
GuiClose:
GuiEscape:
ExitApp
|
If you want nothing but text on a plain background then you could just choose a plain color for your desktop and this would still work.
dmatch |
|
| Back to top |
|
 |
leo Guest
|
Posted: Fri Dec 07, 2007 10:17 pm Post subject: |
|
|
| I see! Yes, the end effect does seem to be identical to what Samurize produces. Thank you very much for this script. It taught me a lot! |
|
| Back to top |
|
 |
dmatch
Joined: 15 Oct 2007 Posts: 113
|
Posted: Fri Dec 07, 2007 10:43 pm Post subject: |
|
|
You're Welcome.
Now go break it and fix it and break it and .....
Let the experimenting begin
dmatch |
|
| Back to top |
|
 |
nickromano
Joined: 28 Nov 2007 Posts: 25 Location: USA
|
Posted: Wed Jan 16, 2008 9:22 pm Post subject: |
|
|
| thats really cool but how do i hide the taskbar button? |
|
| Back to top |
|
 |
HugoV
Joined: 27 May 2007 Posts: 650
|
|
| Back to top |
|
 |
nickromano
Joined: 28 Nov 2007 Posts: 25 Location: USA
|
Posted: Wed Jan 16, 2008 10:31 pm Post subject: |
|
|
| thanks that helps a lot |
|
| Back to top |
|
 |
TotalBalance
Joined: 22 Jan 2007 Posts: 180 Location: CO, USA
|
Posted: Mon Jul 28, 2008 11:09 am Post subject: |
|
|
Nice idea. If interested, modified one of my scripts to do same with a few bells and whistles added, with more to do.
Desktop GTD To Do List
Let me know what you think. _________________ Lars |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1375
|
Posted: Mon Jul 28, 2008 11:17 pm Post subject: |
|
|
| this could be done easily with gdi+ |
|
| Back to top |
|
 |
fsnow55
Joined: 08 Jun 2006 Posts: 19
|
Posted: Thu Aug 07, 2008 6:51 pm Post subject: |
|
|
Lars, I tried your GTD todo script, and liked it. Only problem (mine) was that it doesn't behave well with my tiling windows script, i.e. the background todo list
is not really background and got tiled just like any window.
I like dmatch's solution since the bg todo list does not tile i.e. behaves like an inactive wallpaper (as it should).
Dmatch, I added this line to make it refresh the screen whenever the todo file is updated:
Run, todos.ahk
;just before the
return
;line
thanks for the useful script.
fsnow55 |
|
| Back to top |
|
 |
TotalBalance
Joined: 22 Jan 2007 Posts: 180 Location: CO, USA
|
Posted: Thu Aug 07, 2008 7:26 pm Post subject: |
|
|
Thanks & understand.
As part of another project, this script needs to act as a window, not wallpaper. I'm working up a mod to this virtual desktop poc to display virtual desk specific lists. Easy as window, don't know how to do it as wallpaper. _________________ Lars |
|
| Back to top |
|
 |
|