Casper2400
Active Members-
Posts
38 -
Joined
-
Last visited
About Casper2400
- Birthday 07/04/1971
Profile Information
-
Location
China
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Casper2400's Achievements
Seeker (1/7)
0
Reputation
-
Yes that part I got and understand, however I want it to tell me WHICH pixel changed (it needs to click on that pixel) More importantly I need it to check for not only changed but is NO LONGER black. This part of the code must be very specific. the page will change 3 times in the course of this action and if it is black then page has returned to normal state, if any area of the checksum is NOT black then continue clicking button #2.
-
Ok back on this issue now. The code above works BUT only in my 1024 by 768 windows XP Firefox browser system. I am doing this for a friend and the pixel location is off a hair or 2, so I want to change the code to search an area of space for ANY color other than black... if it finds a color NOT black click on it and continue search.. is this possible? the thing is the page is black, when something happens a button appears when you click on that button IF more is needed the button appears again but this time in a lower location (a 3rd, 4th, or continuing will always be in the same location as the 2nd) and remain there until 1 it is no longer needed in which case go back to the beginning of code and continue the loop, or 2 click the button again. because of different screen resolutions and operating systems and god forbid everyone use the same web browser >_< I need a way to seek a square area that will be covered by all of these issues. thank you and I hope its not too confusing
-
From what you gave me got me on the right track MouseClick("left", 600, 255, 1) While 1 $var1 = PixelGetColor( 515 , 390 ) $var2 = PixelGetColor( 515 , 480 ) If $var1 = 0xffffff Then While $var1 = 0xffffff MouseClick("left", 515, 390, 1) Sleep (2000) $var1 = PixelGetColor( 515 , 390 ) Wend ElseIf $var2 = 0xffffff Then While $var2 = 0xffffff MouseClick("left", 515, 480, 1) Sleep (2000) $var2 = PixelGetColor( 515 , 480 ) Wend Else MouseClick("left", 850, 225, 1) EndIF MouseClick("left", 850, 225, 1) Sleep (5000) Wend This works as far as I can tell
-
Hello all, it has been a long time since I have visited these forums. I need some advice on how to solve this problem: I have a button that when pushed the pixel is either white or black IF the pixel in THAT location is White then click on that pixel If the pixel is black then check next pixel location If you clicked on first pixel location (meaning it was white) then pixel location 2 will either turn white or remain black confusing I know... What I want it to do is: click a start button, check the first pixel location if it is white, click it then check pixel location 2 if it is white click it and check pixel location 2 again (until location 2 is black) when location 2 is black click start button every 5 seconds until location 1 OR 2 turns white again... I have done up some code but it is not checking the pixel location until after the sleep time (code is set to 5 sec. for testing) ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") ;begin MouseClick("left", 600, 255, 1) While 1 $var1 = PixelGetColor( 515 , 390 ) $var2 = PixelGetColor( 515 , 480 ) If $var1 = 0xFFFFFF Then MouseClick("left", 515, 390, 1) ElseIf $var2 = 0xFFFFFF Then MouseClick("left", 515, 480, 1) Else MouseClick("left", 850, 225, 1) EndIf If $var2 = 0xFFFFFF Then MouseClick("left", 515, 480, 1) Else Sleep (60000) MouseClick("left", 850, 225, 1) EndIf WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc the above is my code, it works BUT it only checks each one time in the cycle, I want it to check $var1 if true click and re-check $var1 before checking $var2... check $var2 if true click and re-check $var1 and $var2 again , continue the loop until both $var are false then click the start button after 60 seconds to go through the cycle again. Hope this all makes sense. Thank you
-
Hello could someone please translate this AutoIt code into Delphi code? Thank you $var= MouseClick ("left", 835,660, 1, 5) and send ("{CTRLDOWN}c{CTRLUP}") Clipput= $var
-
Someone please help with this code
Casper2400 replied to Casper2400's topic in AutoIt General Help and Support
PixelCheckSum will find the color yes BUT how to make it mouse click AT the position IF that color is found AND on the FIRST one not EACH of them (there may be more than 1 tab) -
Someone please help with this code
Casper2400 replied to Casper2400's topic in AutoIt General Help and Support
unfortunatly there are no "window handles" for this. Its a tab at the bottom of the screen and I need to click on the tab to open it. this is an IN game window so there are no handles (that I can locate.) also this tab name could change from user to user so it would be unknown anyways. basically what I need it to do is pixelsearch the area and mouseclick on the FIRST area that is NOT black. -
Someone please help with this code
Casper2400 replied to Casper2400's topic in AutoIt General Help and Support
Hello again, still on this same situation. I got the code I need to loop for sending messages but now I am having trouble getting it to locate WHERE it needs to click to get the tab to open. On the bottom of the screen is a solid black bar, When a room is minimized it creates a tab here (NOT black) However the location of this tab is not always the same. ie: If user is member of a "clan" will be the first tab, IF user chooses to have buying AND/OR selling boards will create 1, 2 OR 0 tabs, and finally the trade room itself (which is the room I need to open to send the message at timed intervals. Can someone explain how to look at the black bar AND CLICK where it FIRST appears NOT black? Thank you. -
Someone please help with this code
Casper2400 replied to Casper2400's topic in AutoIt General Help and Support
Turns out in this situation I will need to use a "case" and "while" statements. Thank you all for your assistance. -
Someone please help with this code
Casper2400 replied to Casper2400's topic in AutoIt General Help and Support
It is Delphi with AutoItx wrapper. $ symbols are not recognized, MUST have AU3_ preceding, and single quotes not double. I will fix this code and try it. Thank you Chip. -
Hello all and thank you for reading this post. Below is a code snipet from my program. On the bottom of the window is a solid black bar. When a message window is opened and then minimized it creates a tab on this black bar (the tab is NOT black) I want to know how to determin when the bar is not nlack and send a mouseclick on that tab (more tabs will move, most recent tab will be first) Here is the code I have but I cannot seem to get it to work. Can someone look at the code and tell me how to fix it (clean it up) to where it will work as it should. Thank you AU3_MouseMove (280,730,1); Spambox:=AU3_PixelGetColor (280,730); if Spambox=0 then begin AU3_MouseMove (380,730,1); Spambox:=AU3_PixelGetColor (380,730); end; if Spambox=0 then begin AU3_MouseMove (480,730,1); Spambox:=AU3_PixelGetColor (480,730); end; if Spambox=0 then begin AU3_MouseMove (580,730,1); Spambox:=AU3_PixelGetColor (580,730); end; if Spambox=0 then begin AU3_MouseMove (680,730,1); Spambox:=AU3_PixelGetColor (680,730); end; if Spambox=0 then begin AU3_MouseMove (780,730,1); Spambox:=AU3_PixelGetColor (780,730); end; if Spambox=0 then begin AU3_MouseMove (880,730,1); Spambox:=AU3_PixelGetColor (880,730); end else if Spambox<>0 then begin AU3_MouseDown ('left'); end; Sleep (1000); AU3_MouseClick ('left', 137,367, 1, 3); AU3_Send (spamsg2,0); AU3_Send ('{ENTER}',0); Sleep (1000); Sleep (300000);
-
So many trade bots online and no one can answer this? All of them use autoit one way or another.
-
Anyone get a chance to think about this?
-
Why did you move this?? this is NOT an autoit script general help question, it deals with Delphi, C, and C++ which is WHERE I had it.
-
Hello all and thank you. I am coding a trade bot using Delphi and autoitx wrappers for mouse movements, x.y coords, and send function (for now) The game is Magic the Gathering Online. The bot CANNOT play the game but it can and does make trading cards a lot easier and you dont need to sit in front of the computer 24/7 waiting for someone to trade with you. I have most of the code complete but have hit a brick wall and need some help from other coders in the community. When a trade is opened only 2 people are in this room the bot and the trader. The bot will wait for the trader to make a selection (either tickets OR cards) If a ticket is selected bot will send message that it will look at the traders collection for cards the bot wants in exchange for that ticket. If a card is selected bot will send message a quote of the "name of card selected" and price the bot wants for that card. here are some screen shots for those that are not familiar with MTGO... My question is HOW to know the card name and match it with card name in either a db or cvs to quote a price. and to do this each time a card is selected (ie. 1 card quote 1 price) 2 cards quote both cards with price for each card and total quote for both cards. Thank you and I hope to get some help soon. Casper images: 1 ticket 1 card 2 different cards 4 of the same card 32 cards