Windows 10 put URL not returning results
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Windows 10 put URL not returning results
Hi There, On Windows 10 the following returns nothing when compiled, If i run it through LC 8.1.9 IDE then the result is returned in field "test". Also work on MAC. I have disabled the firewall completely. Any other settings required? I am running Windows 10 with Defender only, standard settings, I have tried running it as administrator, with the same result.
on mouseUp
put empty into field "test" of card "login"
put "EMPTY" into field "test" of card "login"
put url "http+://+www.+google+.com+" into field "test" of card "login"
end mouseUp
remove the + sign
on mouseUp
put empty into field "test" of card "login"
put "EMPTY" into field "test" of card "login"
put url "http+://+www.+google+.com+" into field "test" of card "login"
end mouseUp
remove the + sign
Re: Windows 10 put URL not returning results
Hallo Werner,
you can check "the result", which is EMPTY on success and if not, may give you some hints.
Tell us what you see, if any!
Best
Klaus
you can check "the result", which is EMPTY on success and if not, may give you some hints.
Code: Select all
...
put url "http://www.google.com" into field "test" of card "login"
if the result <> EMPTY then
answer ("Error:" && the result)
end if
...
Best
Klaus
Re: Windows 10 put URL not returning results
What Klaus said, for sure.
I am curious about some of your code though. For instance,
[put empty into field "xyz"] will clear out the field, as will [put "" into field "xyz"], however I would think [put "EMPTY"...] in quotes like you have it would put the word EMPTY into the field. Was that on purpose?
*Edit - disregard the following, I missed the "remove the + statement
Also, this line -
[put url "http+://+www.+google+.com+" into field "test" of card "login"]
I suspect that all those + signs are invalidating the address. Are they there to concatenate a string built up from elsewhere? If so, the actual code would look like this :
[put url ("http://" & "www." & "google" & ".com") into field "test" of card "login"]
In either case, though, I wasn't able to reproduce the issue here.
I am curious about some of your code though. For instance,
Code: Select all
put empty into field "test" of card "login"
put "EMPTY" into field "test" of card "login"
*Edit - disregard the following, I missed the "remove the + statement
Also, this line -
[put url "http+://+www.+google+.com+" into field "test" of card "login"]
I suspect that all those + signs are invalidating the address. Are they there to concatenate a string built up from elsewhere? If so, the actual code would look like this :
[put url ("http://" & "www." & "google" & ".com") into field "test" of card "login"]
In either case, though, I wasn't able to reproduce the issue here.
Re: Windows 10 put URL not returning results
Hi Klaus, thanks for the quick response, Have tried as suggested and nothing is returned, no error or result.Klaus wrote: ↑Mon Apr 16, 2018 5:13 pmHallo Werner,
you can check "the result", which is EMPTY on success and if not, may give you some hints.Tell us what you see, if any!Code: Select all
... put url "http:+//+www.+google+.com+" into field "test" of card "login" if the result <> EMPTY then answer ("Error:" && the result) end if ...
Best
Klaus
Re: Windows 10 put URL not returning results
Hi There, yes the first two was done on purpose, just to make sure that that something is recorded in the field before the url function is called. I see you using LC 9 Com, I will check it in LC 9 as well.bogs wrote: ↑Mon Apr 16, 2018 6:58 pmWhat Klaus said, for sure.
I am curious about some of your code though. For instance,[put empty into field "xyz"] will clear out the field, as will [put "" into field "xyz"], however I would think [put "EMPTY"...] in quotes like you have it would put the word EMPTY into the field. Was that on purpose?Code: Select all
put empty into field "test" of card "login" put "EMPTY" into field "test" of card "login"
*Edit - disregard the following, I missed the "remove the + statement
Also, this line -
[put url "http+://+www.+google+.com+" into field "test" of card "login"]
I suspect that all those + signs are invalidating the address. Are they there to concatenate a string built up from elsewhere? If so, the actual code would look like this :
[put url ("http://" & "www." & "google" & ".com") into field "test" of card "login"]
In either case, though, I wasn't able to reproduce the issue here.
Selection_003.png
Re: Windows 10 put URL not returning results
It took a while to install 8.1.9, but I did finally get it done. Unfortunately, I still wasn't able to produce the issue you seem to be having. It runs in the IDE, it runs after I compile it. Is the version of Lc your running a community or indy license?
Re: Windows 10 put URL not returning results
If I create a new stack then it works, On my current application it is not returning results, I have removed all inclusions and everything in the preOpenCard and preOpenStack without any success.bogs wrote: ↑Tue Apr 17, 2018 3:54 amIt took a while to install 8.1.9, but I did finally get it done. Unfortunately, I still wasn't able to produce the issue you seem to be having. It runs in the IDE, it runs after I compile it.
Selection_003.png
Is the version of Lc your running a community or indy license?
Re: Windows 10 put URL not returning results
If it works on its own in a new stack, then there is something wrong code wise, but I think you know that already.
Re: Windows 10 put URL not returning results
You have removed all the inclusions? You will need to check the box for internet requirement in the standalone settings and also include the libURL or tsNet libraries.
If you build the standalone with these inclusions then they will be saved in an external folder alongside your application exe. If you move the exe you will also need to move the external library.
If you build the standalone with these inclusions then they will be saved in an external folder alongside your application exe. If you move the exe you will also need to move the external library.
Re: Windows 10 put URL not returning results
Excellent, thank you, were missing tsNet library. Sorted thanks.SparkOut wrote: ↑Tue Apr 17, 2018 7:32 amYou have removed all the inclusions? You will need to check the box for internet requirement in the standalone settings and also include the libURL or tsNet libraries.
If you build the standalone with these inclusions then they will be saved in an external folder alongside your application exe. If you move the exe you will also need to move the external library.