|
Text to Cursor |
|
Revin Kevin (19:18 18/7/2004) monkeyson2 (21:03 18/7/2004) mavhc (21:15 18/7/2004) Revin Kevin (21:24 18/7/2004) monkeyson2 (22:26 18/7/2004) Revin Kevin (19:42 19/7/2004) Revin Kevin (23:19 22/7/2004) mavhc (12:00 23/7/2004) Revin Kevin (18:23 23/7/2004) monkeyson2 (23:36 23/7/2004)
|
|
Kevin Wells |
Message #57106, posted by Revin Kevin at 19:18, 18/7/2004 |
Member
Posts: 644
|
How do you in Dr Wimp get the text from an icon to the curser?
Like what HTML3 does
Thanks. ________ I did not do it. |
|
[ Log in to reply ] |
|
Phil Mellor |
Message #57107, posted by monkeyson2 at 21:03, 18/7/2004, in reply to message #57106 |
Please don't let them make me be a monkey butler
Posts: 12380
|
You need to send the text as keypresses to the Wimp using the Wimp_ProcessKey SWI.
output$="ying tong iddle i po" FOR char%=1 TO LEN(output$) SYS "Wimp_Poll",&E1972,block% TO reason% SYS "Wimp_ProcessKey",ASC(MID$(output$,char%,1)) NEXT
Wimp_Poll is needed because you can only insert a couple of characters at a time before the Wimp gets confused. The &E1972 is a poll mask so you don't get events returned that you ought to deal with.
If you're using WimpBasic I don't know how you'd do the equivalent to the above. |
|
[ Log in to reply ] |
|
Mark Scholes |
Message #57108, posted by mavhc at 21:15, 18/7/2004, in reply to message #57107 |
Member
Posts: 660
|
Wimp_SinglePoll or something in DrWimp for 1 poll to let the desktop multitask but not your app. |
|
[ Log in to reply ] |
|
Kevin Wells |
Message #57109, posted by Revin Kevin at 21:24, 18/7/2004, in reply to message #57108 |
Member
Posts: 644
|
Thanks to the both of you as between you it works.
Thanks ________ I did not do it. |
|
[ Log in to reply ] |
|
Phil Mellor |
Message #57111, posted by monkeyson2 at 22:26, 18/7/2004, in reply to message #57109 |
Please don't let them make me be a monkey butler
Posts: 12380
|
What are you writing? |
|
[ Log in to reply ] |
|
Kevin Wells |
Message #57161, posted by Revin Kevin at 19:42, 19/7/2004, in reply to message #57111 |
Member
Posts: 644
|
What are you writing? A form filler type of thing. It is wrote but can not upload as to many people ftping. ________ I did not do it. |
|
[ Log in to reply ] |
|
Kevin Wells |
Message #57319, posted by Revin Kevin at 23:19, 22/7/2004, in reply to message #57161 |
Member
Posts: 644
|
It is know uploaded to http://kevsoft.topcities.com/test2.html
But version 1.01 is being worked on. As soon as I can get the TAB key to be subsituted and Control U that will go to being a released copy, as well as the help file and the discription to make more sense. Any takers? ________ I did not do it. |
|
[ Log in to reply ] |
|
Mark Scholes |
Message #57324, posted by mavhc at 12:00, 23/7/2004, in reply to message #57319 |
Member
Posts: 660
|
TAB is probably code 9, ctrl-u 21, u being the 21st letter of the alphabet |
|
[ Log in to reply ] |
|
Kevin Wells |
Message #57326, posted by Revin Kevin at 18:23, 23/7/2004, in reply to message #57324 |
Member
Posts: 644
|
9 does not work, but 21 does.
Thanks ________ I did not do it. |
|
[ Log in to reply ] |
|
Phil Mellor |
Message #57330, posted by monkeyson2 at 23:36, 23/7/2004, in reply to message #57326 |
Please don't let them make me be a monkey butler
Posts: 12380
|
StrongHelp suggests tab is &18A, tab+shift &19A, tab+ctrl &1AA, tab+ctrl+shift &1BA. |
|
[ Log in to reply ] |
|
|