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 

text file to desktop background
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
leo
Guest





PostPosted: Fri Dec 07, 2007 2:12 pm    Post subject: text file to desktop background Reply with quote

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






PostPosted: Fri Dec 07, 2007 2:41 pm    Post subject: Reply with quote

I'm not sure exactly what you mean, but this might be related.
Back to top
dmatch



Joined: 15 Oct 2007
Posts: 113

PostPosted: Fri Dec 07, 2007 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Fri Dec 07, 2007 4:10 pm    Post subject: Reply with quote

related free tool:
http://lifehacker.com/software/plain-text/geek-to-live--incorporate-text-files-onto-your-desktop-213280.php
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
leo
Guest





PostPosted: Fri Dec 07, 2007 6:26 pm    Post subject: Reply with quote

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

PostPosted: Fri Dec 07, 2007 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
leo
Guest





PostPosted: Fri Dec 07, 2007 10:17 pm    Post subject: Reply with quote

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

PostPosted: Fri Dec 07, 2007 10:43 pm    Post subject: Reply with quote

You're Welcome.

Now go break it and fix it and break it and .....

Let the experimenting begin Laughing

dmatch
Back to top
View user's profile Send private message
nickromano



Joined: 28 Nov 2007
Posts: 25
Location: USA

PostPosted: Wed Jan 16, 2008 9:22 pm    Post subject: Reply with quote

thats really cool but how do i hide the taskbar button?
Back to top
View user's profile Send private message Visit poster's website AIM Address
HugoV



Joined: 27 May 2007
Posts: 650

PostPosted: Wed Jan 16, 2008 9:54 pm    Post subject: Reply with quote

If you add this:

Code:
Gui,+ToolWindow


below the

Code:
Gui,+lastfound


line for example there will be no taskbar button, see also
http://www.autohotkey.com/forum/viewtopic.php?t=27385&highlight=hide+taskbar

and the GUI help section
Back to top
View user's profile Send private message
nickromano



Joined: 28 Nov 2007
Posts: 25
Location: USA

PostPosted: Wed Jan 16, 2008 10:31 pm    Post subject: Reply with quote

thanks that helps a lot
Back to top
View user's profile Send private message Visit poster's website AIM Address
TotalBalance



Joined: 22 Jan 2007
Posts: 180
Location: CO, USA

PostPosted: Mon Jul 28, 2008 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1375

PostPosted: Mon Jul 28, 2008 11:17 pm    Post subject: Reply with quote

this could be done easily with gdi+
Back to top
View user's profile Send private message
fsnow55



Joined: 08 Jun 2006
Posts: 19

PostPosted: Thu Aug 07, 2008 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
TotalBalance



Joined: 22 Jan 2007
Posts: 180
Location: CO, USA

PostPosted: Thu Aug 07, 2008 7:26 pm    Post subject: Reply with quote

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
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  Next
Page 1 of 2

 
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