hi again and thanks for another answer pixelsearch!
like i said im quite a beginner here so pretty much im just winging it with the code. i did manage to get it working though its something that a neanderthal would write ( as code ) :
$sPageContent = ClipGet()
$searchstring11 = "05:30"
$searchstring12 = "04:30"
$searchstring13 = "06:00"
$searchstring22 = "23:30"
$searchstring23 = "00:30"
$searchstring24 = "23:00"
$searchstring33 = "20:00"
$searchstring34 = "15:30"
$searchstring35 = "16:30"
$searchstring36 = "17:30"
$searchstring37 = "18:00"
If StringInStr($sPageContent, $searchstring11) Then
MouseClick("left", 370, 995)
Send("11")
ElseIf StringInStr($sPageContent, $searchstring12) Then
MouseClick("left", 370, 995)
Send("11")
ElseIf StringInStr($sPageContent, $searchstring13) Then
MouseClick("left", 370, 995)
Send("11")
ElseIf StringInStr($sPageContent, $searchstring33) Then
MouseClick("left", 370, 995)
Send("6")
ElseIf StringInStr($sPageContent, $searchstring34) Then
MouseClick("left", 370, 995)
Send("6")
ElseIf StringInStr($sPageContent, $searchstring35) Then
MouseClick("left", 370, 995)
Send("6")
ElseIf StringInStr($sPageContent, $searchstring36) Then
MouseClick("left", 370, 995)
Send("6")
ElseIf StringInStr($sPageContent, $searchstring36) Then
MouseClick("left", 370, 995)
Send("6")
ElseIf StringInStr($sPageContent, $searchstring22) Then
MouseClick("left", 370, 995)
Send("3")
ElseIf StringInStr($sPageContent, $searchstring23) Then
MouseClick("left", 370, 995)
Send("3")
ElseIf StringInStr($sPageContent, $searchstring24) Then
MouseClick("left", 370, 995)
Send("3")
Sleep ( 1000 )
EndIf
and looking at what you wrote i first need to figure out what that exactly does / translate it into something that i can think with/about.
basically youve added the - 11 , - 6 and - 3 into my predefined strings that i would be searching for , but when doing the actual search you are only searching the first 5 characters and if the search finds something you tell it to sendus whats after character 9 in our predefined strings, correct ?
im not exactly sure what this if does :
If $searchstring[$i] <> "" Then
im guessing its meant to keep the For above going and increment the $i so that it passes through all our searchstrings ?
ill give this a try tomorrow when at work and will let you know. as right now im beat and the only thing i want is to open a beer and relax for the rest of the evening.
again, much appreciated man!