Dragging files to AHK Script SystemTray Icon
Posted 18 November 2005 - 10:25 PM
However, I'm a web developer, programming in ColdFusion and PHP, so I catch on quick.
:?: I was wondering if it was easy-ish to put some code in my script which would be run if a file was dropped onto that script's system tray icon.
I'd like to detect the filename and do different actions based on the extension.
Is that too far over my head?
P.S. AHK has got to be one of my favorite programs ever! I'mso glad I found it!
Posted 18 November 2005 - 10:38 PM
Posted 21 November 2005 - 02:44 PM
I installed AHK the other day on my home computer and noticed an option during installation whereby you can specify that AHK scripts can have stuff dropped on them. By default, it is not enabled. So it looks like it can be done.
:?: But what variables will I need to access to get the filenames?
Posted 21 November 2005 - 04:36 PM
I realize that this gives me the first param... so if I dragged more than one file onto the script, I have to access %2% and so on. But often I don't know how many params will be passed.
Now it is in the old DOS format...
Rather than a nice long format.
:?: How can I find out what the long name is?
:?: And how can I get all the params, instead of just the first one?