logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Daum  
#1 Posted : Sunday, October 22, 2023 1:15:37 AM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 74
Man
Germany

Thanks: 13 times
Was thanked: 9 time(s) in 9 post(s)
Hi Folks,

I have a piece of working code:

Code:
request2 = HttpWebRequest.Create("http://127.0.0.1:8088/api/?function=SetTextColour&Input=Videotimer&value=red")
//I cut out response etc...
;


as soon as I try to call the colour via hex e.g. #FF0000 it is not working.
wether it throws an exception
or the text gets transparent? colour value in title editor then is "00000000"

I tried $"....value={#FF0000}" (transparent) ; $"....value='{#FF0000}'" (exception) and what not

anybody a clue?

doggy  
#2 Posted : Sunday, October 22, 2023 1:27:39 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,085
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: Chris Daum Go to Quoted Post
Hi Folks,

I have a piece of working code:

Code:
request2 = HttpWebRequest.Create("http://127.0.0.1:8088/api/?function=SetTextColour&Input=Videotimer&value=red")
//I cut out response etc...
;


as soon as I try to call the colour via hex e.g. #FF0000 it is not working.
wether it throws an exception
or the text gets transparent? colour value in title editor then is "00000000"

I tried $"....value={#FF0000}" (transparent) ; $"....value='{#FF0000}'" (exception) and what not

anybody a clue?



See the helpfiles "URL encoding may need to be used when using special characters in the Value parameter"


https://tvcrew.ch/wiki/d...ers_in_urls_api_via_http

https://www.w3schools.com/tags/ref_urlencode.ASP
thanks 1 user thanked doggy for this useful post.
Chris Daum on 10/22/2023(UTC)
Chris Daum  
#3 Posted : Sunday, October 22, 2023 3:34:48 AM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 74
Man
Germany

Thanks: 13 times
Was thanked: 9 time(s) in 9 post(s)
cool, thanks Doggy ...%23... who thought about something like that... you were right format problem...
and thanks for the links.
I mean over the years I did a lot of research but never found these two sites!!!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.