⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 options.java

📁 一个使用Java编写的QQ批量登录器
💻 JAVA
字号:
import javax.swing.*;
import java.awt.*;
class Options
{
	private String qqPath,tmPath,gamePath;
	private boolean isClose,isCheck,isCodeNeeded;
	private int delay;
	private boolean isSafeClose,isCodeSave;
	
	public static final int QQ_TYPE=0;
	public static final int TM_TYPE=1;
	public static final int GAME_TYPE=2;
	
	public Options()
	{
		this("C:\\Program Files\\Tencent\\QQ\\QQ.exe","","C:\\Program Files\\Tencent\\QQGame\\QQGame.exe",false,false,false,0,true,true);
	}
	public Options(	String qq,String tm,String game,
					boolean close,boolean check,boolean code,
					int delay,boolean safe,boolean save)
	{
		qqPath=qq;
		tmPath=tm;
		gamePath=game;
		isClose=close;
		isCheck=check;
		isCodeNeeded=code;
		this.delay=delay;
		isSafeClose=safe;
		isCodeSave=save;
	}
	public void setTMPath(String tm)
	{
		tmPath=tm;
	}
	public void setQQPath(String qq)
	{
		qqPath=qq;
	}
	public void setGamePath(String game)
	{
		gamePath=game;
	}
	public void setClose(boolean close)
	{
		isClose=close;
	}
	public void setCheck(boolean check)
	{
		isCheck=check;
	}
	public void setCodeNeeded(boolean code)
	{
		isCodeNeeded=code;
	}
	public void setDelay(int delay)
	{
		if(delay<0)
			delay=0;
		this.delay=delay;
	}
	public void setCodeSave(boolean save)
	{
		isCodeSave=save;
	}
	public void setSafeClose(boolean safe)
	{
		isSafeClose=safe;
	}
	public void setData(String text,int loc)
	{
		try
	    {
			switch(loc)
		    {
		    	case 0:
		    		qqPath=text;
		    		return;
		    	case 1:
		    		tmPath=text;
		    		return;
		    	case 2:
		    		gamePath=text;
		    		return;
		    	case 3:
		    		delay=Integer.parseInt(text);
		    		return;
		    	case 4:
		    		isClose=new Boolean(text).booleanValue();
		    		return;
		    	case 5:
		    		isCheck=new Boolean(text).booleanValue();
		    		return;
		    	case 6:
		    		isCodeNeeded=new Boolean(text).booleanValue();
		    		return;
		    	case 7:
		    		isSafeClose=new Boolean(text).booleanValue();
		    		return;
		    	case 8:
		    		isCodeSave=new Boolean(text).booleanValue();
		    		return;
		    }	    	
	    }
	    catch(Exception ee)
	    {
	    	EnterQQ.loadOptionsWrong();
	    }
	}
	
	public String getPath(int type)
	{
		if(type==QQ_TYPE)
			return qqPath;
		if(type==TM_TYPE)
			return tmPath;
		if(type==GAME_TYPE)
			return gamePath;
		return "";
	}
	public String getTMPath()
	{
		return tmPath;
	}
	public String getQQPath()
	{
		return qqPath;
	}
	public String getGamePath()
	{
		return gamePath;
	}
	public boolean isClose()
	{
		return isClose;
	}
	public boolean isCheck()
	{
		return isCheck;
	}
	public boolean isCodeNeeded()
	{
		return isCodeNeeded;
	}
	public boolean isCodeSave()
	{
		return isCodeSave;
	}
	public boolean isSafeClose()
	{
		return isSafeClose;
	}
	public int getDelay()
	{
		return delay;
	}
	public int getDataLength()
	{
		return 9;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -