Jump to content
Sign in to follow this  
Devarion

Flashing Red "X"

Recommended Posts

Devarion

Alright, so I got this script for a game I play. The issue is, whenever I press F7 to start it, it never works, there's just a red "x" flashing in the task bar icon. I figured maybe it's because we don't have the right screen resolution or I don't have the window in the right place. Could someone possibly figure out what went wrong with it?

Unpausing it removed the red "X" but the script is still not working. :s

While 1
HotKeySet("{F1}", "PAUSE")
HotKeySet("{F7}", "DOSCROLL2")
WEnd
Func DOSCROLL2()
$ZAHL = 0
While 1
  Sleep(20)
  $I = ControlGetText("", "", 1026)
  $TEST = StringRight($I, 8)
  If $TEST = "100 EXP!" Then
   $ZAHL = 0
  Else
   $ZAHL = $ZAHL + 1
   If $ZAHL = 1000 Then
    ControlSend("", "", 65535, "{i}")
    $ZAHL = 0
   EndIf
  EndIf
  $I = StringRight($I, 14)
  $I = StringMid($I, 1, 1)
  If $I = "Z" Then
   ControlSend("", "", 65535, "{z}")
   Sleep(5000)
  ElseIf $I = "X" Then
   ControlSend("", "", 65535, "{x}")
   Sleep(5000)
  EndIf
WEnd
EndFunc
Func PAUSE()
While 1
  Sleep(1000)
WEnd
EndFunc
Edited by Devarion

Share this post


Link to post
Share on other sites
Valik

Thread locked per the rules.

To the reporter of this topic... the report is fine, everything was done correctly.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×