111
Posted onlyou13
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了111相关的知识,希望对你有一定的参考价值。
procedure TMainForm.ConnectRDPByIndex(index: Integer); var ServerItem: PServerItem; tmpRpdFile, cmd: string; listview: TListView; begin listview := GetCurrentListview; if listview.Items.Count = 0 then Exit; if index > listview.Items.Count - 1 then Exit; if index < 0 then Exit; ServerItem := PServerItem(listview.Items[index].Data); tmpRpdFile := CreateRdpFile(ServerItem, listview.ItemIndex + 1, ScreenWidth, ScreenHeight, ForbidCopy); cmd := ‘/c mstsc.exe "%s" /w:%d /h:%d‘; cmd := Format(cmd, [tmpRpdFile, ScreenWidth, ScreenHeight]); AddDeleteIp(ServerItem.IP); StopLinkMstscWarning(ServerItem.IP); ShellExecute(Handle, ‘open‘, ‘cmd‘, PChar(cmd), nil, SW_HIDE); TimerCheckTitle.Enabled := HideIP; FStopTime := DateUtils.IncSecond(Now, 20); end;
procedure TMainForm.Button2Click(Sender: TObject); begin ConnectRDPByIndex(3); end;
以上是关于111的主要内容,如果未能解决你的问题,请参考以下文章