vs 挤房间工具
来源:互联网 发布:早睡早起微信群 知乎 编辑:程序博客网 时间:2024/04/27 21:03
补上使用方法:
- 打开vs
- 选中房间,按alt+f1,开始挤房间
- 进入房间以后,按alt+f2停止
目前的bug:
- 有时候会弹出退出vs的窗口,这个时候请手动选择
- 必须放在桌面看的到的地方,不用置顶
下次版本预计加入功能:
- 修正bug1
- 添加个性化挤房间模式:顺序挤房间(并不针对单一房间)
- 自动升级
.h文件
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include "trayicon.h"
- #include <ImgList.hpp>
- #include <Menus.hpp>
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TTimer *Timer1;
- TTrayIcon *TrayIcon1;
- TPopupMenu *PopupMenu1;
- TImageList *ImageList1;
- TMenuItem *N1;
- TMenuItem *ALTF21;
- TMenuItem *N2;
- void __fastcall Button1Click(TObject *Sender);
- void __fastcall Timer1Timer(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall N1Click(TObject *Sender);
- void __fastcall ALTF21Click(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall N2Click(TObject *Sender);
- private: // User declarations
- int StartHotKeyId;
- int StopHotKeyId;
- TPoint pt;
- void __fastcall HotKeyDown(TMessage &Msg);
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- BEGIN_MESSAGE_MAP
- VCL_MESSAGE_HANDLER(WM_HOTKEY, TMessage, HotKeyDown);
- END_MESSAGE_MAP(TForm);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "Unit1.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma link "trayicon"
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- StartHotKeyId = GlobalAddAtom("StartVSLoader")-0xC000;
- StopHotKeyId = GlobalAddAtom("StopVSLoader")-0xC000;
- RegisterHotKey(Handle , StartHotKeyId , MOD_ALT,VK_F1);
- RegisterHotKey(Handle , StopHotKeyId , MOD_ALT,VK_F2);
- Application->ShowMainForm = false;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::HotKeyDown(TMessage &Msg)
- {
- if( (Msg.LParamLo == MOD_ALT)&& (Msg.LParamHi == VK_F1) ){
- Timer1->Enabled = true;
- TrayIcon1->Animate = true;
- GetCursorPos(&pt);
- }
- if( (Msg.LParamLo == MOD_ALT)&& (Msg.LParamHi == VK_F2) ){
- Timer1->Enabled = false;
- TrayIcon1->Animate = false;
- }
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button1Click(TObject *Sender)
- {
- //HWND listview = FindWindow(NULL, "VS竞技游戏平台");//
- //TPoint pt;
- //GetCursorPos(&pt);
- Timer1->Enabled = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Timer1Timer(TObject *Sender)
- {
- Timer1->Enabled = false;
- TPoint tmp;
- GetCursorPos(&tmp);
- SetCursorPos(pt.x,pt.y);
- HWND win = NULL;
- win =FindWindow(NULL, "VS竞技游戏平台");
- if(win){
- keybd_event(VK_ESCAPE ,0,KEYEVENTF_EXTENDEDKEY | 0,0 );
- keybd_event(VK_ESCAPE ,0,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
- }
- win =FindWindow(NULL, "VSClient");
- if(win){
- keybd_event(VK_ESCAPE ,0,KEYEVENTF_EXTENDEDKEY | 0,0 );
- keybd_event(VK_ESCAPE ,0,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
- }
- if(win == NULL){
- mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
- mouse_event(MOUSEEVENTF_LEFTUP ,0,0,0,0);
- //bug001::现在vs版本对应
- mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
- mouse_event(MOUSEEVENTF_LEFTUP ,0,0,0,0);
- //bug001::end
- }
- SetCursorPos(tmp.x, tmp.y);
- Timer1->Enabled = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)
- {
- UnregisterHotKey(Handle , StartHotKeyId);
- UnregisterHotKey(Handle , StopHotKeyId);
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::N1Click(TObject *Sender)
- {
- Timer1->Enabled = true;
- TrayIcon1->Animate = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::ALTF21Click(TObject *Sender)
- {
- Timer1->Enabled = false;
- TrayIcon1->Animate = false;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::FormShow(TObject *Sender)
- {
- TrayIcon1->Minimize();
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::N2Click(TObject *Sender)
- {
- Close();
- }
- //---------------------------------------------------------------------------
代码和可执行文件下载地址:http://download.csdn.net/source/567156
- vs 挤房间工具
- VS挤房间探索(含源码)
- 挤房工具发布--支持最新版浩方和VS平台
- 挤
- ALLyeSNO 优化版浩方 第二版 Ver:2007.06.15 清除广告 自动挤房间
- vs工具
- 在vs上去掉进房间等待的实现
- 挤牛奶
- 不要挤
- 挤牛奶
- 挤牛奶
- 挤牛奶
- vs命令行工具
- VS中的工具介绍
- VS工具版本
- VS开发工具价格
- VS开发工具学习
- vs配置fxc工具
- 在51testing第10期杂志发表了两篇文章
- 8月份新产品预告
- json 数据key 在ie下有保留字
- 用VS2005制造WEB安装程序
- java连接数据库
- vs 挤房间工具
- 换位法生成排列程序
- mmc.exe被感染
- apache 无法启动,Error log: (OS 10022)提供了一个无效的参数
- 为何虚线被打印成了实线
- 暂住证什么时候终结???????????????????
- 窗口界面AVR反汇编工具
- javascript keycode大全
- list循环逆序输出