Guest User

Определение своего ID

a guest
May 29th, 2017
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. numpad9::
  2. sendinput {f6}/id Lewis_Flow{enter}
  3. sleep 1150
  4. loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  5. {
  6.     if RegExMatch(A_LoopReadLine, "^\[\d{2}\:\d{2}\:\d{2}\] ID\: \((\d+)\) (.*);?", lastidtarget)
  7.     {
  8.         myId := lastidtarget1
  9.     }
  10.     if RegExMatch(A_LoopReadLine, "^\[\d{2}\:\d{2}\:\d{2}\] ID\: \((\d+)\) (.*) \{\w{6}\}<PAUSE\: \d+ sec\.?>", lastidtarget)
  11.     {
  12.         myId := lastidtarget1
  13.     }
  14. }
  15. sendinput {f6}Мой ID: %myId%{enter}
  16. return
RAW Paste Data