Jump to content

Help with URL please


onefish
 Share

Recommended Posts

4 hours ago, onefish said:

$oHTTP.Open("GET","fmp://M......."

$oHTTP^ERROR

If I change get request to be "http://fmp://M........"

Then the error flag moves down the script to:

$oHTTP.Send()

$oHTTP^ERROR

That line is syntactically correct - it works on my machine (but I am not on Win10).  I also noticed the above info also where he seems to be able to create the object.  To be 100% sure I recommend following the advice of @AutoBert and checking that the object is being created with that error trapping statement. 

1 hour ago, AutoBert said:

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")

If Not IsObj($oHTTP) Then    

MsgBox(0,'Error','No Object created')    

Exit

EndIf

 

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Link to comment
Share on other sites

  • Developers

Please add a Com Error handler or use _DebugCOMError() and check the error information it will provide you.

This is described in the helpfile: page "Com Reference" which has a paragraph: "COM Error Handling"

Jos

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I got it to work! Turned out to be very simple in the end. I was able to send the url through the command line after enclosing everything after the filename in "". This left a single " at the end of the string in the Filemaker parameter which I could strip out with substitute. Anyway in the end it works without all that using:

ShellExecute ( "fmp://My/Really/Long/URL" )

I had been trying to execute the URL via an application previously. I feel really silly finding that the solution was so darn simple. Thanks for all your help guys :)

Edited by onefish
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...