FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Dummy Message
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 21, 22, 23  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Dec 17, 2003 6:56 pm    Post subject: Re: Digest Number 515 Reply with quote

Hey,

Thanks for the great app, Jonas. Bought it immediately after getting my =
=20
new 12" PBG4 and T610.

Have a request for a feature I have seen in the Windows counterpart of=20=20
Salling Clicker (a free program). There you can with the click of a=20=20
button insert text into any selected textfield in any program. It's a=20=20
feature in "Mouse Mode". Just select the field, click * - you get a=20=20
text input on the T610, hit OK and the text appears in the textfield.

Would probably be easy for someone who's talented with AppleScript...


Yours cincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

> O S K A R L I S S H E I M - B O =CB T H I U S
Composer & Webdesigner
Kingdom of Sweden

Home: http://www.avocade.com/
Cell: +46 (0) 736-525420



On 2003-12-17, at 17.16, ericssonclient@yahoogroups.com wrote:

> There are 6 messages in this issue.
>
> Topics in this digest:
>
> 1. Re: Mobile calls through your Mac
> From: Jay Jacobs
> 2. MacWorld presence
> From: Jonas Salling
> 3. Avoiding an address book crash on incoming phone call
> From: magenta@t...
> 4. GP Arrows script
> From: Hans van Maanen
> 5. Re: GP Arrows script
> From: Jonas Salling
> 6. Re: GP Arrows script
> From: hans@v...
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 1
> Date: Tue, 16 Dec 2003 09:12:43 -0800 (PST)
> From: Jay Jacobs
> Subject: Re: Mobile calls through your Mac
>
> You might want to check Phlink. . .
>
> http://www.ovolab.com/phlink/
>
> --- ericssonclient@yahoogroups.com wrote:
>> Message: 1
>> Date: Mon, 15 Dec 2003 13:38:09 +0100
>> From: stefan r.ernst
>> Subject: Re: Mobile calls through your Mac
>>
>>>> Is it possible to receive phone calls through the built in mic &
>>>> speakers of your mac, as you would a bluetooth handsfree earpiece?
>>> Eaven Language translation at a low level format (for thouse who=B4re
>>> aiming high ;)
>> that would actually be pretty nifty. =3DP
>>
>> being able to use vst/au plugins for calls would be quite a fun thing =
=20
>> i
>> guess.
>> although i don't know if it'd make any useful sense.
>>
>> bye,
>> stefan.
>>
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 2
> Date: Tue, 16 Dec 2003 18:19:33 +0100
> From: Jonas Salling
> Subject: MacWorld presence
>
> Hello!
>
> Just wanted to let you know that Salling Software will have at least
> some presence at MacWorld Expo in San Francisco (Jan 5-9, 2004).
>
> I'll be giving two Clicker demonstrations in a "miniature auditorium"
> in OWC's booth (#2233). If you haven't seen the Palm version or Sony
> Ericsson version of in action yet, this may be a good time to do it. In
> any event, it'll be a nice opportunity to say hello after the
> presentation.
>
> There's be other presentations happening there as well. You can check
> out the schedule at:
>
> http://eshop.macsales.com/Reviews/Framework.cfm?page=3D/macworld2004/
> mwsfo2004.html
> (all on one line)
>
> I hope to see as many people as possible there!
>
> Cheers,
> Jonas
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 3
> Date: Tue, 16 Dec 2003 18:21:40 -0000
> From: magenta@t...
> Subject: Avoiding an address book crash on incoming phone call
>
> I had a hunch about the source of the AB crashes, and decided to try=20=20
> simply disabling
> Clicker's incoming phonecall notification thing. That seems to have=20=20
> stopped AB from
> crashing.
>
> My guess is that what happens is that the phone only sends the=20=20
> incoming call
> message out once, and Clicker happens to handle it first (and then=20=20
> deallocates the
> memory), and perhaps by the time Address Book tries handling it, it's =
=20
> now a dangling
> pointer.
>
> Is the bluetooth messaging API in Objective-C? If so, maybe Clicker=20=20
> is just forgetting
> to do something like [message retain] before [message release], or=20=20
> maybe doing
> [message autorelease] instead would help. :) Or maybe it's just a bug =
=20
> in the bluetooth
> stack, where they assumed that only one device would handle any one=20=20
> message.
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 4
> Date: Tue, 16 Dec 2003 20:03:56 +0100
> From: Hans van Maanen
> Subject: GP Arrows script
>
> Hi --
>
> I just whipped up a script to simulate arrow key presses from any
> application -- your
> phone knows which application is in front. Here's the 'manual':
>
> ****
> General purpose Arrow simulator
>
> Now you can use your phone to do a page-up or a page-down, go Home or
> to the
> End, in any application =97 Word, iTunes, Keynote, whatever.
> This means you can read a document, start and stop a song, do a
> presentation, all with
> the same GP Arrows action script! You can even use the
> command-arrow-keys, as in iTunes and
> EyeTV, plus the spacebar, the escape key and command-tab. And if you
> really want
> to, you can simulate a mouse click...
>
> Joystick or Volume up : page up
> Joystick or Volume down : page down
> Joystick left : home
> Joystick right : end
>
> 2, 4, 6, 8 : arrow keys
> 5, 7, 9, 0 : command arrow keys
> 1 : page up
> 3 : page down
>
> * : space bar
> C : escape
> # : help
> Push or OK: mouse click
>
> For T610 etc: press the camera button to switch between two
> applications, like
> command-tab does.
> ****
>
> I think GP Arrows needs at least 10.2.8, with the System Events, but
> I=92m not sure...
> Please let me know. And let me know if there's something wrong with the
> whole thing!
>
> Also, I decided against a live update on the phone so you can see to
> what application
> the click is sent to. Jonas' documentation on what goed on behind the
> scenes is still a
> bit lacking, and some strange things happen going in and out of
> functions. So, you click first, then GP Arrows tells you what
> application the click was sent to.
>
> Hm, now how do I attach this script? Does this work? If not, go to
> http://www.vanmaanen.org/hans/diversen/clicker/
>
>
> ----------
>
>
>
> Cheers,
> Hans van Maanen
>
> [This message contained attachments]
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 5
> Date: Tue, 16 Dec 2003 20:07:05 +0100
> From: Jonas Salling
> Subject: Re: GP Arrows script
>
> Sorry about the somewhat lacking documentation. I'm way busy here
> working on an update. Can't talk about it yet, though. Please sent any
> scripting questions to the list; it seems like they are being taken
> care of quite well.
>
> Cheers,
> Jonas
>
> On 2003-12-16, at 20.03, Hans van Maanen wrote:
>
>> Also, I decided against a live update on the phone so you can see to
>> what application
>> the click is sent to. Jonas' documentation on what goed on behind the
>> scenes is still a
>> bit lacking, and some strange things happen going in and out of
>> functions. So, you click first, then GP Arrows tells you what
>> application the click was sent to.
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
> Message: 6
> Date: Tue, 16 Dec 2003 19:12:16 -0000
> From: hans@v...
> Subject: Re: GP Arrows script
>
> I didn't mean to criticize. I've done some programming before, so I'm =
=20
> used to strange
> things happening behind the curtains. And yes, the list is always=20=20
> helpful.
>
> Hans
>
> --- In ericssonclient@yahoogroups.com, Jonas Salling=20=20
> wrote:
>> Sorry about the somewhat lacking documentation. I'm way busy here
>> working on an update. Can't talk about it yet, though. Please sent any
>> scripting questions to the list; it seems like they are being taken
>> care of quite well.
>>
>> Cheers,
>> Jonas
>>
>> On 2003-12-16, at 20.03, Hans van Maanen wrote:
>>
>>> Also, I decided against a live update on the phone so you can see to
>>> what application
>>> the click is sent to. Jonas' documentation on what goed on behind the
>>> scenes is still a
>>> bit lacking, and some strange things happen going in and out of
>>> functions. So, you click first, then GP Arrows tells you what
>>> application the click was sent to.
>
>
>
> _______________________________________________________________________=20
> _
> _______________________________________________________________________=20
> _
>
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> -----------------------------------------------------------------------=20
> -
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/ericssonclient/
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
> -----------------------------------------------------------------------=20
> -
>
>
Back to top
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Wed Dec 17, 2003 8:02 pm    Post subject: Re: Digest Number 515 Reply with quote

Hello!

Yes. This would be quite easy to do. But, do we really want to enter
URLs and such things using 3-tap methods? For me, I'm hoping for
AppleScript access to Safari bookmarks...

Best,
Jonas

On Dec 17, 2003, at 5:58 PM, Oskar Lissheim-Boethius wrote:

> Thanks for the great app, Jonas. Bought it immediately after getting
> my new 12" PBG4 and T610.
>
> Have a request for a feature I have seen in the Windows counterpart of
> Salling Clicker (a free program). There you can with the click of a
> button insert text into any selected textfield in any program. It's a
> feature in "Mouse Mode". Just select the field, click * - you get a
> text input on the T610, hit OK and the text appears in the textfield.
>
> Would probably be easy for someone who's talented with AppleScript...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Wed Dec 17, 2003 8:09 pm    Post subject: Re: Digest Number 515 Reply with quote

This could be used to reply to IM messages too, or numerous other things
other than www browsing...

Dan

On Wed, Dec 17, 2003 at 07:02:28PM +0100, Jonas Salling wrote:
> Hello!
>
> Yes. This would be quite easy to do. But, do we really want to enter
> URLs and such things using 3-tap methods? For me, I'm hoping for
> AppleScript access to Safari bookmarks...
>
> Best,
> Jonas
>
> On Dec 17, 2003, at 5:58 PM, Oskar Lissheim-Boethius wrote:
>
> >Thanks for the great app, Jonas. Bought it immediately after getting
> >my new 12" PBG4 and T610.
> >
> >Have a request for a feature I have seen in the Windows counterpart of
> >Salling Clicker (a free program). There you can with the click of a
> >button insert text into any selected textfield in any program. It's a
> >feature in "Mouse Mode". Just select the field, click * - you get a
> >text input on the T610, hit OK and the text appears in the textfield.
> >
> >Would probably be easy for someone who's talented with AppleScript...



Back to top
Guest






PostPosted: Wed Dec 17, 2003 8:12 pm    Post subject: Re: Digest Number 515 Reply with quote

In fact is there a way to do IM from the phone?? i.e. MSN messenger via=20
SEC?

On 17 Dec 2003, at 18:06, Daniel wrote:

> This could be used to reply to IM messages too, or numerous other=20
> things
> other than www browsing...
>
> Dan
>
> On Wed, Dec 17, 2003 at 07:02:28PM +0100, Jonas Salling wrote:
> > Hello!
> >
> > Yes. This would be quite easy to do. But, do we really want to enter
> > URLs and such things using 3-tap methods? For me, I'm hoping for
> > AppleScript access to Safari bookmarks...
> >
> > Best,
> > Jonas
> >
> > On Dec 17, 2003, at 5:58 PM, Oskar Lissheim-Boethius wrote:
> >
> > >Thanks for the great app, Jonas. Bought it immediately after getting
> > >my new 12" PBG4 and T610.
> > >
> > >Have a request for a feature I have seen in the Windows counterpart=20
> of
> > >Salling Clicker (a free program). There you can with the click of a
> > >button insert text into any selected textfield in any program. It's=20
> a
> > >feature in "Mouse Mode". Just select the field, click * - you get a
> > >text input on the T610, hit OK and the text appears in the=20
> textfield.
> > >
> > >Would probably be easy for someone who's talented with=20
> AppleScript...
>
>
>
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
>
>
> Yahoo! Groups Links
>
> =95 To visit your group on the web, go to:
> http://groups.yahoo.com/group/ericssonclient/
> =A0
> =95 To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
> =A0
> =95 Your use of Yahoo! Groups is subject to theYahoo! Terms of Service.
>
>=20=20
Back to top
Guest






PostPosted: Wed Dec 17, 2003 10:46 pm    Post subject: Re: Digest Number 515 Reply with quote

Hello

Maybe this script could be helpfull.

I use a slightly different one to autorelogin to my mac.

Together with the mouse script it could be the thing you are looking
for.


---------script-------

property myreturn : false
property the_text : ""
property casestring : "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
tell application "SEC Helper"
enter text field mode title "Enter text" prompt "Message" affirmative
response "insert" negative response "mycancel"
end tell

on insert(the_text)
try
tell application "SEC Helper"
considering case
repeat with i from 1 to count the_text
if (item i of the_text is in casestring) then
simulate keyboard modifiers {"shift"} charcode (ASCII number
(item i of the_text))
else
simulate keyboard charcode (ASCII number (item i of the_text))
end if
end repeat
end considering
if myreturn is true then
delay 1
simulate keyboard charcode (ASCII number return)
end if
end tell
on error
beep
end try
end insert

on mycancel()
end mycancel

---------script-------

I hope this helps a little

Best Matthias





Am 17.12.2003 um 19:06 schrieb Daniel:

> This could be used to reply to IM messages too, or numerous other
> things
> other than www browsing...
>
> Dan
>
> On Wed, Dec 17, 2003 at 07:02:28PM +0100, Jonas Salling wrote:
>> Hello!
>>
>> Yes. This would be quite easy to do. But, do we really want to enter
>> URLs and such things using 3-tap methods? For me, I'm hoping for
>> AppleScript access to Safari bookmarks...
>>
>> Best,
>> Jonas
>>
>> On Dec 17, 2003, at 5:58 PM, Oskar Lissheim-Boethius wrote:
>>
>>> Thanks for the great app, Jonas. Bought it immediately after getting
>>> my new 12" PBG4 and T610.
>>>
>>> Have a request for a feature I have seen in the Windows counterpart
>>> of
>>> Salling Clicker (a free program). There you can with the click of a
>>> button insert text into any selected textfield in any program. It's a
>>> feature in "Mouse Mode". Just select the field, click * - you get a
>>> text input on the T610, hit OK and the text appears in the textfield.
>>>
>>> Would probably be easy for someone who's talented with AppleScript...
>
>
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/ericssonclient/
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
Back to top
Guest






PostPosted: Wed Dec 17, 2003 10:54 pm    Post subject: Re: Digest Number 515 Reply with quote

Hi Jonas

Safary Bookmarks are stored in the Library/Safari/Bookmarks.plist file

You can access them via the known do shell script "defaults read
Bookmarks ..." command.

Itīs a little tricky to get rid of the folder structure of the .plist
file, but Iīm shure itīs nothing you canīt handle ;-)

Best Matthias



Am 17.12.2003 um 19:06 schrieb Daniel:

> This could be used to reply to IM messages too, or numerous other
> things
> other than www browsing...
>
> Dan
>
> On Wed, Dec 17, 2003 at 07:02:28PM +0100, Jonas Salling wrote:
>> Hello!
>>
>> Yes. This would be quite easy to do. But, do we really want to enter
>> URLs and such things using 3-tap methods? For me, I'm hoping for
>> AppleScript access to Safari bookmarks...
>>
>> Best,
>> Jonas
>>
>> On Dec 17, 2003, at 5:58 PM, Oskar Lissheim-Boethius wrote:
>>
>>> Thanks for the great app, Jonas. Bought it immediately after getting
>>> my new 12" PBG4 and T610.
>>>
>>> Have a request for a feature I have seen in the Windows counterpart
>>> of
>>> Salling Clicker (a free program). There you can with the click of a
>>> button insert text into any selected textfield in any program. It's a
>>> feature in "Mouse Mode". Just select the field, click * - you get a
>>> text input on the T610, hit OK and the text appears in the textfield.
>>>
>>> Would probably be easy for someone who's talented with AppleScript...
>
>
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/ericssonclient/
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>


Back to top
Guest






PostPosted: Sat Dec 27, 2003 11:56 pm    Post subject: couch-browsing Reply with quote

Hi,

I bought Salling Clicker 2 some months ago. Great app, but I still=20
haven't found a way to enter text on my T610 and make it appear in a=20
selected textfield in macosx using Mouse Mode. This is something I miss=20
from the (free) PC clickers I used before moving to mac. I used it to=20
enter URL's in the browser from the couch. Couch-surfing...

Is this on the to-do list, or haven't I just found the way to activate=20
the function?


Yours cincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

> O S K A R L I S S H E I M - B O =CB T H I U S
Composer & Webdesigner
Kingdom of Sweden

Home: http://www.avocade.com/
Cell: +46 (0) 736-525420


Back to top
marook
Hero


Joined: 30 Jul 2004
Posts: 336
Location: Copenhagen

PostPosted: Sun Dec 28, 2003 12:05 am    Post subject: Re: couch-browsing Reply with quote

Hi Oskar

On 27. dec 2003, at 22:56, Oskar Lissheim-Boethius wrote:

> I bought Salling Clicker 2 some months ago. Great app, but I still=20
> haven't found a way to enter text on my T610 and make it appear in a=20
> selected textfield in macosx using Mouse Mode. This is something I=20
> miss from the (free) PC clickers I used before moving to mac. I used=20
> it to enter URL's in the browser from the couch. Couch-surfing...
>
> Is this on the to-do list, or haven't I just found the way to activate=20
> the function?

Well, I haven't seen a script(action) yet that does so, but it should=20
be possible via GUI-Scripting...

____________________________________________
Jakob Peterh=E4nsel
Technical Engineer
Tel: +45 7022 1014
Fax: +45 7022 1013
Mob: +45=A022 68 49 61
jp@n...
www.NetPoint.com

Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Guest






PostPosted: Sun Dec 28, 2003 12:43 am    Post subject: Re: couch-browsing Reply with quote

why not mouse click to your bookmark menu...


On Dec 27, 2003, at 5:05 PM, Marook Zuug Kenja wrote:

> Hi Oskar
>
> On 27. dec 2003, at 22:56, Oskar Lissheim-Boethius wrote:
>
>> I bought Salling Clicker 2 some months ago. Great app, but I still
>> haven't found a way to enter text on my T610 and make it appear in a
>> selected textfield in macosx using Mouse Mode. This is something I
>> miss from the (free) PC clickers I used before moving to mac. I used
>> it to enter URL's in the browser from the couch. Couch-surfing...
>>
>> Is this on the to-do list, or haven't I just found the way to
>> activate the function?
>
> Well, I haven't seen a script(action) yet that does so, but it should
> be possible via GUI-Scripting...
>
> ____________________________________________
> Jakob Peterhänsel
> Technical Engineer
> Tel: +45 7022 1014
> Fax: +45 7022 1013
> Mob: +45 22 68 49 61
> jp@n...
> www.NetPoint.com
>
>
>
> The information contained in this message is confidential or protected
> by law.
> If you are not the intended recipient, please contact the sender and
> delete this message. Any unauthorised copying of this message or
> unauthorised distribution of the information contained herein is
> prohibited.
>


Back to top
Guest






PostPosted: Sun Dec 28, 2003 11:19 pm    Post subject: Re: couch-browsing Reply with quote

> Well, I haven't seen a script(action) yet that does so, but it should
> be possible via GUI-Scripting...

And that is.....? :)

Sorry, I'm no programmer, neither in c nor applescript. I'll try to=20
find the homepage to the bluetooth-clicker I used in Windows. Perhaps=20
they can give us some pointers


Yours cincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

> O S K A R L I S S H E I M - B O =CB T H I U S
Composer & Webdesigner
Kingdom of Sweden

Home: http://www.avocade.com/
Cell: +46 (0) 736-525420



Back to top
Guest






PostPosted: Sun Dec 28, 2003 11:23 pm    Post subject: Re: couch-surfing (windows app) Reply with quote

Found the Bluetooth app I used in Windows. It has an option to input=20
text in any textfield in any app.

http://home.planet.nl/~meer0038/


Yours cincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

> O S K A R L I S S H E I M - B O =CB T H I U S
Composer & Webdesigner
Kingdom of Sweden

Home: http://www.avocade.com/
Cell: +46 (0) 736-525420



Back to top
marook
Hero


Joined: 30 Jul 2004
Posts: 336
Location: Copenhagen

PostPosted: Mon Dec 29, 2003 12:52 am    Post subject: Re: Re: couch-browsing Reply with quote

Hi again,

On 28. dec 2003, at 22:14, Oskar Lissheim-Boethius wrote:

>> Well, I haven't seen a script(action) yet that does so, but it should
>> be possible via GUI-Scripting...
>
> And that is.....? :)
>
> Sorry, I'm no programmer, neither in c nor applescript. I'll try to=20
> find the homepage to the bluetooth-clicker I used in Windows. Perhaps=20
> they can give us some pointers

Ok, recommend looking into AppleScript then. ;-)

GUI scripting is an extention from Apple, that allows [most] of Mac OS=20
X's interface to be addressed via AppleScript. Have a look here to=20
start:
(It's part of 10.3 at least..)

http://www.apple.com/applescript/
http://www.apple.com/applescript/uiscripting/

If you are very new to this stuff, it's gonna take you a week or so,=20
but it will work.
What you would like to do, is this:

1: Present a Text-input on the phone/PDA using Clicker (enter text=20
field mode)
2a: Make sure the text returned is pasted into the URL field of the=20
browser and made a request (pressing Enter..)
or
2b: Use the browsers 'get location' or similar command directly via AS=20
events.
(Latest Safari has a 'URL' property for every window, so it could=20
be possible to 'set URL of window 1 to theTextEnteredViaClicker)


I hope I have sparked some interest into scripting... ;-)

Otherwise, oyher might take interest into this...

____________________________________________
Jakob Peterh=E4nsel
Technical Engineer
Tel: +45 7022 1014
Fax: +45 7022 1013
Mob: +45=A022 68 49 61
jp@n...
www.NetPoint.com

Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Guest






PostPosted: Mon Dec 29, 2003 12:56 am    Post subject: Re: Re: couch-surfing (windows app) Reply with quote

Hi

Here is a script that might be something you are looking for, maybe.

It would be easier with Jon=B4s commands because of the clipboard=20
funktion,

but I did it without.

It=B4s the original mouse script with a textpaster funktion=20
implementation.

Hit the * button on mobile and you can paste any text in any Textfield=20
or wherever your text

belongs as long as it=B4s possible to use a keyboard.

------script------

property myreturn : true
property myclear : false
property the_text : ""
property casestring : "ABCDEFGHIJKLMNOPQRSTUVWXYZ:*'?=3D)(/&%$=A7">_`!;"


property sIsHeld : false
property btnDown : false
property spd : 10
property scroll : 1
property scrollspeedup : 1
property zoom_mode : false

--- keymap
property leftMouseKeys : {"s" as Unicode text, "5" as Unicode text}
property rightMouseKeys : {"0" as Unicode text, "f" as Unicode text}
property upLeftKeys : {"1" as Unicode text}
property upRightKeys : {"3" as Unicode text}
property downLeftKeys : {"7" as Unicode text}
property downRightKeys : {"9" as Unicode text}
property leftKeys : {"<" as Unicode text, "4" as Unicode text}
property rightKeys : {">" as Unicode text, "6" as Unicode text}
property upKeys : {"^" as Unicode text, "2" as Unicode text}
property downKeys : {"v" as Unicode text, "8" as Unicode text}
property scrollUpKeys : {"u" as Unicode text}
property scrollDownKeys : {"d" as Unicode text}
property toggleScrollZoomKeys : {"c" as Unicode text}
property screenShotKeys : {":c" as Unicode text}
property textpaste : {"*" as Unicode text}

--- keymap descriptor record
property keymap_info : {=AC
{key_code:upLeftKeys, key_title:"Move left/up", key_description:"Moves=20
the mouse pointer left and up."}, =AC
{key_code:upRightKeys, key_title:"Move right/up",=20
key_description:"Moves the mouse pointer right and up."}, =AC
{key_code:downLeftKeys, key_title:"Move left/down",=20
key_description:"Moves the mouse pointer left and down."}, =AC
{key_code:downRightKeys, key_title:"Move right/down",=20
key_description:"Moves the mouse pointer right and down."}, =AC
{key_code:leftKeys, key_title:"Move left", key_description:"Moves the=20
mouse pointer to the left."}, =AC
{key_code:rightKeys, key_title:"Move right", key_description:"Moves=20
the mouse pointer to the right."}, =AC
{key_code:downKeys, key_title:"Move down", key_description:"Moves the=20
mouse pointer towards the bottom."}, =AC
{key_code:upKeys, key_title:"Move up", key_description:"Moves the=20
mouse pointer towards the top."}, =AC
{key_code:leftMouseKeys, key_title:"Click/Drag",=20
key_description:"Clicks the mouse button. Hold to grab/hold the mouse=20
button; click again to release."}, =AC
{key_code:rightMouseKeys, key_title:"Ctrl-click",=20
key_description:"Clicks the mouse button. Hold to grab/hold the mouse=20
button while holding ctrl; click again to release."}, =AC
{key_code:scrollUpKeys, key_title:"Scroll up", key_description:"Well.=20
Scrolls up... in a document"}, =AC
{key_code:toggleScrollZoomKeys, key_title:"Toggles zoom/scroll",=20
key_description:"Selects whether to zoom or scroll."}, =AC
{key_code:screenShotKeys, key_title:"Screen capture",=20
key_description:"Takes a screen shot of the Macintosh display."}, =AC
{key_code:scrollDownKeys, key_title:"Scroll down",=20
key_description:"Well. Scrolls down... in a document."}, =AC
{key_code:textpaste, key_title:"Text Field Mode",=20
key_description:"Enter a URL"}}


my mystart()

on mytextfield()
tell application "SEC Helper"
enter text field mode title "Enter text" prompt "Message" affirmative=20
response "insert" negative response "mycancel" value=20
"http://www.google.de"
end tell
end mytextfield

on insert(the_text)
try
tell application "SEC Helper"
=09=09=09
considering case
repeat with i from 1 to count the_text
if (item i of the_text is in casestring) then
simulate keyboard modifiers {"shift"} charcode (ASCII number=20
(item i of the_text))
else
simulate keyboard charcode (ASCII number (item i of the_text))
end if
end repeat
end considering
if myreturn is true then
delay 1
simulate keyboard charcode (ASCII number return)
end if
end tell
--my mytextfield()
on error
beep
end try
end insert

on mycancel()
end mycancel

on mystart()
tell application "SEC Helper"
if keymap of current terminal contains ":help" then
enter keypad mode text "Mouse mode"
else
enter keypad mode text "Mouse" & return & "(# for help)"
end if
end tell
end mystart

on showHelp()
tell application "SEC Helper"
show keypad help keymap keymap_info title "Mouse Help"
end tell
end showHelp

on key_was_depressed(keyCode)
try
tell application "SEC Helper"
if keyCode is in leftKeys then
simulate mouse movement x -scroll y 0 speed spd
else if keyCode is in rightKeys then
simulate mouse movement x scroll y 0 speed spd
else if keyCode is in upKeys then
simulate mouse movement x 0 y -scroll speed spd
else if keyCode is in downKeys then
simulate mouse movement x 0 y scroll speed spd
=09=09=09=09
else if keyCode is in upLeftKeys then
simulate mouse movement x -scroll y -scroll speed spd
else if keyCode is in upRightKeys then
simulate mouse movement x scroll y -scroll speed spd
else if keyCode is in downLeftKeys then
simulate mouse movement x -scroll y scroll speed spd
else if keyCode is in downRightKeys then
simulate mouse movement x scroll y scroll speed spd
=09=09=09=09
else if keyCode is in leftMouseKeys then
simulate mouse button down number 1
=09=09=09=09
set sIsHeld to false
=09=09=09=09
else if keyCode is in rightMouseKeys then
simulate mouse button down number 2
simulate mouse button up number 2
else if keyCode is in scrollUpKeys then
if zoom_mode then
simulate keyboard virtual keycode 24 modifiers {"option",=20
"command"}
else
simulate mouse scroll wheel steps 10
end if
else if keyCode is in scrollDownKeys then
if zoom_mode then
simulate keyboard virtual keycode 27 modifiers {"option",=20
"command"}
else
simulate mouse scroll wheel steps -10
end if
else if keyCode is "#" or keyCode is ":help" then
my showHelp()
else if keyCode is "*" then
if myclear is true then
simulate keyboard modifiers {"command"} charcode (ASCII number "L")
simulate keyboard virtual keycode 51
end if
my mytextfield()
end if
end tell
on error
beep
end try
return true
end key_was_depressed

on key_was_released(keyCode)
set scroll to 1
try
tell application "SEC Helper"
if keyCode is in toggleScrollZoomKeys then
my toggleScrollZoom()
else if keyCode is in screenShotKeys then
my capture_screen()
else if keyCode is in leftMouseKeys then
if sIsHeld is false then
if btnDown is true then
show screen message "Release"
set btnDown to false
end if
simulate mouse button up number 1
end if
else
simulate mouse stop
end if
end tell
on error
beep
end try
set sIsHeld to false
return true
end key_was_released

on key_is_repeating(keyCode)
try
tell application "SEC Helper"
if keyCode is in leftKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x -scroll y 0 speed spd
else if keyCode is in rightKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x scroll y 0 speed spd
else if keyCode is in upKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x 0 y -scroll speed spd
else if keyCode is in downKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x 0 y scroll speed spd
=09=09=09=09
else if keyCode is in upLeftKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x -scroll y -scroll speed spd
else if keyCode is in upRightKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x scroll y -scroll speed spd
else if keyCode is in downLeftKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x -scroll y scroll speed spd
else if keyCode is in downRightKeys then
set scroll to scroll + scrollspeedup
simulate mouse movement x scroll y scroll speed spd
end if
=09=09=09
if (keyCode is in leftMouseKeys) and sIsHeld is false then
if btnDown is true then
show screen message "Release"
set btnDown to false
simulate mouse button up number 1
else
show screen message "Grab"
set btnDown to true
simulate mouse button down number 1
end if
end if
=09=09=09
if keyCode is in scrollUpKeys then
if zoom_mode then
simulate keyboard virtual keycode 24 modifiers {"option",=20
"command"}
else
simulate mouse scroll wheel steps 10
end if
else if keyCode is in scrollDownKeys then
if zoom_mode then
simulate keyboard virtual keycode 27 modifiers {"option",=20
"command"}
else
simulate mouse scroll wheel steps -10
end if
end if
end tell
on error
beep
end try
set sIsHeld to true
end key_is_repeating

on toggleScrollZoom()
tell application "SEC Helper"
if keymap of current terminal contains "u" and keymap of current=20
terminal contains "d" then
if zoom_mode then
show screen message "Scrolling"
set zoom_mode to false
else
show screen message "Zooming"
set zoom_mode to true
end if
else
enter popup mode text "Zoom/scroll not available: this device=20
doesn't have a slider."
end if
end tell
end toggleScrollZoom

on capture_screen()
set the destination_folder to (path to "pdoc")
set the destination_path to POSIX path of the destination_folder
try
repeat with i from 1 to 10000
set the file_name to ("screen" & (i as string) & ".pdf")
alias ((destination_folder as string) & file_name)
end repeat
on error
set the target_path to the destination_path & the file_name
end try
=09
do shell script ("screencapture " & target_path)
=09
set my_path to (POSIX file target_path)
set my_picture to read (alias my_path) as picture
=09
tell application "SEC Helper"
if supports keypad images of current terminal then
--- If the terminal can't show pictures, immediately show the image=20
on the Mac.
enter keypad mode text "Captured Screen:" & return & target_path=20
image my_picture image size huge
else
show screen message "Saved at " & target_path duration 8.0
end if
end tell
end capture_screen



------script------

Am 28.12.2003 um 22:22 schrieb Oskar Lissheim-Boethius:

> Found the Bluetooth app I used in Windows. It has an option to input=20
> text in any textfield in any app.
>
> http://home.planet.nl/~meer0038/
>
>
> Yours cincerely,
>
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>
> > O S K A R L I S S H E I M - B O =CB T H I U S
> Composer & Webdesigner
> Kingdom of Sweden
>
> Home: http://www.avocade.com/
> Cell: +46 (0) 736-525420
>
>
>
Back to top
Guest






PostPosted: Mon Dec 29, 2003 1:02 am    Post subject: Re: couch-browsing Reply with quote

sorry something is wrong

you need to edit the line with (ASCII number "L") to (ASCII number "A")

in order to remove the text that was in the Text field before.


Am 28.12.2003 um 23:52 schrieb Marook Zuug Kenja:

> Hi again,
>
> On 28. dec 2003, at 22:14, Oskar Lissheim-Boethius wrote:
>
>>> Well, I haven't seen a script(action) yet that does so, but it should
>>> be possible via GUI-Scripting...
>>
>> And that is.....? :)
>>
>> Sorry, I'm no programmer, neither in c nor applescript. I'll try to=20
>> find the homepage to the bluetooth-clicker I used in Windows. Perhaps=20
>> they can give us some pointers
>
> Ok, recommend looking into AppleScript then. ;-)
>
> GUI scripting is an extention from Apple, that allows [most] of Mac OS=20
> X's interface to be addressed via AppleScript. Have a look here to=20
> start:
> (It's part of 10.3 at least..)
>
> http://www.apple.com/applescript/
> http://www.apple.com/applescript/uiscripting/
>
> If you are very new to this stuff, it's gonna take you a week or so,=20
> but it will work.
> What you would like to do, is this:
>
> 1: Present a Text-input on the phone/PDA using Clicker (enter text=20
> field mode)
> 2a: Make sure the text returned is pasted into the URL field of the=20
> browser and made a request (pressing Enter..)
> or
> 2b: Use the browsers 'get location' or similar command directly via AS=20
> events.
> (Latest Safari has a 'URL' property for every window, so it could=20
> be possible to 'set URL of window 1 to theTextEnteredViaClicker)
>
>
> I hope I have sparked some interest into scripting... ;-)
>
> Otherwise, oyher might take interest into this...
>
> ____________________________________________
> Jakob Peterh=E4nsel
> Technical Engineer
> Tel: +45 7022 1014
> Fax: +45 7022 1013
> Mob: +45=A022 68 49 61
> jp@n...
> www.NetPoint.com
>
>
>
> The information contained in this message is confidential or protected=20
> by law.
> If you are not the intended recipient, please contact the sender and=20
> delete this message. Any unauthorised copying of this message or=20
> unauthorised distribution of the information contained herein is=20
> prohibited.
>
Back to top
Guest






PostPosted: Mon Dec 29, 2003 3:40 pm    Post subject: Re: couch-browsing (compile) Reply with quote

> sorry something is wrong
>
> you need to edit the line with (ASCII number "L") to (ASCII number "A")
>
> in order to remove the text that was in the Text field before.

Thankyou very much for helping!

Sadly I didn't get the script to compile so I haven't been able to try=20
it yet. I changed what you said, but it says "Expected expression etc.=20
Found end of line" at the beginning of the "keymap descriptor record"=20
...


Yours cincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

> O S K A R L I S S H E I M - B O =CB T H I U S
Composer & Webdesigner
Kingdom of Sweden

Home: http://www.avocade.com/
Cell: +46 (0) 736-525420



Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 21, 22, 23  Next
Page 18 of 23

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group