jack en poy (chatroom)

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

23 replies · 3,029 views · started 17 years ago · 3 min read

TL;DR · summary of 23 replies
  • -Huwad provided a solution to include the form for making bets in the Jack En Poy chatroom script, but it requires editing the core of the script.
  • -The original script does not have a form to make bets and this is causing issues. Huwad suggested adding specific code after else if ($action== "say2") to include the form.
  • -Capofret shared a script that worked in his site, but it may not work for others due to differences in their setups or tables.
  • -The issue of mobilezonez/waplive's edit using boxstart is noted as a reason why some scripts might not be working.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

9 participants
capofret Developer · 225 posts #1

ok finally i made it work. just want to share it because seems like nobody wants to share it here.

you need to match the rid with your current table. edit in the script or edit in your table.

some codes for other rooms still dont work.

im not a coder so the script may not be ok, i used copy paste lol. antiflood also doesnt work.

u need to add this on core..

//////////////////////////////////////////// Search Id
function iscowner($uid, $rid)
{
  $candoit = mysql_fetch_array(mysql_query("SELECT owner FROM ibwf_rooms WHERE id='".$rid."'"));
  if($uid==$candoit[0]||ismod($uid))
  {
    return true;
  }
  return false;
}

///////////////////////////////////////////is shielded?

function kick($uid,$rid)
{
  $not = mysql_fetch_array(mysql_query("SELECT kick FROM ibwf_kick WHERE uid='".$uid."' AND rid='".$rid."'"));
  if($not[0]=='1')
  {
    return true;
  }else{
    return false;
  }
}

function chall($byuid, $touid)
{
    $res = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_jnp WHERE ((byuid='".$byuid."' AND touid='".$touid."') OR (byuid='".$touid."' AND touid='".$byuid."'))"));
    if($res[0]>0)
    {
      return true;
    }
    return false;
}

///////////////////////////////////function isuser

function inside($uid, $rid)
{
   $ins = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
        if($ins[0]>0)
        {
          return true;
        }else{
          return false;
}
}
///////////////////////////////////function isuser

function inside2($uid, $rid)
{
   $ins = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE chatter='".$uid."' AND rid='".$rid."'"));
        if($ins[0]>0)
        {
          return true;
        }else{
          return false;
}
}

//////////////////////Function add user to online list :P

function addplace($uid,$plc)
{
 $res = mysql_query("UPDATE ibwf_users SET saan='".$plc."' WHERE id='".$uid."'");
  $res = mysql_query("INSERT INTO ibwf_users SET id='".$uid."', saan='".$plc."'");
  if(!$res)
  {
    //most probably userid already in the online list
    //so just update the place and time
    $res = mysql_query("UPDATE ibwf_users SET saan='".$plc."' WHERE id='".$uid."'");
}
}

///////////////////////////////////////////is shielded?

function locked($uid, $rid)
{
  $not = mysql_fetch_array(mysql_query("SELECT locked FROM ibwf_rooms WHERE id='".$rid."'"));
  if($not[0]=='1')
  { return true;
  }else{
    return false;
  }
}
///////////////////////////////////////////is shielded?

function turn($uid)
{
  $not = mysql_fetch_array(mysql_query("SELECT hit FROM ibwf_users WHERE id='".$uid."'"));
  if($not[0]=='1')
  { return true;
  }else{
    return false;
  }
}
///////////////////////////////////////////is shielded?

function noact($uid)
{
  $not = mysql_fetch_array(mysql_query("SELECT hit FROM ibwf_users WHERE id='".$uid."'"));
  if($not[0]=='3')
  { return true;
  }else{
    return false;
  }
}
function have()
{
    $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_quiz"));
   return $nopop[0];
}
function correct($answer,$id)
{
  $uid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_quizrooms WHERE answer='".$answer."' AND id='".$id."'"));
  return $uid[0];
}

/////////////////////////////////////////////////paper
function echo_scores($pscore,$cscore,$pchoice,$cchoice,$wld)
{

	if ($wld == "won")
         {
	
        	$text = "You chose $pchoice. Your opponent chose $cchoice. You won.";
            
         }
        
        if ($wld == "lost")
          {
	
           	$text = "You chose $pchoice. Your opponent chose $cchoice. You lost.";
	    
         }
	
        if ($wld == "drew")
          {
	
           	$text = "You chose $pchoice. So did your opponent. You draw.";
               
                 }
            
        echo "You: $pscore<br/>";
	echo "Opponent: $cscore<br/>";
        echo "$text<br/>";
	 echo $game;
        return true;
}

/////////////////////////////////////////////////paper
function echo_scores2($uid,$poy,$pchoice,$cchoice,$wld)
{
$nopl = mysql_fetch_array(mysql_query("SELECT byuid FROM ibwf_jnp WHERE id='".$poy."'"));
	$unick = getnick_uid($nopl[0]);
if ($wld == "won")
         {
	
        	$text = "You chose $pchoice, $unick chose $cchoice. You WON!";
            
         }
        
        if ($wld == "lost")
          {
	
           	$text = "You chose $pchoice, $unick chose $cchoice. You LOSE!";
	
         }
	
        if ($wld == "drew")
          {
	
           	$text = "You chose $pchoice, $unick chose $cchoice. DRAW!";
               
                 }
            
        echo "$text<br/>";
	
        return true;
}

function strClean($text){
$tex = strip_tags($text);
$tex = stripslashes(stripslashes($tex));
return $tex;

}
///////////////////////////////////////////////////////////////////////////////////////////////////////////

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

Attachments: chat.rar ibwf_jnp.rar
huwad Developer · 215 posts #2

🙁 not working.. no form to make bet..

Im looking for this code

{
   if($rid=="ROOM ID HERE")
        {    
     $uid = getuid_sid($sid);

$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_jnp WHERE touid='".$uid."' AND reply='1'"));
if($nopop[0]>0)
{  
 $ncl = mysql_fetch_array(mysql_query("SELECT id, bet, byuid, touid FROM ibwf_jnp WHERE touid='".$uid."' ORDER BY id DESC LIMIT 1"));
$by = getnick_uid($ncl[2]);
echo "Jack en Poy challenge from $by BET: $ncl[1]<br/>";
 echo "<form action=\"chat.php?action=jnp&sid=$sid&rid=$rid&time=$time\" method=\"post\">"; 
    echo "JNP Challenge: <select name=\"kamay\">";
 echo "<option value=\"0\">Decline</option>";
 echo "<option value=\"1\">Paper</option>";
  echo "<option value=\"2\">Scissors</option>";
  echo "<option value=\"3\">Rock</option>";
  echo "</select>";
echo "<input type=\"hidden\" name=\"who\" value=\"$ncl[2]\"/>";
echo "<input type=\"hidden\" name=\"poy\" value=\"$ncl[0]\"/>";
echo "<input type=\"submit\" value=\"Send\"/>";    
echo "</form>";
}

hacking is like sex. you get in, you get out and you pray you left nothing behind.

capofret Developer · 225 posts #3

did u look at the script? Its there. When youre at the room u have to click whos online > click user > then you would see the bet. It works fine in my site.

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

coolboiz1 Junior · 13 posts #4

any jnp script for ori's modded version?

capofret Developer · 225 posts #5

coolboiz1 wrote: any jnp script for ori's modded version?

As long as its from lava, u can use it..u only need to check the tables. If it doesnt work, i will post the sql for this.

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

huwad Developer · 215 posts #6

no need to p0st it.. capofret includes the sql inside d archieve.. but the scripts is n0t w0rking

hacking is like sex. you get in, you get out and you pray you left nothing behind.

capofret Developer · 225 posts #7

huwad wrote: no need to p0st it.. capofret includes the sql inside d archieve.. but the scripts is n0t w0rking

How can it not work when its the script used by other pinoy sites? And its working fine in my site lol. Why dont u take a look at the script, study it.

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

robzky Developer · 205 posts #8

Usage code

Can you post the usage code?

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

huwad Developer · 215 posts #9

robzky wrote: Can you post the usage code?

no usage for Jack En Poy, just change this according to your room id

[b]if($rid=="ROOM ID HERE")[/b]

hacking is like sex. you get in, you get out and you pray you left nothing behind.

huwad Developer · 215 posts #10

capofret wrote: How can it not work when its the script used by other pinoy sites? And its working fine in my site lol. Why dont u take a look at the script, study it.

LOL.. ived seen the script!! how come it will work without the form to make bet? review your script!! 😀 the form is not included!! other wapsite made it work because they mixed it with pinoyaztig's jnp chat script!! but using that single script you uploaded? haha!! talk to the hand!! roflmao

Tom Cruise B)

hacking is like sex. you get in, you get out and you pray you left nothing behind.

Attachments: chat.php.zip
capofret Developer · 225 posts #11

huwad wrote: LOL.. ived seen the script!! how come it will work without the form to make bet? review your script!! 😀 the form is not included!! other wapsite made it work because they mixed it with pinoyaztig's jnp chat script!! but using that single script you uploaded? haha!! talk to the hand!! roflmao

Tom Cruise B)

lol heres the script i downloaded straight from my cpanel. so dont complain now if it still doesnt work with u 😛

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

Attachments: chat.rar
huwad Developer · 215 posts #12

capofret wrote: lol heres the script i downloaded straight from my cpanel. so dont complain now if it still doesnt work with u :p

see? big difference! this one has a form.. ah.. I think you're using mobilezonez/waplive's edit.. coz of boxstart and boxend.. you can replace that with ,, boxstart/boxend is not compatible with nokia series40 phones.. well?? thanks for sharing I just wanna see how real your script are..

hacking is like sex. you get in, you get out and you pray you left nothing behind.

riderz Lead · 975 posts #13

Huwad its not mine its mobilezonez go have a look his script are using boxstart


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

huwad Developer · 215 posts #14

riderz wrote: Huwad its not mine its mobilezonez go have a look his script are using boxstart

yup.. Ived seen it.. you're right.. its mobilezonez.. using boxstart.. but I dont use boxstart coz of lower model phones does not support it..

hacking is like sex. you get in, you get out and you pray you left nothing behind.

riderz Lead · 975 posts #15

I got the jack and poy right now i need sql of spin 4 plus


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

metulj Super moderator Principal · 1,726 posts #16

huwad wrote: yup.. Ived seen it.. you're right.. its mobilezonez.. using boxstart.. but I dont use boxstart coz of lower model phones does not support it..

supported.... not supported.... thats why mobilezonez edit got also lo-fi version... beside... boxstart/boxend is perfectly valid by w3c and that only counts actually 😐

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

capofret Developer · 225 posts #17

lol sooner or later old phone models will be phased out so i really dont mind if they are supported or not. but anyway, im planning to change the layout/css just for the sake of those 🙂

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

huwad Developer · 215 posts #18

metulj wrote: supported.... not supported.... thats why mobilezonez edit got also lo-fi version... beside... boxstart/boxend is perfectly valid by w3c and that only counts actually 😐

wml has no themes.. 😀

hacking is like sex. you get in, you get out and you pray you left nothing behind.

huwad Developer · 215 posts #19

capofret wrote: lol sooner or later old phone models will be phased out so i really dont mind if they are supported or not. but anyway, im planning to change the layout/css just for the sake of those :)

so? It only means that your site is not user friendly,, ayt??

hacking is like sex. you get in, you get out and you pray you left nothing behind.

huwad Developer · 215 posts #20

Additional

add this to chat.php after else if ($action=="say2")

///////////////JNP PROC////////////////

    else if ($action=="jnpc")         
  {
 $who = $_POST["who"];
          $bet =$_POST["bet"];
    $kamay =$_POST["kamay"];
$tnick = getnick_uid($who);
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);

 if($uid==$who)
			{
     echo "Dont be so stupid to challenge your self!<br/>";
 }else{
if($bet<=19)
{
   echo "We accept above 20 bet to make a challenge!<br/>";
 }else{
if(chall($uid,$who))
    {
  echo "You have a pending challenge<br/>";
 }else{
 $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
  $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
  if($gpsf[0]>=$bet)
{
 if($gpst[0]>=$bet)
{
    $res = mysql_query("INSERT INTO ibwf_jnp SET touid='".$who."', byuid='".$uid."', hand='".$kamay."', reply='1', bet='".$bet."', actime='".time()."'");
  if($res)
        {
     
            echo "Jack en poy challenge with $bet Sent to $tnick<br/>";
        }else{
          echo "Database error<br/>";
        }
      }else{
          echo "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
        }
        }else{
          echo "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
        }    
 
}
}
}
 echo "<a href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw&type=send&time=$time\">back to room</a><br/>";
  echo "</p>";
  echo "</body>";
}
  else if ($action=="jnp")         
  {
 $who = $_POST["who"];
        
    $kamay =$_POST["kamay"];
$poy =$_POST["poy"];

  
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);

 if($uid==$who)
			{
     echo "Dont be so stupid to challenge your self!<br/>";
 }else{
 $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
  $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
 $number = mysql_fetch_array(mysql_query("SELECT hand, bet FROM ibwf_jnp WHERE id='".$poy."'"));
$number2 = $number[0];  
$bet2 = $number[1]; 
$plus = $number[1]; 
if($gpsf[0]>=$bet2)
{
 if($gpst[0]>=$bet2)
{
$unick = getnick_uid($uid);

if ($kamay=="1") 
{
$pchoice = "Paper";
if ($number2 =="1") 
{
                        $cchoice = "Paper";
                          
                        echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
                        $msg = "Challenge draw with $unick!"."";
			autopm($msg, $who);
  mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                   
                
                    }
else if ($number2 =="2") 
{
                       
			$cchoice = "Scissors";
                      echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
               mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
          echo "$number[1] plusses has been deducted to your account";
                $msg = "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
			autopm($msg, $who);
                      mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
 }
else if ($number2 =="3")  
{
                     
			$cchoice = "Rock";
                     echo_scores2($uid,$poy,$pchoice,$cchoice,won);
                   mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
          echo "You won $plus plusses added to your account!";
                $msg = "You defeated by $unick $number[1] plusses has been deducted!"."";
			autopm($msg, $who);
                  mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                  }
{
         
          echo "Not in game!";
            
                  }
}
if ($kamay=="2") 
{
	$pchoice = "Scissors";
if ($number2 =="1") 
{
                    
			$cchoice = "Paper";
                    echo_scores2($uid,$poy,$pchoice,$cchoice,won);
                     
                     mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
          echo "You won $plus plusses added to your account!";
                $msg = "You defeated by $unick $number[1] plusses has been deducted!"."";
			autopm($msg, $who);
                  mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                    }
else if ($number2 =="2")
 {
                        $cchoice = "Scissors";
                     echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
	           $msg = "Challenge draw with $unick!"."";
			autopm($msg, $who);
                    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                
                    }
else if ($number2 =="3") 
{
                
			$cchoice = "Rock";
                      echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
                   mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
         
                $msg = "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
			autopm($msg, $who);
                
             mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
             }
else if ($number2 =="")  
{
         
          echo "Not in game!";
            
                  }
}
if ($kamay=="3") 
{
	$pchoice = "Rock";
if ($number2 =="1") 
{
                
			$cchoice = "Paper";
                        echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
		    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
        
                $msg = "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
			autopm($msg, $who);
                 mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                 }
else if ($number2 =="2") 
{
               
			$cchoice = "Scissors";
                         echo_scores2($uid,$poy,$pchoice,$cchoice,won);
		      
                    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
          echo "You won $plus plusses added to your account!";
                $msg = "You defeated by $unick $number[1] plusses has been deducted!"."";
			autopm($msg, $who);
                     mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                    }
else if ($number2 =="3") {
                        $cchoice = "Rock";
                        echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
                     mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                 $msg = "Challenge draw with $unick!"."";
			autopm($msg, $who);
                          }
else if ($number2 =="")  
{
         
          echo "Not in game!";
            
                  }
}
if ($kamay == 0) {
  if($kamay==0)
            {
              $msg = "declined";
            }else{
                $msg = "";
            }
echo "Challenge declined!<br/>";

              $msg = "".getnick_uid(getuid_sid($sid))." has $msg to your jack en poy challenge!"."";
			autopm($msg, $who);
mysql_query("DELETE FROM ibwf_jnp WHERE touid='".$uid."' AND byuid='".$who."'");
 
    }
      }else{
          echo "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
       
              $msg = "Either you Or the recipient has insufficient plusses to complete this request!"."";
			autopm($msg, $who);
mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
        }
        }else{
          echo "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
        }    
   }
echo "<br/><a href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw&type=send&time=$time\">back to room</a><br/>";
  echo "</p>";
  echo "</body>";
}
   else if ($action=="reset")           
{

          
        
        echo "<p align=\"center\">DATA Reset Successfully";
        mysql_query("DELETE FROM ibwf_jnp WHERE byuid='".$uid."'");
      echo "<br/><a href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw&type=send&time=$time\">back to room</a><br/>";
        echo "</p></body>";
                  }    

//////////////////////////////////////

hacking is like sex. you get in, you get out and you pray you left nothing behind.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close