全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2131|回复: 11
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
1#
发表于 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

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





2#
发表于 2021-5-23 15:22:25 | 只看该作者
学习了。这个采集好用吗?
3#
发表于 2021-5-23 15:23:14 | 只看该作者
挂机宝还关机的吗
4#
发表于 2021-5-23 17:19:46 来自手机 | 只看该作者
前面的是什么脚本??
5#
 楼主| 发表于 2021-5-23 17:29:04 | 只看该作者
peng123 发表于 2021-5-23 17:19
前面的是什么脚本??

Powershell
6#
发表于 2021-5-23 17:55:09 | 只看该作者
高铁和火车采集是同一家公司吗.
7#
发表于 2021-5-23 18:07:47 | 只看该作者
ioioio 发表于 2021-5-23 17:55
高铁和火车采集是同一家公司吗.

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

本版积分规则

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

GMT+8, 2025-12-22 09:16 , Processed in 0.062092 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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