全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1811|回复: 11

[疑问] 开机自动启动高铁采集器

[复制链接]
发表于 2021-5-23 15:21:20 | 显示全部楼层 |阅读模式
本帖最后由 zxxx 于 2021-5-23 14:43 编辑

高铁采集器win10全兼容版下载地址:

http://q315344306.oicp.net:9800/highferrum_9.8.0.0_full_function_win10.zip



Z:\Locoy\StartLocoy.ps1

  1. function Send-Keystrokes ([string] $Keys, [string] $Title, [int] $Delay = 1) {
  2.   try {
  3.     $wshell = New-Object -ComObject WScript.Shell
  4.     IF ($Title) {
  5.       $wshell.AppActivate($Title)
  6.     }
  7.     Start-Sleep -Seconds $Delay
  8.     $wshell.SendKeys($Keys)
  9.     Start-Sleep -Seconds 1
  10.   }
  11.   finally {
  12.     try {
  13.       [System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$wshell) | Out-Null
  14.       [System.GC]::Collect()
  15.       [System.GC]::WaitForPendingFinalizers()
  16.     }
  17.     catch { }
  18.   }
  19. }

  20. $Title = "高铁采集器"
  21. $WorkingDirectory = "Z:\Locoy"
  22. $FilePath = "Z:\Locoy\高铁采集器9.8全功能版(账号密码随意输入).exe"

  23. Start-process  -FilePath $FilePath -WorkingDirectory $WorkingDirectory | Out-Null
  24. Send-Keystrokes -Keys "username" -Title $Title -Delay 5
  25. Send-Keystrokes -Keys "{TAB}"
  26. Send-Keystrokes -Keys "password"
  27. Send-Keystrokes -Keys "{TAB}"
  28. Send-Keystrokes -Keys "{TAB}"
  29. Send-Keystrokes -Keys " "
复制代码



C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Z:\Locoy\StartLocoy.ps1

右键【开始】,选择【计算机管理】,创建基本任务





发表于 2021-5-23 15:22:25 | 显示全部楼层
学习了。这个采集好用吗?
发表于 2021-5-23 15:23:14 | 显示全部楼层
挂机宝还关机的吗
发表于 2021-5-23 17:19:46 来自手机 | 显示全部楼层
前面的是什么脚本??
 楼主| 发表于 2021-5-23 17:29:04 | 显示全部楼层
peng123 发表于 2021-5-23 17:19
前面的是什么脚本??

Powershell
发表于 2021-5-23 17:55:09 | 显示全部楼层
高铁和火车采集是同一家公司吗.
发表于 2021-5-23 18:07:47 | 显示全部楼层
ioioio 发表于 2021-5-23 17:55
高铁和火车采集是同一家公司吗.

我也想知道 有何关联
发表于 2021-5-23 18:13:38 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2021-5-23 18:27:48 | 显示全部楼层
楼主做个杀毒测试啊,各种杀软都上一遍
发表于 2021-5-23 18:34:46 来自手机 | 显示全部楼层
奈斯,技术派,收藏备用。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-18 20:17 , Processed in 0.066417 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表