I Was searching for a Solution in order to Design a C# .NET Desktop Application with the features HTML JavaScript and CSS gives you. I was thinking the only way to do that was to Embedd Internet Control from Internet Explorer but i was wrong.
I discovered CEF(Sharp). Chromium Embedded Framework. With this Framework you are able to Manipulate every aspect of Chromium Browser and make a Fine desktop application with many custom controls, custom styling, transitions, animations and even webgl. That's awesome. You can also interact with Javascript functions, and javascript functions interact with you back. I mean a C# function call and get data from a Javascript Function and vice versa.
Is anyone familiar with CEF?
Well After Watching Farcrada's Issues, i tried to test this code my self. It failed to even return data. So i decided to make a Small Snippet in order to test your JSON Lib on both Secure and Non Secure sites.
I'm Running on Windows 7 Ultimate 64 Bit with OpenSSL Installed. The Code and Results are the following:
alias Start_Json {
set %szGlob 0
echo -a Running JSON Lib. $time(HH:nn:ss mm/dd/yyyy)
echo -a mIRC Version: $version
echo -a OS Version: $os
if ($sslready) {
echo -a SSLReady:3 $sslready
}
else {
echo -a SSLReady:4 Failed
}
set %szUs https://api.twitch.tv/kraken/streams/lcs_pros_in_koreansoloq
set %szUn http://ipinfo.io/8.8.8.8/json
echo -a Test Sites:
echo -a - Secure Site: %szUs
echo -a - Insecure Site: %szUn
sockopen -e szCTestUS $gettok(%szUs,2,47) 443
sockopen szCTestUN $gettok(%szUn,2,47) 80
}
on *:sockopen:szCTest*:{
if (!$sockerr) {
signal szCTest $true $sock($sockname).addr
}
else { signal szCTest $false $sock($sockname).addr }
sockclose $sockname
}
on *:signal:szCTest:{
if ($1 == $true) { inc %szGlob }
else { unset %szGlob | echo -a Test Failed: | echo -a - Error: while connecting to $2 }
if (%szGlob == 2) { echo -a Sites Online Procceeding | unset %szGlob | Run_Json }
}
alias Run_Json {
var %jHandlerUs jH1
var %jHandlerUn jH2
var %szFail
echo -a Opening Connectiong to %szUs with JSONOpen
JSONOpen -u %jHandlerUs %szUs
if (!%JSONError && $json(%jHandlerUs, stream, game)) {
echo -a Success: $v1
}
else {
echo -a Failed: %JSONError
inc %szFail
}
echo -a Closing JSONHandler: %jHandlerUs
JSONClose %jHandlerUs
echo -a Opening Connectiong to %szUn with JSONOpen
JSONOpen -u %jHandlerUn %szUn
if (!%JSONError && $json(%jHandlerUn, ip)) {
echo -a Success: $v1
}
else {
echo -a Failed: %JSONError
inc %szFail
}
echo -a Closing JSONHandler: %jHandlerUn
JSONClose %jHandlerUn
echo -a Test Complete
echo -a Errors Occured: $iif(%szFail,$v1,None)
}
Nice job, however using jScript you won't be able to parse properly UTF8 json strings. thats why i rebuilt timi's json parser from jscript to vbscript. You can check it out here: $json_utf8
I've Created this add-on a while ago, This add-on allows you to store your identifies for every nick you have on a network you will specify. The passwords are getting stored in plain text mode, but this wont be a problem since, if someone has access to your computer , these passwords are the least problem you will face. This add-on creates a file called _auto_ident.hsh containing the data of your Nicknames..
TheMovieDB decided to add my mSL TMDb Wrapper, into their official Wrapper List.
Thats nice: https://www.themoviedb.org/documentation/api/wrappers-libraries
These scripts are completely useless since you are not including any documentation.
if ($hget(digimon,$nick) != agumon) {
elseif ($hget(digimon,$nick) != gomamon) { notice $nick only agumon and gomamon can use that attack! | halt } }
completely invalid piece of code.
if ($hget(digimon,$nick) != wormmon) { notice $nick only biyomon can use that attack! | halt }
even you got confused in your own code.
if (%player1stamina < 6) { notice $nick you can't use $1 because you don't have enough stamina! | halt }
if (%player1stamina > 6) {
pointless you are making 2 check since you can make only one
if (%player1stamina < 6) { notice $nick you can't use $1 because you don't have enough stamina! | halt }
else {
Also on your attacks you are only checking player1stamina, while you dont know which of the players triggering the attack...
Fix your code and then post it
msg $chan $gettok($right($1-, $calc($len($1-) - 400)), 1-3, 32)
->
$gettok($1-,-1 - -3,32)