Jump to content

christian11

Active Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by christian11

  1. i dont really like using internet explorer as browser because its really buggy. is there anyway to achieve this?
  2. hello i want to click the icon on facebook when its available on screen and also without moving my mouse is it possible? because i have 3 google chrome small windows opened, while im doing another stuffs in small window simotenously in my screen $icon = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x00FF00) If isArray($icon) then ControlClick("Facebook - Google Chrome","","","left",1, $icon[0], $icon[1]) sleep (300)
  3. unfortunately chrome.au3 didnt work in extended screen
  4. so it would be green=PixelSearch(-1, -1, @DesktopWidth, @DesktopHeight, 0x00FF00) is it correct??
  5. im trying to automate google chrome with two displays. using controlsend in inactive window any suggestions?
  6. my script is working fine in my main monitor. but however when i use with my dual monitor it cant detect pixels from extended monitor.. any idea why? green=PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x00FF00) If isArray($green) then send("1") sleep (300)
  7. im trying to make randomly hold 3 keys but its doesnt work any suggestions? #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here Global $Paused, $counter = 0 HotKeySet ("{HOME}", "Start") HotKeySet ("{END}", "_Exit") While 1 Sleep(200) WEnd Func Start() While 1 call ("ClickRandomly") sleep (500) WEnd EndFunc Func ClickRandomly() Local $RandomNumber = Random(1,3,1) If $RandomNumber == 1 Then send ("{a down}") sleep (2000) send ("{A UP}") sleep (5000) EndIF If $RandomNumber == 2 Then send ("{d down}") sleep (2000) send ("{d UP}") sleep (5000) EndIF If $RandomNumber == 3 Then send ("{w down}") sleep (2000) send ("{w UP}") sleep (5000) EndIF EndFunc Func _Exit() Exit EndFunc
  8. edit: finally i got it make to work, however it keeps looping/clicking even if I stop holding the right click
  9. hi im kinda newbie in autoit can you help me how to make hold key macro? i want to spam repeatedly the right click mouse button, when i hold right click button, and it will only stop when i release it #Include <Misc.au3> While 1 If _IsPressed("02") Then Do mouseup("right") mousedown("right") sleep (100) Until not _IsPressed("02") EndIf WEnd but it didnt work any suggestions?
  10. i appreciate your help. but i forgot to say. it is inside the loop so puting inside the loop doesnt seem work
  11. I just wanted to return back to the main function if pixelgetcolor did not matched similiar to goto, but it gaves me error whenever there's no pixelgetcolor matched any suggestions? Func main() Local $RandomNumber = Random(1,3,1) If $RandomNumber == 1 Then Local $click1= PixelGetColor ( 458 , 163 ) If $click1 = (0x55556b) then MouseClick("primary",458,163, 10 , 0) else call ("main") EndIF EndIF If $RandomNumber == 2 Then Local $click2= PixelGetColor ( 668 , 349 ) If $click2 = (0x55556b) then MouseClick("primary",668,349, 10, 0) else call ("main") EndIF EndIF If $RandomNumber == 3 Then Local $click3= PixelGetColor ( 520 , 449 ) If $click3 = (0x55556b) then MouseClick("primary",520,449, 10, 0) else call ("main") EndIF EndIF EndFunc
  12. ok ill try ..is it okay? its worked but it doesn't Mouseclick to $pink any idea why? Func CheckIfMatch() $pink = PixelSearch(0, 0, @DesktopHeight, @DesktopWidth, 0x2f0326) $white = PixelGetColor ( 1002 , 236 ) If isArray($pink) And $white = 0xFFFFFF then Send("{F5}") MouseClick("primary", $pink[0] , $pink[1], 0, 0) Else MouseClick("primary", $pink[0] , $pink[1], 0, 0) EndIf EndFunc
  13. hello i'm here again i know im quite annoying because i ask nonsense questions >.< i just wanted to improve my automated autoclicker yahoomail I wanted to check if it is match pink and white color using AND operator && but i cant make it to work im really newbie in programming ,i wanted to learn more, i hope you help me again Func CheckIfMatch() $pink = PixelSearch(0, 0, @DesktopHeight, @DesktopWidth, 0x2f0326) && If PixelGetColor ( 1002 , 236 ) = 0xFFFFFF && If isArray($pink) then Send("{F5}") MouseClick("primary", $pink[0] , $pink[1], 0, 0) Else MouseClick("primary", $pink[0] , $pink[1], 0, 0) EndIf EndFunc
  14. only function refresh works.. but click2mins not working any idea why? ; Create Run flag Global $bRun = False ; Run your refresh function automatically AdlibRegister("refresh", 180000) ; 3 minutes AdlibRegister("click2mins", 120000) ; 2 minutes While 1     Sleep(200)     ; Check if we should run the main function     If $bRun Then         ; Just run it the once on each pass - that way we can check if we stil need to do so         _Main()     EndIf WEnd ; This will run independently as you require Func refresh()     Send("{F5}") EndFunc   ;==>refresh Func click2mins()        MouseClick("left",592,173) EndFunc  ;==>click2mins ; These 2 functions set/clear the Run flag Func _Start()     $bRun = True EndFunc   ;==>_Start Func _Stop()     $bRun = False EndFunc   ;==>_Stop
  15. omg thank you so much it works..i actually lost my hope.. until i recently saw your reply :)) although i have wait for 3mins after i pressed the start button. but its okay its perfectly working as intended. one more question... how can i add another adlibregister? with another different function let say every 2mins it will mouseclick in coordinates 592,173 ; Create Run flag Global $bRun = False ; Run your refresh function automatically AdlibRegister("refresh", 180000) ; 3 minutes AdlibRegister("click2mins", 120000) ; 2 minutes While 1 Sleep(200) ; Check if we should run the main function If $bRun Then ; Just run it the once on each pass - that way we can check if we stil need to do so _Main() EndIf WEnd ; This will run independently as you require Func refresh() Send("{F5}") EndFunc ;==>refresh Func click2mins() MouseClick("left",592,173) EndFunc ;==>click2mins ; These 2 functions set/clear the Run flag Func _Start() $bRun = True EndFunc ;==>_Start Func _Stop() $bRun = False EndFunc ;==>_Stop
  16. so it will be like this?? #include <MsgBoxConstants.au3> HotKeySet("{ESC}", "_Exit") Global $aArray[] = ["592, 173", "309, 631"] While 1     ; Get a random index 0 to 2     $iRandom = Random(0, 2, 1)     ; Display the random array element   MouseClick("left", * $iRandom, $aArray[$iRandom] ) WEnd Func _Exit()     Exit im confuse XD
  17. because from another macro program im using.. i used to think that it will select variable from according to what I defined. its like something this do say @random ("hello world","whats up","hi fellas") see? it will say from what exact words i setup I think the function random is not really doing what i really wanted maybe there's another function? sorry im really newbie to this i hope you help me
  18. yes i want it to click it randomly between two points no not random time.. its something like this -> it will choose either click A or B once ->then continue the other program $coordinates1= 592, 173 $coodinates2= 309 , 631 ;select coord1 or coord2 MouseClick("left", random(coordinates1), random(coordinates2) else send {f5} yada yada yada
  19. it doesnt seem work.. why its clicking on different coordinates? i wanted it to click exactly in specific coordinates please help
  20. hi im kinda newbie here. i cant seem understand the function random from helpfile i would really appreciate if you help me I just wanted to mousclick from two specific x,y coordinates randomly .. can you suggest me how to achieve it? its something like this -> it will choose either click A or B once ->then continue the other program $coordinates1= 592, 173 $coodinates2= 309 , 631 MouseClick("left", random($coordinates1), random($coordinates2)
  21. ahh oh i see. i understand. im not using email apps just simple google chrome yahoomail @_@ i customized my email into pink theme so pixelsearch can see through it.. so whats up my script is bad or okay?
  22. what? r u guys are from cyber police or something? kidding. i am not doing illegal cybercrime lol i just want to open webpages from emails sended from my boss from client.. and spam click the pink pixel on it and resend it like a automate email so how about this? i hope this will work HotKeySet ("{HOME}", "Start") AdlibRegister("refresh",180000);3minutes? While 1 Sleep(200) WEnd Func refresh() Send("{F5}") EndFunc Func Start() While 1 call "refresh" Else $pink = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x8a0859) If isArray($pink) then MouseMove($pink[0],$pink[1], 0) sleep(100) MouseClick("Left") Else $pink2 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x8c085a) If isArray($pink2) then MouseMove($pink2[0],$pink2[1], 0) sleep(100) MouseClick("Left") Else $pink3 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x880852) If isArray($pink3) then MouseMove($pink3[0],$pink3[1], 0) sleep(100) MouseClick("Left") Endif Endif Endif WEnd EndFunc
  23. like what i said in my previous thread im trying to automate google chrome browser from a webpage.. a spammer thing lol im really new to this..the helpfile didnt seem give me more info for my problem.. i would really appreciate can someone give me example for this thank you!
  24. thanks for fast reply is it okay? HotKeySet ("{HOME}", "Start") AdlibRegister("refresh",180000);3minutes? While 1 Sleep(200) WEnd Func Start() While 1 "refresh" ;--- how can i add the adlibregister"refresh" here?? is it correct? Else $pink = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x8a0859) If isArray($pink) then MouseMove($pink[0],$pink[1], 0) sleep(100) MouseClick("Left") Else $pink2 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x8c085a) If isArray($pink2) then MouseMove($pink2[0],$pink2[1], 0) sleep(100) MouseClick("Left") Else $pink3 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x880852) If isArray($pink3) then MouseMove($pink3[0],$pink3[1], 0) sleep(100) MouseClick("Left") Endif Endif Endif WEnd EndFunc
×
×
  • Create New...