qq聊天界面源碼
『壹』 誰能告訴我微信或者微網怎麼實現底部菜單中的在線QQ,點擊就啟動QQ聊天界面,附上代碼哦~!
QQ登陸微信或者綁定QQ試試
『貳』 求點擊QQ彈出臨時聊天窗口的代碼
把橫線下面的代碼復制下來建立一個記事本文件1.txt,將代碼粘貼進去,保存。然後將記事本文件的擴展名改為htm即文件變為1.htm。然後登錄QQ。打開1.htm文件,ie可能會阻止腳本運行,選擇允許就可以了,然後你隨便輸入一個QQ號,然後點擊和陌生人說話鏈接就可以出來臨時對話框了。______________________________________________________________<html
xmlns="http://www.w3.org/1999/xhtml"
><head><title>和陌生人說話</title></head><body>
<span
style="font-size:
12px">陌生人QQ:</span><input
type="text"
id="qqid"
value="615050000"
onblur="thehref.href='tencent://message/?uin='+this.value+'&Site=fromalideyun&Menu=yes';"
/><br
/><a
id="thehref"
href="tencent://message/?uin=615050000&Site=fromalideyun&Menu=yes"
>
<span
style="font-size:
12px">和陌生人說話</span></a></body></html>
『叄』 qq隨意聊的VB源代碼是怎樣的
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute 0, "", "tencent://message?uin=171977759&Site=好人&Menu=yes", "", "", 5
'ShellExecute 0, "", "tencent://message?uin=171977759", "", "", 5'簡寫法
網頁方法:
http://qq.symental.com,右擊查看其源代碼
『肆』 QQ聊天界面的java代碼
請問你的郵箱地址是多少?我有源代碼,可以發給你!
『伍』 求一QQ源代碼(C++語言版的)
return (unsigned char *) send_im_tail; } // 處理普通的 QQ 消息 void MyQQ::qq_process_recv_normal_im(unsigned char * data, unsigned char ** cur sor, int len) { int bytes; qq_recv_normal_im_common *common; qq_recv_normal_im_unprocessed *im_unprocessed; if (*cursor >= (data + len - 1)) { return; } else common = (qq_recv_normal_im_common *)malloc(sizeof(qq_recv_normal_im_commo n)); bytes = qq_normal_im_common_read(data, cursor, len, common); if (bytes < 0) { return; } switch (common->normal_im_type) { case QQ_NORMAL_IM_TEXT: qq_process_recv_normal_im_text (data, cursor, len, common); break; case QQ_NORMAL_IM_FILE_REJECT_UDP: //qq_process_recv_file_reject (data, cursor, len, // common->sender_uid, gc); break; case QQ_NORMAL_IM_FILE_APPROVE_UDP: //qq_process_recv_file_accept (data, cursor, len, // common->sender_uid, gc); break; case QQ_NORMAL_IM_FILE_REQUEST: //qq_process_recv_file_request (data, cursor, len, // common->sender_uid, gc); break; case QQ_NORMAL_IM_FILE_CANCEL: //qq_process_recv_file_cancel (data, cursor, len, // common->sender_uid, gc); break; case QQ_NORMAL_IM_FILE_NOTIFY: //qq_process_recv_file_notify (data, cursor, len, // common->sender_uid, gc); break; default: return; } // normal_im_type g_free (common->session_md5); } void MyQQ::qq_process_recv_normal_im_text(unsigned char * data, unsigned char ** cursor, int len, qq_recv_normal_im_common * common) { short gaim_msg_type; char *name; char *msg_with_gaim_smiley; char *msg_utf8_encoded; qq_recv_normal_im_text *im_text; if (*cursor >= (data + len - 1)) { return; } else im_text = (qq_recv_normal_im_text *)malloc(sizeof(qq_recv_normal_im_text)); im_text->common = common; read_packet_w(data, cursor, len, &(im_text->msg_seq)); read_packet_dw(data, cursor, len, &(im_text->send_time)); read_packet_b(data, cursor, len, &(im_text->unknown1)); read_packet_b(data, cursor, len, &(im_text->sender_icon)); read_packet_data(data, cursor, len, (unsigned char *) & (im_text->unknown2), 3); read_packet_b(data, cursor, len, &(im_text->is_there_font_attr)); read_packet_data(data, cursor, len, (unsigned char *) & (im_text->unknown3), 4); read_packet_b(data, cursor, len, &(im_text->msg_type)); if (im_text->msg_type == QQ_IM_AUTO_REPLY) { im_text->is_there_font_attr = 0x00; im_text->msg = (unsigned char *)malloc(1024); memcpy(im_text->msg,*cursor, data + len - *cursor); } else { if (im_text->is_there_font_attr) { im_text->msg = (unsigned char *)malloc(1500); memcpy(im_text->msg,*cursor, strlen((const char *)*cursor)); im_text->msg[strlen((const char *)*cursor)] = 0; } else { im_text->msg = (unsigned char *)malloc(1024); memcpy(im_text->msg,*cursor, data + len - *cursor); im_text->msg[data + len - *cursor] = 0; } } MessageText = im_text->msg; // 如果需要自動回復 if(Status == 3) { //I_QQAutoReply() 函數獲取預先設置的自動回復消息內容,需自己實現 char* MText = I_QQAutoReply(); QQSendTextMessage(common->sender_uid,MText,0x01); } // 在主界面中顯示消息 //I_QQReceiveMessage((char *)MessageText,common->sender_uid); } int MyQQ::qq_normal_im_common_read(unsigned char * data, unsigned char ** curs or, int len, qq_recv_normal_im_common * common) { int bytes; bytes = 0; bytes += read_packet_w(data, cursor, len, &(common->sender_ver)); bytes += read_packet_dw(data, cursor, len, &(common->sender_uid)); bytes += read_packet_dw(data, cursor, len, &(common->receiver_uid)); common->session_md5 = (unsigned char *)malloc(QQ_KEY_LENGTH); memcpy(common->session_md5,*cursor, QQ_KEY_LENGTH); bytes += QQ_KEY_LENGTH; *cursor += QQ_KEY_LENGTH; bytes += read_packet_w(data, cursor, len, &(common->normal_im_type)); if (bytes != 28) { return -1; } return bytes; }
『陸』 QQ聊天軟體源代碼
求一款聊天軟體源碼,Java或c#
『柒』 關於仿QQ聊天對話框的JAVA代碼
JAVA做QQ的源碼的到是有的。。。不過有8000多行。。。基本功能全齊了
如果LZ連Swing都不會用的話,感覺還是找點簡單的項目先練習練習,這QQ要牽扯到網路鏈接。。。我也在研究中呵呵
Swing很簡單,拖拖拽拽就可以了,設置顯示對話框的屬性為只讀,然後用FileInputStream來讀取
下面的輸入框用FileOutputStream來輸入點擊發送按鈕後重新導入上面的對話框。。。這是最簡單的QQ囧。。。。
『捌』 求易語言製作QQ聊天自動回復工具的源碼
需要用到 PostMessage ,不過如果聊天窗口不接收post ctrl或enter的鍵代碼的話就必須前台才能回復了。前台的話就更好弄了。
直接模擬按鍵。
.版本 2
.支持庫 spec
.支持庫 eAPI
.判斷開始 (編輯框2.內容 = 「」)
b = 到位元組集 (「我想回復的文本」 + 到文本 (#換行符) + 到文本 (取現行時間 ()))
.默認
b = 到位元組集 (編輯框2.內容 + 到文本 (#換行符) + 到文本 (取現行時間 ()))
.判斷結束
.計次循環首 (取位元組集長度 (b), i)
投遞文本 (Hw, 258, b [i], 0)
.計次循環尾 ()
延遲 (500)
模擬按鍵 (#Ctrl鍵, #回車鍵, )『發送
.版本 2
.DLL命令 投遞文本, 整數型, , "PostMessageA", , PostMessage
.參數 hWnd, 整數型, , 窗口句柄,如果是聊天窗口可能需要取輸入框的窗口句柄而不是窗口的句柄
.參數 Msg, 整數型, , 256按鍵按下,257按鍵放開,258其他
.參數 wParam, 整數型, , 鍵狀態
.參數 IParam, 整數型, , 默認0
『玖』 如何用c語言編寫QQ聊天程序(源代碼)
1、首先,我們編寫C語言的頭文件#include <stdio.h>。
『拾』 vs2005 c#QQ聊天窗口代碼
// 雙擊一項,彈出聊天窗體
private void sbFriends_ItemDoubleClick(SbItemEventArgs e)
{
// 消息timer停止運行
if (tmrChatRequest.Enabled == true)
{
tmrChatRequest.Stop();
e.Item.ImageIndex = this.friendFaceId;
}
ChatForm chatForm = new ChatForm();
chatForm.friendId = Convert.ToInt32(e.Item.Tag);
chatForm.nickName = e.Item.Text;
chatForm.faceId = e.Item.ImageIndex;
chatForm.Show();
}
就是把聊天窗口new出來