Jump to content

Albert88

Members
  • Posts

    17
  • Joined

  • Last visited

Albert88's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Write the full code and then I will look it.
  2. Using StringReplace you can replace the character what you want. ;your text $text = "http://www.example.com/29-bla-example/bla-here/" ;replace "-" with "%20" and is returned into $s $s = StringReplace($text,"-","%20") ;show http://www.example.com/29%20bla%20example/bla%20here MsgBox(0,"",$s) Now you need extract the url from the text and ready
  3. Where are you using the href exactly?? in a webpage?? In case afirmative, put the webpage to examine it.
  4. I know your problem. Your problem is that your execute the function FileReadLine only once when you initializes the global variable $dll, you must add into the while this instruction: $dll = FileReadLine ("md5.dll")
  5. Hello, the function is: FileReadLine ( filehandle or "filename" [, line] ) You must put as second parameter the line to read. For your example: $i =1 While @error <> -1 FileReadLine ("md5.dll",$i) $i = $i +1 Wend
  6. Ups sorry for the bump. I looked the UDF from Squirrely1 in this post -> http://www.autoitscript.com/forum/index.ph...rt=#entry510851 However, I don´t want embed my wmp into a gui with IE. Well, my code is the next: #Include <GuiListView.au3> ;First I look for the window If WinExists("[CLASS:WMPlayerApp; TITLE:Reproductor de Windows Media]") Then ;take the handle and its control $hWin = WinGetHandle("[CLASS:WMPlayerApp; TITLE:Reproductor de Windows Media]") $hLB = ControlGetHandle($hWin, "", "[CLASS:SysListView32; INSTANCE:1]") ;count the list item (songs) $iLBCount = _GUICtrlListView_GetItemCount($hLB) For $i = 0 To $iLBCount - 1 ;If a song is singing then show me If _GUICtrlListView_GetItemSelected($hLB,$i) == True Then MsgBox(0,"Escuchas","Estás escuchando: " & @CRLF & _GUICtrllistview_getitemtext($hLB,$i)) EndIf Next Else ;error if wmp isn´t open MsgBox(16, "Error", "Windows Media Player no está abierto.") EndIf Exit Then, I said that the function _GUICtrlListView_GetItemSelected($hLB,$i) show me the item selected but it can that isn´t singing, basically because I click on the song once.
  7. Hello, I have got the listview that controls the list of songs from windows media player, but when I want to know what song is singing it always show me the same song because he return me the song focused and selected, and not the playing. How can I know that song is playing exactly?? Thanks.
  8. One question, how can I know all the functions about the object $objExplorer?
  9. I comment the solution above. Look that -> Run ("C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv INSTANT" & $msg) After of INSTANT you haven´t space, then your variable $msg will join with this --> INSTANTmymessage <--- it doesn´t work You need add one space between T of INSTANT and " -> Run ("C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv INSTANT " & $msg)
  10. This is the output from the script:
  11. Mmm, how can I execute this program in the shell: C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv Instant my_message, its ok? I see in your code this: Run ("C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv Instant" & $msg) and if I join all would be: C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv Instantmy_message <--- look you haven´t put a space between "C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv Instant" and $msg Solution: put a space between string and the variable $msg Run ("C:\Tools23\qmailer.exe a.mx.inbox.lv cpu@cpu.lv get_help@inbox.lv Instant " & $msg)
  12. There is a function called StringSplit($string,$delimit) An example: $days = StringSplit("Sun,Mon,Tue,Wed,Thu,Fri,Sat", ",") MsgBox(0,"",$days[1]) <--- $days[1] = Sun, $days[2] = Mon For your problem: Msgbox(0, "An example", $array[1] & @CRLF & $array[2] & @CRLF & $array[3] & @CRLF & $array[4])
  13. I have found a bug. You do this: MsgBox (0, "You wrote: " & $msg) <---- error because MsgBox have 3 parameters, look at your previous MsgBox : MsgBox (48, "Attention", "This program may does not work in corporative networks")
×
×
  • Create New...