Welcome Guest.   Make a donation to an author on the site October 25, 2014, 07:23:54 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: "Open" icon - drag and drop icon2 onto it and icon2's Open action happens  (Read 6517 times)
DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« on: July 07, 2006, 11:43:14 AM »

(Windows)  My attempts to double-click on an icon don't always work -- my hand may move too much, or the clicks are too far apart, or I actually only clicked once after all.  But I never have problems dragging an icon and dropping it.  It would be nice to have an "Open" or "Run" icon on my desktop so that I can open documents or run applications just by dragging their icons and dropping them on the "Open" or "Run" icon.

On my laptop at work I am usually logged in nonprivileged but do have an administrator privileged account on it.  Some applications like Google Desktop and most installations need the privileges to run.  So the same as the above but with "Run as..." would be useful, too.  smiley

Currently I often mouse button three and make sure I haven't move off the Open and/or move down to the Run as..., but dragon drops  Cool are quicker and easier.

Thanks,
Dan
Logged
AndyM
Charter Member
***
Posts: 616


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 07, 2006, 01:15:38 PM »

A shortcut to an application will almost always open a compatible file dropped on it.

I have a shortcut on my desktop whose target is "C:\pgms\lister.exe", which I drop text files on to read.  My default "open" for a text file is a text editor, Lister is just a reader.

Sometimes you have to add a %1 to the target.

Oh, wait a second.  Sounds like you want *one* "Run" icon that will open any file with it's default executable (.doc with Word, .xls with Excel, etc.).  So you'd need a program that would find the files default in the registry and then take it from there.  I bet it could be done, but it's beyond me.
Logged
brett
Charter Member
***
Posts: 125



Australia

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #2 on: July 08, 2006, 07:33:23 AM »

DanD

Not sure if this is what you need, but your feedback is welcome.

DragnDrop



Start D&D, and drag any file/shortcut onto GUI

(you can start D&D by dragging anything onto desktop D&D icon)

f11 to reshow (maximize)
f12 to minimize
esc, will quit


dB

* DragnDrop run.exe (197.94 KB - downloaded 160 times.)
* DragnDrop run.ahk (0.49 KB - downloaded 144 times.)
Logged
DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 08, 2006, 02:11:01 PM »

Woo hoo!  Thanks!

Not sure if this is what you need, but your feedback is welcome.

Very close!   smiley  I was thinking of an icon instead of an application, but if I could resize the window down small and have it not go away after each use, that would be great!

Dan


p.s.  I Google'd for...  Windows AHK scripting  ...and it asked ...

    Did you mean: Windows AWK scripting  smiley

...but it still got the first hit right...

    AutoHotkey Tutorial: Macro and Hotkey Creation
    http://www.autohotkey.com/docs/Tutorial.htm
Logged
brett
Charter Member
***
Posts: 125



Australia

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: July 08, 2006, 04:42:58 PM »

DragnDrop run



Hmmm, I will read some more if it is possible to start on icon drop. But for now, here is a
- smaller GUI
- stays on top till f12 or ESC

Autohotkey. http://www.autohotkey.com/
Great for quick results.  cheesy
Although this still took me 2hrs because fairly new ti this   Sad
But I having a great time learning   Grin
the forum is the place to learn

Thanks
dB

* DragnDrop Run.exe (197.92 KB - downloaded 163 times.)
* DragnDrop run.ahk (1.19 KB - downloaded 139 times.)
Logged
kimmchii
Honorary Member
**
Posts: 360


View Profile Give some DonationCredits to this forum member
« Reply #5 on: July 08, 2006, 07:00:19 PM »

or you can change it to "single click to open an item".

Logged

If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony
DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: July 10, 2006, 01:57:29 PM »

dB,

here is a
- smaller GUI
- stays on top till f12 or ESC

Thanks!  I have it up on the upper left of my screen now, mostly off screen so that just a little strip (not quite two icons high) shows that I can drag things to and drop on. smiley



kimmchii,

or you can change it to "single click to open an item".

Yes, and in the past I have sometimes used that, but I like this better.

Dan
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: July 11, 2006, 04:33:02 PM »

 smiley Yes! The world's shortest script! Something for Guinness' book of world records?

To have a program run when it is dropped on an icon, use the following AutoHotkey script:

[copy or print]
Run,%1%

Save it to a file called DragToRun.ahk, and place it on your desktop. Download and install AutoHotkey from www.autohotkey.com, and during installation, check Enable drag & drop onto scripts. If not, you have to compile the script to an exe file by rightclicking it and choosing Compile Script.

Phew! Programming is such hard work!

Skrommel
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: July 11, 2006, 05:39:59 PM »



Skrommel,

It works great!  It is exactly what I wanted.  Thank you!

Dan

p.s. And the icon has a fine sense of style -- drag the desktop Internet Explorer icon to it and it spits it right back out! smiley
Logged
brett
Charter Member
***
Posts: 125



Australia

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: July 12, 2006, 06:40:37 AM »

DragnDrop has been defeated. after v1 it is no longer
   
*toungue in cheek*
Sure, skommels answer might be technically correct, but wheres the challenge.
Wheres the hours and hours of 'Reading the Manual'.
what happened to all the research at the AHK forums.
and was there a little celebration as it rose from the ashes.
The self satisfaction that you have created a small slice of history.
I have already poured over skrommels code, inserting msgbox's before and after the first line, trying to crack the script.
So much to learn, so little time.
pfffftttttt,
*tounge back out of cheek*

I had another idea before skrommel so elegantly put his script forward.

Bump-n-Run v1b

'Bump-n-Run' puts a thin line, 1 pixel wide down the top left edge of the screen. You dont have to be very accurate with this
- Simply 'bump' a icon into the top left edge of the screen and away she goes.
- drag a file in windows explorer, bump left edge and the file will execute.
and a bonus
- bump mouse agaist left edge, and a button menu of last eight 'Bump-n-Run' is shown,in history order, allowing quick 1 click access.

thanks
dB



* Bump-n-Run.exe (199 KB - downloaded 175 times.)
* Bump-n-Run v1b.ahk (5.2 KB - downloaded 162 times.)
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: July 12, 2006, 06:45:07 AM »

Bump-n-Run v1b

'Bump-n-Run' puts a thin line, 1 pixel wide down the top left edge of the screen. You dont have to be very accurate with this
- Simply 'bump' a icon into the top left edge of the screen and away she goes.
- drag a file in windows explorer, bump left edge and the file will execute.
and a bonus
- bump mouse agaist left edge, and a button menu of last eight 'Bump-n-Run' is shown,in history order, allowing quick 1 click access.

Ok, that's sooo cool that i had to check it out, even when i don't need it!
I love the way it works, and the list of recently launched apps is just genious! Nice work dB!  Thmbsup Thmbsup Thmbsup
Logged

DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: July 12, 2006, 03:38:32 PM »

dB,

That is soooooo cool!  Thmbsup  I have it running now.

Dan

--
My request made The Best Of Blog but the image there doesn't look anything like me!
Logged
app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,278



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: July 12, 2006, 11:15:01 PM »


My request made The Best Of Blog but the image there doesn't look anything like me!


It wasn't supposed to be you...lol  Grin
Just a fun image to make the page look a bit more interesting.
Logged

mjsearcy
Charter Member
***
Posts: 1

View Profile Give some DonationCredits to this forum member
« Reply #13 on: July 20, 2006, 05:53:40 AM »

I am new to Auto HotKeys and am unsure how to run the "Drag and Drop" program and "Bump-n-Run".  I have an 85 year old aunt that always has trouble double-clicking because of arthritis in her hands.  These programs sound absolutely great and just what she needs.

Thank you.

Maurita
Logged
DanD
Charter Member
***
Posts: 8


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #14 on: July 26, 2006, 06:26:30 PM »

I am new to Auto HotKeys and am unsure how to run the "Drag and Drop" program and "Bump-n-Run".  I have an 85 year old aunt that always has trouble double-clicking because of arthritis in her hands.  These programs sound absolutely great and just what she needs.

Thank you.

Maurita

There are discussions of AutoHotkey both in these forums and at its own web site.

The very short description is that you can write scripts -- plain old text files, but named with .ahk at the end instead of .txt -- and if you have downloaded the Autohotkey program it can run those scripts.  Alternatively, the person who wrote the script can compile it to an .exe file.  Then all you need to do is download that .exe file -- you don't need anything more from the AutoHotkey site to run it.

Whether you install AutoHotkey and put the .ahk file on the Desktop, or just download the .exe file and put it on the Desktop, the way to use them is:

    Drag and Drop -- drag the icon for some other program (it also works for some types of documents) and
        drop it on the Drag and Drop icon on the Desktop

    Bump-n-Run -- double-click on the Bump-n-Run icon on the Desktop (or drag it to and drop it on the
        Drag and Drop icon, if you have both).  You should see a thin line going down the top part of the
        left edge of the screen.  Drag the icon of the program you want to run or the document you want
        to open "through" that edge.

Dan D
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.045s | Server load: 0.07 ]