Problem with script

01/20/2014 19:14 mlukac89#1
Hey i have next problem with this script, all work fine only when i want to turn it off i cant i must do that in on tray icon. Anyone know where problem is ?

01/20/2014 19:21 Razor'#2
I can help you. Add me in Skype.
01/20/2014 20:02 YatoDev#3
hotkeyset on a function that exits or but GuiGetMSg in the loop
01/20/2014 20:30 mlukac89#4
i solved problem it was in here

Code:
Func _spam()
	$run = Not $run
	While $run ; this line was While True and i replaced with While $run
		If $run Then
			$text = GUICtrlRead($textInput)
			$time = 1000
			$time = $time - ($time / 50 * GUICtrlRead($Slider1))
			ControlSend($handle, "", "", $text)
			Sleep($time)
		EndIf
	WEnd
EndFunc
01/20/2014 21:06 YatoDev#5
Quote:
Originally Posted by mlukac89 View Post
i solved problem it was in here

Code:
Func _spam()
	$run = Not $run
	While $run ; this line was While True and i replaced with While $run
		If $run Then
			$text = GUICtrlRead($textInput)
			$time = 1000
			$time = $time - ($time / 50 * GUICtrlRead($Slider1))
			ControlSend($handle, "", "", $text)
			Sleep($time)
		EndIf
	WEnd
EndFunc
$run = Not $run ? isnt that stupid ? $run is not $run
I think you mean False
While $run means While True
01/20/2014 22:05 mlukac89#6
Now i get it :D