Jump to content

jeroen96

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by jeroen96

  1. Thank you for your responses, i foud a way to do this Func mouse_co () $m = MouseGetPos () $coord = $coord & "The coordinations are: (" & $m[0] & "," & $m[1] & ")" & @CRLF MsgBox (0,"",$coord) EndFunc
  2. Hello, I want to know if there is a shorter way to write this: Func mouse_co () $a += 1 If $a = 1 Then Global $m1 = MouseGetPos () ElseIf $a = 2 Then Global $m2 = MouseGetPos () ElseIf $a = 3 Then Global $m3 = MouseGetPos () ElseIf $a = 4 Then Global $m4 = MouseGetPos () ElseIf $a = 5 Then Global $m5 = MouseGetPos () ElseIf $a = 6 Then Global $m6 = MouseGetPos () ElseIf $a = 7 Then Global $m7 = MouseGetPos () ElseIf $a = 8 Then Global $m8 = MouseGetPos () ElseIf $a = 9 Then Global $m9 = MouseGetPos () ElseIf $a = 10 Then Global $m10 = MouseGetPos () ElseIf $a = 11 Then Global $m11 = MouseGetPos () ElseIf $a = 12 Then Global $m12 = MouseGetPos () EndIf EndFunc Func mouse_co2 () If $a >= 1 Then Send ("(" & $m1[0] & "," & $m1[1] & ")" & @CRLF) If $a >= 2 Then Send ("(" & $m2[0] & "," & $m2[1] & ")" & @CRLF) If $a >= 3 Then Send ("(" & $m3[0] & "," & $m3[1] & ")" & @CRLF) If $a >= 4 Then Send ("(" & $m4[0] & "," & $m4[1] & ")" & @CRLF) If $a >= 5 Then Send ("(" & $m5[0] & "," & $m5[1] & ")" & @CRLF) If $a >= 6 Then Send ("(" & $m6[0] & "," & $m6[1] & ")" & @CRLF) If $a >= 7 Then Send ("(" & $m7[0] & "," & $m7[1] & ")" & @CRLF) If $a >= 8 Then Send ("(" & $m8[0] & "," & $m8[1] & ")" & @CRLF) If $a >= 9 Then Send ("(" & $m9[0] & "," & $m9[1] & ")" & @CRLF) If $a >= 10 Then Send ("(" & $m10[0] & "," & $m10[1] & ")" & @CRLF) If $a >= 11 Then Send ("(" & $m11[0] & "," & $m11[1] & ")" & @CRLF) If $a >= 12 Then Send ("(" & $m12[0] & "," & $m12[1] & ")" & @CRLF) EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndFunc I want to use this to a max $a but in this way it costs a lot of time thanks
  3. hello! I need some help with this: i have this url http://nos.nl/teletekst#801and the 801 is a variable i want my script to read. how can i do this? i hope someone can help me!
  4. thank you! i did not know it was that simple haha i also have another question, the 849 is variable on the internet, how can i use that variable in my script?
  5. hello, I am new to autoit and i want to search for a certain sentence in the html of a website. the sentence is: <span id="wood" title="Hout - 45 per uur" class="res">849</span> but when i use Global $tekst = _IEBodyReadHTML ($oIE) If StringInStr ($tekst,"<span id={Asc 34}wood{asc 34} title={asc 34}Hout - 45 per uur{asc 34} class = {asc 34}res{asc 34}>849</span") Then MsgBox (0,"Found!","The text was found!",3) Else MsgBox (0,"Failed!","The text was not found!",3) EndIf it does not find the string. I tried some things and i think it has something to do with the {asc 34} I hope someone can help me!
×
×
  • Create New...