diff options
author | Alec Murphy <alec@checksum.fail> | 2017-05-28 20:21:57 -0400 |
---|---|---|
committer | Alec Murphy <alec@checksum.fail> | 2017-05-28 20:21:57 -0400 |
commit | 5f3d35be578b8a2f2d6091dd2d007d0828686754 (patch) | |
tree | a58e359cebb7be7a08beaa907a07da2c25062055 | |
parent | 88efa0269c3d365398d4fe8e361c0ce29132f34e (diff) |
Default message window pos/size
-rw-r--r-- | Crocodile.HC | 9 | ||||
-rw-r--r-- | crocodile.py | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Crocodile.HC b/Crocodile.HC index f38a1ff..3182e01 100644 --- a/Crocodile.HC +++ b/Crocodile.HC @@ -128,10 +128,13 @@ U0 CrocUpdLoop() StrCpy(CROC_LMID,""); StrCpy(CROC_MSG,""); -WinTileHorz; -WinFocus(Fs); +discord_msgs->win_left=0x2B; +discord_msgs->win_right=0x4E; +discord_msgs->win_top=0x03; +discord_msgs->win_bottom=0x0F; XTalk(discord_msgs,"StrCpy(Fs->task_title,\"\");\n"); Sleep(100); DocClear(discord_msgs->put_doc); discord_msgloop = Spawn(&CrocUpdLoop); - + +
\ No newline at end of file diff --git a/crocodile.py b/crocodile.py index 82e20f1..b91d78e 100644 --- a/crocodile.py +++ b/crocodile.py @@ -129,8 +129,8 @@ def CrocSendMsg(): os.lseek(HGBD,BLK_SIZE,os.SEEK_SET) HGBD_MSG_BUF = os.read(HGBD,BLK_SIZE*2) r_msg = HGBD_MSG_BUF[:HGBD_MSG_BUF.find('\x00')] - r_msg = r_msg.replace('"','\"') - r_msg = r_msg.replace('\'','\\\'') + r_msg = r_msg.replace('\xFF','\"') + r_msg = r_msg.replace('\'','\u0027') try: croc_cmd = str(Crocodile.sendmsg_cmd) croc_cmd = croc_cmd.replace('DISCORD_TOKEN',r_token) |