Results 1 to 5 of 5

Thread: Save a text into the clipbard from a form with the B.NET Clipboard.SetDataObjec

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838

    Save a text into the clipbard from a form with the B.NET Clipboard.SetDataObjec

    Hello,
    In my future RRGoogleMapsTools plugin , i need to save a text (latitude, longitude) from a window
    when i click on a google maps point .
    So, i have tried firstly to add a clipboard option into my html file by that don't run .
    Secondly, i have tried the VB.NET Clipboard.SetDataObjec function as:
    Code:
    Clipboard.SetDataObject(frm.tag, True)
    But that return me the RR screen name 'RRGoogleMapsTools.skin'
    Attached Images Attached Images  

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,247
    course it will, thats the contents of "frm.tag" its just a string
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Quote Originally Posted by mitchjs View Post
    course it will, thats the contents of "frm.tag" its just a string
    That don't help me mitchjs !
    I have found a solution on the web !
    Code:
                Case "gmaps_setclipboard"
                    SendKeysToApplication(vbNullString, "GmapsApiForm", "^c")
                    'Get the data stored in the clipboard
                    Dim iData As IDataObject = Clipboard.GetDataObject()
                    'Check to see if the data is in a text format
                    If iData.GetDataPresent(DataFormats.Text) Then
                        'If it's text, then paste it into the textbox
                        CMD = "SETVAR;RRGoogleMapsToolsInfo;A gps coordinate is saved .<crlf>You can use the 'Point To '" & SDK.GetInfo("gmaps_gpsname") & "command ...||menu;RRGoogleMapsTools_info.skin"
                    Else
                        'If it's not text, print a warning message
                        CMD = "SETVAR;RRGoogleMapsToolsInfo;Please, select the Gps coordinates before<crlf>to use this function ...||menu;RRGoogleMapsTools_info.skin"
                    End If
                    gps = Split(CType(iData.GetData(DataFormats.Text), String), ",")
                    CMD = "SETVAR;GPSLATCLIP;" & CStr(Math.Round(Val(gps(0)), 6)) & "||SETVAR;GPSLONCLIP;" & CStr(Math.Round(Val(gps(1)), 6)) & "||SETVAR;ADDRESSCLIP;" & getGoogleMapsReverseGeocode(CStr(Math.Round(Val(gps(0)), 6)), CStr(Math.Round(Val(gps(1)), 6)))
                    Clipboard.Clear()
                    ProcessCommand = 3
    The red line does a CTRL C on the selected line and the blue line give me the result !
    Another way for get the clipboard value is 'My.Computer.Clipboard.GetText()' .

  4. #4
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,247
    messy if you ask me...

    your going to drive me crazy with all your SETVARS!!!

    use... SDK.SetUserVar("varname", value)
    its instant, and less work for RR
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  5. #5
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Quote Originally Posted by mitchjs View Post
    messy if you ask me...

    your going to drive me crazy with all your SETVARS!!!

    use... SDK.SetUserVar("varname", value)
    its instant, and less work for RR
    In the majority case, i use the SDK.SetUserVar command ! But infact, here i had forgotten that !! oops

Similar Threads

  1. FS: Small Form Factor PC, Ultra Small Form Factor Motherboards
    By NiteMax Mark in forum Classified Archive
    Replies: 1
    Last Post: 01-23-2007, 03:52 AM
  2. copying coordinates to Clipboard
    By Nomader in forum Road Runner
    Replies: 17
    Last Post: 12-28-2006, 09:45 AM
  3. new sub form suggestion
    By liquid_smoke in forum Road Runner
    Replies: 16
    Last Post: 06-23-2006, 10:42 AM
  4. What form factor does everyone use?
    By J-Fame in forum General Hardware Discussion
    Replies: 9
    Last Post: 01-19-2005, 11:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •