Jump to content

hamohd70

Active Members
  • Posts

    23
  • Joined

  • Last visited

hamohd70's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I'm trying to use the ISN AutoIt Studio but I can't find much help in connecting the form created by the studio with the script. Can anyone please help me with this? how can a form created by the studio be connected to the script?
  2. Sorry , I just realized I posted the question in the wrong section! I can seem to be able to shift it!.
  3. I'm trying to use the ISN AutoIt Studio but I can't find much help in connecting the form created by the studio with the script. Can anyone please help me with this? how can a form created by the studio be connected to the script?
  4. Thanks.. this is fine. but I' looking for a way to run and parse google search results for the full line in this format C: starteam.myftp.org 18000 test1 text2 regards
  5. how can I use the StringRegEx function to extract certain lines of text from google search results in the following format: C: server port user password an example is this: C: starteam.myftp.org 18000 test1 text2 regards
  6. interesting code. can you please explain the StringRegEx part? $aRes = StringRegExp($text, '(?m)^(?:.*?(?<=\A|\v{4}|,|el=)([^":,\r\n]+))|(?:http|rtmp|rtsp)s?[^"\r\n]+', 3)
  7. Sorry, i forgot to attach the file. Thanks jguinch for the snippnet. I did this way.. $file = FileOpenDialog("Select your file",@DesktopDir,"Text document (*.txt)|All files (*.*)") $data = FileRead($File) $lines = StringSplit($data, @lf) If IsArray($lines) Then $linecount = $lines[0] Else $linecount = 0 Endif For $i = 1 to $linecount $txt = StringStripWS(FileReadLine($file, $i),1) if StringInStr($txt,'"') then $txt = StringReplace($txt,'"',"") if StringRegExp($txt, "(?mi)(\N*(?:(http)|(https)|(rtmp)|(rtmps)):\N*)") Then if StringInStr($txt,"http") Then $txt = StringMid($txt, StringInStr($txt,"http")) ElseIf StringInStr($txt,"https") Then $txt = StringMid($txt, StringInStr($txt,"https")) ElseIf StringInStr($txt,"rtmp") Then $txt = StringMid($txt, StringInStr($txt,"rtmp")) ElseIf StringInStr($txt,"rtmps") Then $txt = StringMid($txt, StringInStr($txt,"rtmps")) EndIf $upscount = $upscount + 1 ConsoleWrite ($txt &@CRLF) EndIf If StringinStr($txt, '#EXT') Then $downscount = $downscount + 1 EndIf Next Exit works just fine. Any comments to make it more efficient are welcome !! boc.txt
  8. how can I use the StringRegEx function to extract any line that has one of the following words: http,rtmp,rtmps,https from a file? thanks
  9. thank u all for the help
  10. thanks alot. I will try it.
  11. I'm writing a small LAN scanner to fit my purpose but I find the classical ping command is too slow. As a work around, I'm planning to ask the user to limit the range of IPs to be scanned but I thinks it is always better if I can develop or fnd a faster way to do this. #include <Constants.au3> $vGateway = _IPConfig() _ScanLAN($vGateway) Func _IPConfig() Local $iPID, $sOutput = '' $iPID = Run(@ComSpec & ' /c ipconfig', @SystemDir, @SW_HIDE, $STDOUT_CHILD + $STDERR_CHILD) While 1 $sOutput = StdoutRead($iPID) If @error Then ExitLoop if StringInStr($sOutput," Default Gateway . . . . . . . . . : ") Then $sOutput=StringMid($sOutput,StringInStr($sOutput," Default Gateway . . . . . . . . . : ") + StringLen(" Default Gateway . . . . . . . . . : "), 15) Return $sOutput ExitLoop EndIf WEnd EndFunc Func _ScanLAN($vGatewayIP) Local $iPID, $sOutput = '' local $array=StringSplit($vGatewayIP,".") $BaseIP = $array[1] & "." & $array[2] & "." & $array[3] & "." $iPID = Run('"' & @ComSpec & '"', '', @SW_HIDE, $STDERR_MERGED + $STDIN_CHILD) for $i = 100 to 150 $command = "ping -a -n 1 " & $BaseIP & $i ConsoleWrite($command & @CRLF) StdinWrite($iPID,$command & @CRLF) While 1 $sOutput = StdoutRead($iPID) If @error Then ExitLoop if StringRight($sOutput,1) = ">" Then ExitLoop if StringInStr($sOutput,"Pinging ") Then If StringInStr($sOutput, "[") Then $StartLocation = StringInStr($sOutput,"Pinging ") + StringLen("Pinging ") $EndLocation = StringInStr($sOutput, "[") $sOutput=StringMid($sOutput,$StartLocation, $EndLocation - $StartLocation) ConsoleWrite ($sOutput & @CRLF) ExitLoop EndIf EndIf WEnd Next EndFunc here the code I wrote:
  12. I'm trying to create a player control buttons overlay on a running ffplay.exe process windows to allow functions like play, stop, step forward, ..etc. but to do this i need to get the window position of ffplay window first. any clue on how to do it?
×
×
  • Create New...