topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 3:57 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - TalksToPCs [ switch to compact view ]

Pages: [1]
1
AutoHotkey / Question about AutoHotkey assignment 2
« on: June 13, 2011, 03:18 PM »
A while ago I have started work on AutoHotkey assignment two. Due to work and other interruptions I wasn't able to finish the task.

Now I've taken a look at it again and I can see that I was stuck at the problem that is described in the assignment as "a place to specify a file".

The way I understand it, I have to be able to select from the settings menu a specific file the path of which is shown in the menu. I suppose there should be some kind of "Browse" button.

I can't seem to figure out how to store the path in the text box.

Could someone please point me to the correct AutoHotkey commands? Please?

I thought about posting the problem to the AutoHotkey forum, but I don't know if that would be considered cheating. I'm just so damned honest!

Thanks,
TTP

2
Dear Coders,

I'm a non-programmer with only basic scripting skills.

I want to mass-extract file names from a folder and write them to a text file. The "\" in the path should be converted to "<". An AutoHotkey script would be great because there is a chance that I might be able to modify it.

Steps:
1. Select folder from a menu
2. Extract folder paths and convert them to my desired format:
P:\Z_Systems\Favoriten yields the following:
P:<Z_Systems<Favoriten<folder 1\folder 1
P:<Z_Systems<Favoriten<some other folder\some other folder
Mind that there should be a backslash after the actual folder name followed by the last folder name.
It should issue a warning should one of the paths have more than 127 characters. I will put in that warning by myself later.
...
3. Write these files to a text file that is saved on the desktop.
... That's it.

It would be kind of nifty if I would be able to select between files and folders at the beginning (either one or the other should be extracted, but not both).
P:<Z_Systems<Favoriten<file 1.doc\file 1.doc

Thank you so much!

Pages: [1]