topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 25, 2024, 12:05 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 - huismus [ switch to compact view ]

Pages: [1]
1
I've created a small GUI with an Edit element where users can type a filename, this filename is submitted with a button and based on part of the filename string, the GUI gets expanded with different elements.

The problem is as follows: The typical filename to be typed is over 25 characters long and typing it is rather error prone. So... I'm working on adding a button that
hides the GUI, allows the user click to an explorer window and Alt-LMBclick on a filename. The filename then gets placed in the edit element and the GUI is unhidden. As the user may have valuable data on the clipboard, I do not want to use the clipboard for this.

I've been trying to use this code:
TitleCopyExplorer:
SetTimer, Explorecopy, 150
return
Explorecopy:
If WinActive ahk_group Explore
{
explorerClass = ExploreWClass

~!Lbutton::

WinGetClass explorerClass, A
ControlGet, selectedFile, List, Selected Col1, SysListView321,ahk_class %explorerClass%
msgbox %selectedFile%
}
return
(modified from: this forum topic)

However, this just returns an empty string in the msgbox.

Thanks for your help.
Huismus


2
Finished Programs / SOLVED: Attach or upload to FTP utility
« on: October 01, 2012, 01:31 AM »
Hello everyone,

I recently moved abroad and email is a huge part of staying in touch with friends and family back home. I'd like to more efficiently upload pictures (and other files) to them. I use AHK to create some keyboad shortcuts, but nothing you could call "programming". From searching the forum, I know that most components I think are needed to create this utility are available, but I have no idea how to put it together.

So here goes... The "Attach or upload to FTP utility" should do the following:
Whenever I drag and drop a file onto a MS Outlook message window, a window should pop-up giving me two options:
1. Upload file to FTP
2. Attach to email
If I choose 2, the file gets attached and nothing else happens.
If I choose 1, the following happens:
- A small FTP browser window opens a pre-determined FTP site
- I can browse to a desired folder or create a new one
- By clicking "upload", the file gets uploaded, and a link to the folder (i.e. the location of the file) gets pasted into the message body

That's it! Nice additions to this functionality would be:
- Drag and drop multiple files onto the MS Outlook message window
- A threshold for minimum filesize (so the utility doesn't pop up for small files)
- Checking the "To" field of the message to determine if the utility should pop-up (so you only send FTP uploaded attachment mails to recipients with FTP access).

I'm looking forward to your ideas!

Huismus

Pages: [1]