Jump to content

JJ1122

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

161 profile views

JJ1122's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Thank you for the suggestions! Guess I'll need to think more about how to solve this myself/ Getting close tho.
  2. Will it stabilize the clicks? What happens if I make them 0?
  3. Thank you for the simpler code ! It runs much faster, but makes some mistakes tho... Like pressing 3 before 4. I'm not sure why
  4. It's an electric circuit management program made by one of my friends.
  5. #include <Misc.au3> #include <FastFind.au3> #include <WinAPI.au3> #include <APIConstants.au3> #include <WindowsConstants.au3> #include <GUIConstants.au3> $color = 16765255 ; 색깔# $colorhex = 0xffd247 $coord1 = 763 $coord2 = 841 $coord3 = 919 $coord4 = 997 $count = 0 While 1 If $count = 0 Then $mouse = MouseGetPos() EndIf $button4 = PixelGetColor($coord4, 606) If $button4 = $color Then MouseClick("left", $coord4 + 30, 625, 1, 1) $count += 1 EndIf $button4 = PixelGetColor($coord4, 606) $button3 = PixelGetColor($coord3, 606) If $button4 <> $color And $button3 = $color Then MouseClick("left", $coord3 + 30, 625, 1, 1) $count += 1 EndIf $button4 = PixelGetColor($coord4, 606) $button3 = PixelGetColor($coord3, 606) $button2 = PixelGetColor($coord2, 606) If $button4 <> $color And $button3 <> $color And $button2 = $color Then MouseClick("left", $coord2 + 30, 625, 1, 1) $count += 1 EndIf $button4 = PixelGetColor($coord4, 606) $button3 = PixelGetColor($coord3, 606) $button2 = PixelGetColor($coord2, 606) $button1 = PixelGetColor($coord1, 606) If $button4 <> $color And $button3 <> $color And $button2 <> $color And $button1 = $color Then MouseClick("left", $coord1 + 30, 625, 1, 1) $count += 1 EndIf WEnd There are four buttons that light up in certain conditions, and I am trying to click them as fast as I can. Also, I MUST press Button 4 before Button 3, 3 before 2, and 2 before 1. Which is the reason I wrote it like: $button4 = PixelGetColor($coord4, 606) $button3 = PixelGetColor($coord3, 606) $button2 = PixelGetColor($coord2, 606) $button1 = PixelGetColor($coord1, 606) If $button4 <> $color And $button3 <> $color And $button2 <> $color And $button1 = $color Then... I am currently using PixelGetColor, but I'm not sure if this is the best way to do this process loop. Is there any faster function which does the same thing as PixelGetColor? Or possibly any way to accelerate the process..? + If anyone can help compress the coding neatly, It'll be great, too.
  6. it works just like i wanted! thank you so much
  7. i want to simplify "press keyboard - press keyboard - click - drag - press keyboard - drop" to "press keyboard - release keyboard". it's for shopping uses in a korean website.
  8. #include <Misc.au3> While 1 If _IsPressed(59) Then Send("{B}") MouseDown("left") Else Send("{B}") MouseUp("left") EndIf WEnd I want the script to do this: - if I press "Y", send "B" once and hold left click down until i release "Y". - if I take my hands off of "Y" key, then send "B" once again and release left click. but the script I made has problems. when I run the script, it starts sending "B" repeatedly, and my left click won't work. I'm not smart enough to figure out what the problem is... please help me! sorry for bad English.
  9. I need a macro script that has these functions: 1. if you press "1", the program presses "T" for exactly 1 second. 2. if you press "2", the program presses "T" for exactly 2 second. 3. if you press "3", the program presses "T" for exactly 3 second. can someone help me with this? I have no idea how to make it.
  10. while~ select case~ if~ then~ three of them all don't work. how can i repeatedly send "a" only when i'm pressing it? also, "a up/a down" does work when i'm pressing "a", but it keeps sending "a" forever even when I take my hands off "a" when pressing B, send A -> DOES WORK. I don't know why when pressing A, sending A won't work. Am I the only one having this problem? #include <Misc.au3> While 1 Select Case _IsPressed(41) Send("{a}") EndSelect WEnd 1.au3
×
×
  • Create New...