Jump to content

Xav

Active Members
  • Posts

    147
  • Joined

  • Last visited

About Xav

  • Birthday 12/27/1992

Profile Information

  • Location
    Montreal (canada-Quebec)

Xav's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Heres an example that I have made but it's really slow... Is there any other way that I can make it work faster ? (I am looking for a pixel over 10000000 [decimals colors]). hotkeyset('l',"ex") func ex() Exit EndFunc sleep(2000) $x = 955 $y = 60 while 1 $color = PixelGetColor($x, $y) ;msgbox(0,'',$color) mousemove($x,$y,1) if $color > 10000000 Then mousemove($x,$y,1) Exit Else $x = $x + 1 EndIf if $x > 1140 Then $x = 955 $y = $y + 1 EndIf If $y > 245 and $x >955 Then ; did all the way Exit EndIf WEnd Thanks, Xav
  2. Thanks ! No i want my script running during 30 seconde....
  3. How can i do a while for 30 seconde? Something like this: $1= 30000 While $1 wend Thanks
  4. THanks .. If i have a while in it how can the button 2 stop it ? Sry i'm new with the Gui's Functions... #include <GUIConstantsEx.au3> hah() Func Hah() Local $Button_1, $Button_2 , $button_3, $msg GUICreate("BomBom , ChaCha") Opt("GUICoordMode", 2) $Button_1 = GUICtrlCreateButton("Activating", 10, 8, 125) $Button_2 = GUICtrlCreateButton("Desactivating/Pause", 0, -1) $hLabel = GUICtrlCreateLabel("Daw 1", 10, 30) ; added this to create the label outside of the loop GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop ; It Doesnt work anymore too. Case $msg = $Button_1 While 1 sleep(1) Wend ;~ GUICtrlCreateLabel("Daw 1", 10, 30) GUICtrlSetData($hLabel,"Daw 1") ; added this to change label value to 'Daw 1' Case $msg = $Button_2 GUICtrlSetData($hLabel,"Daw 2") ; added this to change label value to 'Daw 2' EndSelect wend EndFunc
  5. If i press "Daw 1" it will be wrote .. But if i press Daw2 after i've pressed daw1 it will not be wrote , how can it replace Daw1 for Daw2?? #include <GUIConstantsEx.au3> hah() Func Hah() Local $Button_1, $Button_2 , $button_3, $msg GUICreate("BomBom , ChaCha") Opt("GUICoordMode", 2) $Button_1 = GUICtrlCreateButton("Activating", 10, 8, 125) $Button_2 = GUICtrlCreateButton("Desactivating/Pause", 0, -1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 GUICtrlCreateLabel("Daw 1", 10, 30) Case $msg = $Button_2 $Activated = GUICtrlCreateLabel("Daw 2",10, 30) GUISetState() EndSelect wend EndFunc
  6. Thanks .. Working well <3 =D!
  7. Until a user does something , like that : Hotkeyset("{numbpad1}" , "Break") Func Break() PauseScript endfunc
  8. A function can pause my script.
  9. How can i do / If @Error / If it doesnt get the color $Life = PixelGetColor(735, 585) If $Life = 0x5C0000 Or $Life = 0x18480C [b]@error[/b] Then _somefunction() Else Sleep (2000) Endif I Have tried to add "@error" and it does not work too
  10. If pixel search see 0x5C0000 or 0x18480C , It will sleep wait 2secondes.... Something like that but it has to work xD! : $Life = 0x5C0000 , 0x18480C PixelSearch( 735, 585 , 735, 585 ,$life ) If Not @Error Then Sleep (2000) Endif
  11. How can i splash x2 image at the same time ? It only makes apear 1 image and then it disapear after 0.00001 scondes then the next apear. $destination = "..\Xzibit\2vn011h.jpg" SplashImageOn("", $destination,47, 81 , 77, 537 , 1) SplashImageOn("", $destination,47, 81 , 20, 537 , 1) Ps; While 1/Wend don't work xD!...
  12. Use pixelsearch()
  13. Guess , Thanks dude =)!
  14. Nop that can't work... example..; While "for the next 80sec" mouseclick("Left" , 55, 500 , 1 , 0) Wend ;That will wend after the 80sec left...
  15. How can i make a while durring only 80sec...?
×
×
  • Create New...