Jump to content

Olsson

Active Members
  • Posts

    35
  • Joined

  • Last visited

Profile Information

  • Location
    Sweden

Olsson's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. How does it look when you are connected/unconnected? Any message/text - logs? Olsson
  2. You mean to be able to move the mouse with arrowkeys?
  3. @Robjong Thanks, seems to work! Trying it out right now!
  4. How do I test if it is an array? Then it should be able to just - If $b_b is an array, then execute, if it's not an array, then do nothing?
  5. Hey guys! While executing this command: $b_html = _IEBodyReadHTML ($oIE) $b_b = _StringBetween ($b_html, "document.snd.t"&$b_unit&".value=", ";") $t_built = $t_built + $b_b[0] I get this error: dra2.au3 (138) : ==> Subscript used with non-Array variable.: $t_built = $t_built + $b_b[0] $t_built = $t_built + $b_b^ ERROR I know "why" this is happening - This is reading from a website and inserting this info into another function. But $b_b is only a valid array when the _StringBetween is functional. So if the website takes to long to load, or it loads wrong, my program crashes. Is there any possible way to make it.. Not crash when this fails? Thanks, Olsson
  6. I won't contribute with any code, but I'll tell you what: I think AutoIt is what you're looking for and that you need to read up on several commands regarding this, how about starting with an easier project? Also, you don't need to set up rules regarding this specific thread, just makes you look like a fool. How about your appreciate the help you get from people?
  7. Still wondering over post #8, any ideas?
  8. Post the code that you used.
  9. Func func1() MsgBox("", "Function1!", "This is function 1", 0) EndFunc Func func2() MsgBox("", "Function1!", "This is function 2", 0) EndFunc Func func3() MsgBox("", "Function1!", "This is function 3", 0) EndFunc $i = 1 While $i = 1 $rMessage = Random (1, 3, 1) MsgBox ("", "Random", $rMessage, 0) If $rMessage = 1 Then func1() If $rMessage = 2 Then func2() If $rMessage = 3 Then func3() $i = $i + 1 WEnd I wrote this, works.
  10. Use: [code]CODE or AutoIT codeoÝ÷ Û÷(uå¡zzh²Ø§ÊxývëjȦ¦WËZµéÛh¦·¬z{m鲯 zÁb®ËeÉÚ­©Ý¢g(uçë¢l¨º·â®ËfzËím£*.®V¬µìuÑ8^ÚºÚ"µÍÌÍÜYÜØYÙHH[ÛJKLLJBY ÌÍÜYÜØYÙHHH[[Ý[ÛJ B[ÙBY ÌÍÜYÜØYÙHH[[Ý[Û B[ÙB[Y[Y Just keep on going!
  11. You can use the random command; Random (1, 3, -1)Random number between 1 and 3. That might get you somewhere?
  12. That fixed another problem I had, heh. Well, It still does loop the same values twice or thrice, just randomly. I can't figure out why!
  13. Yes you can, you need the UDF for it, or use MouseClick.
  14. I don't quite get what you're looking for - Maybe you could supply us with more information?
  15. $var = PixelGetColor(668, 448) $col = Hex($var, 6) MsgBox (1, "", $col, 0) If $col = 0x33131 Then msgbox(1,"Working?","Nope is not working") I think this is what you're looking for?
×
×
  • Create New...