Results 1 to 4 of 4
  1.    #1  
    Hello everyone. I'm trying to build an application similar to a Pay App called Speed Reader1. The Program "which cost ten bucks" Take data from the Palm Clipboard "text only" then Displays the Text Word by Word, but in a larger font at the top of the screen.

    Get a Free Evaluation of the Program Here
    http://www.palmgear.com/index.cfm?fu...0&prodid=45596


    I have Already written the code to:
    Handle locating the Words “ space separated”
    Moving the Words to the Middle of the Screen “with back ground”
    Increasing the Font Size and Bold

    But I have no Idea how to get Information from the Clip Board using HB++.

    What I really wanted to make was a DA type of app that can be called using a hard button, and run on top of another apps’ “i.e. Acrobat reader”. You would select all Text to be read, call the App then it would start to Display each word in the middle of the screen.

    Any Information of Accessing the Clipboard in HB++ Would be greatly appreciated.

    If you interested in helping with this project Drop me an email. Clarence101@sprintpcs.com

    Thanks
    Build Systems, Not Products
    <center>All Comments © Copyright Clarence C Middleton 2005-2006, All Rights Reserved<br /> <a href="mailto:ClarenceCM3@gmail.com">ClarenceCM3@gmail.com</a><br /><ahref ="http://www.middleton.ath.cx"><a href="http://www.middleton.ath.cx">http://www.middleton.ath.cx</a><br /><a href="http://www.middleton.ath.cx"><img style="width: 124px; height: 54px;"src="http://www.middleton.ath.cx/photos/middletonlogo.gif" /></a></ahref><center />
  2. JPA
    JPA is offline
    JPA's Avatar
    Posts
    26 Posts
    #2  
    Hi Clarence,

    About the clipboard...That's easy!

    * You can use the Paste method of the Field class that inserts the contents of the clipboard into a field. Then get the Field's Text property and parse it.

    Code:
    Private Sub Button1_Click()
      Field1.Paste
      Msgbox Field1.Text & " was in the clipboard!"
    End Sub
    * If you don't want to use a field to retrieve the clipboard content..That's also pretty easy..Take a look at the following post (complete sample):

    HB++ Forums>More on the Clipboard

    Regards,

    JPA
    The HB++ team
  3.    #3  
    Using the ClipBoard Class I found on Your Support Forum I could use:


    Public Function GetString(byref sz as string) as Boolean
    dim n as Integer
    dim h as long
    Dim MyPtr as Long

    h=ClipboardGetItem(0,n)

    If n=0 then
    GetString=False
    Else
    'Lock the ressource
    MyPtr=MemHandleLock(h)
    'allocate the string
    sz=space(n)
    'copy the string
    MemMoveToString sz,MyPtr,n
    'unlock the ressource
    MemHandleUnlock h
    GetString=True
    End if
    End Function

    I will change this function to a Get WORD "seperated by a space" Function then

    Use the Sample Font Change Demos' Source to output the text in a more Readable Format.

    Set MyFontRes=App.Resource("NFNT",3)



    Is this the reference address of the Palm ClipBoard?
    Public Const sysTrapClipboardGetItem As Long = &HA10C

    Thanks for the Help JPA, your are the Best,
    Build Systems, Not Products
    <center>All Comments © Copyright Clarence C Middleton 2005-2006, All Rights Reserved<br /> <a href="mailto:ClarenceCM3@gmail.com">ClarenceCM3@gmail.com</a><br /><ahref ="http://www.middleton.ath.cx"><a href="http://www.middleton.ath.cx">http://www.middleton.ath.cx</a><br /><a href="http://www.middleton.ath.cx"><img style="width: 124px; height: 54px;"src="http://www.middleton.ath.cx/photos/middletonlogo.gif" /></a></ahref><center />
  4. JPA
    JPA is offline
    JPA's Avatar
    Posts
    26 Posts
    #4  
    Hi Clarence,

    Is this the reference address of the Palm ClipBoard?
    Public Const sysTrapClipboardGetItem As Long = &HA10C
    It's the trap of the ClipboardGetItem API function. You just need to paste the API declarations in a module as shown in the post I mentionned above.

    HTH

    JPA
    The HB++ team

Posting Permissions