Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherProject Help Wanted

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 4th, 2002, 12:19 PM
freelight freelight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 4 freelight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb A Super Mini App

Well. I need a willing genius to create a super easy and small COPY|PASTE program. The idea is to have 2 buttons. One Copy.One Paste...on a mini toolbar. It would always be "on Top" so you could select text...hit the copy button...then goto Wordpad...hit the paste button and the text is entered. It seems easy enough. I have a bad back so I sit back in my chair and have no access to the keyboard. Well, if anyone is savvy enough, I am willing to trade. For something. Please let me know, and I look forward to any help in the right direction. I have yet to find such a simple program. If anyone knows of one, I would be appreciative. Thanks! PS...I use Windows XP.

Reply With Quote
  #2  
Old July 4th, 2002, 03:09 PM
NoXcuz's Avatar
NoXcuz NoXcuz is offline
Wiking
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Sep 2000
Location: Sweden
Posts: 3,608 NoXcuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 49 m 27 sec
Reputation Power: 11
Heh, if you were using Linux, you would already have that support built in by using GPM...
But there are programable mice out there, and the use of the right mouse button to copy and paste works most of the time, doesn't it?

//NoXcuz
__________________
UN*X is sexy!
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep

Reply With Quote
  #3  
Old July 4th, 2002, 06:36 PM
MattWil MattWil is offline
YaBN (Yet another BSD Newbie)
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 74 MattWil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Wouldn't it be easier to just highlight the text, then right click on it and hit copy?
__________________
-MattWil

Reply With Quote
  #4  
Old July 22nd, 2002, 09:20 AM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
...
__________________
~ Joe Penn

Reply With Quote
  #5  
Old August 19th, 2002, 04:57 PM
PHPIdiot's Avatar
PHPIdiot PHPIdiot is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 5 PHPIdiot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by MattWil
Wouldn't it be easier to just highlight the text, then right click on it and hit copy?


then go WordPad, right click on page and hit paste.

Reply With Quote
  #6  
Old August 19th, 2002, 08:08 PM
freelight freelight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 4 freelight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok folks...I don't want to Right click...or have to hit ctr.c ctr. v. I want 2 buttons. One copy one paste. No one seems to be able to do it. I get the same advice, just no app. If it cannot be done, I want to know. If someone can do it, I would be super happy. I want to be able to select the 32X32 icon to be the copy|paste buttons. It will be customizable. Thanks!

Reply With Quote
  #7  
Old August 20th, 2002, 09:30 AM
ScottBP ScottBP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: CA US
Posts: 62 ScottBP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Here is the code you are looking for I hope it helps.

http://www.js-examples.com/example/...1&COLOR_OFF=YES

Good Luck,

Scott
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott B. Pier
ScottBP@amalla.com
http://www.amalla.com

Reply With Quote
  #8  
Old August 20th, 2002, 02:23 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
you want it to work general so you can use it eg. on a infrared remote control?

for programmers:
send WM_COPY,0,0 to the one control, WM_PASTE,0,0 to the other, it´s not that hard, no?
HWND GetTopWindow(HWND parent) should retrieve the active window´s id for the sendmessage command.

freelight: do you want source code? delphi or c++? or only a compiled program?
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #9  
Old August 20th, 2002, 02:53 PM
freelight freelight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 4 freelight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi. I have no coding talent. All I am looking for is a small, completed application to run on Win XP. M.Hirsch a.k.a. Code Wizard-You seem to know what I want. Is it possible to get it in an .exe file? It would really help. I have developed signs of RSDS from using my mouse. This app would really be a hand saver. Plus, I think it is a great idea and is convenient. Thanks...I really do appreciate it. If I can trade you for a working app, I would love to do so. Let me know.

freelight

Reply With Quote
  #10  
Old August 20th, 2002, 02:59 PM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
I'd really suggest you check out some of the voice recognition software available. Dragon Naturally Speaking Pro V6 has some really great features...
__________________
FSBO (For Sale By Owner) Realty

Reply With Quote
  #11  
Old August 20th, 2002, 03:19 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
it´s a little harder than i thought first. pressing the button activates your app and then you cannot copy to the clipboard anymore since it would copy the button...

a command line tool instead? (call as "clphlp.exe copy" or "clphlp.exe paste")

how do you want to control the program? with a mouse? or do you need it as an utility for girder eg. (this is what i coded stuff like this for before...)

anyway, i need to go to bed and continue tomorrow.. see you then (i hope i can get here a little earlier...)

Reply With Quote
  #12  
Old August 20th, 2002, 03:49 PM
freelight freelight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 4 freelight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi. I will be controling it with a mouse. One click copies the selected text in whatever(web site-word pad) and the paste copies the text to the selected program. It has to sit on top so that other programs do not hide it. Otherwise, the only other feature I would like is the ability to select a 32X32 pixel icon for each button. I really hope to hear from you. I totally appreciate your willingness to tackle this problem. It sounds like you are the guy who can get it done. After months of searching the net.

Thanks again.

Reply With Quote
  #13  
Old August 21st, 2002, 12:44 PM
noslenj123 noslenj123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Phoenix, AZ
Posts: 482 noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 21 h 34 m 11 sec
Reputation Power: 30
M.Hirsch,

Seems like you could use the EnumWindows API to find the window with the highest z-order which should give you the windows with focus other than the copy app.

Reply With Quote
  #14  
Old August 21st, 2002, 04:32 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Thanks for the hint, but EnumWindows(EX) always returns the same order of windows, no relation to the z-order. but z-order was the keyword i was after. I now use GetNextWindow() to get the window that had the focus before (i assume it is the one that is directly below mine)

get me another 10mins, i´ll post the program then (with source code for those who are interested...)

of course i take no liability or whatsoever, nor do i guarantee that it works at all and does not kill your system

Reply With Quote
  #15  
Old August 21st, 2002, 04:53 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
hmmm. still does not work...
sorry, i start holidays tomorrow, i´ll be back in 10 days. till then i can´t go on with this. i´ll post what i have sofar, maybe someone else can continue...

- WM_COPY and WM_PASTE need to be sent to EDIT controls only.
Code:
wnd=GetNextWindowID();
SetForegroundWindow(wnd);
AttachThreadInput(GetWindowThread(hwnd),GetWindowThread(wnd), true);
.. how to find the active child window???
cwnd=????
SendMessage(cwnd, WM_COPY,0,0);
AttachThreadInput(GetWindowThread(hwnd),GetWindowThread(wnd), false);
SetForegroundWindow(hwnd);


M.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > A Super Mini App


Thread Tools  Search this Thread 
Search this Thread: