CantTouchThis Posted March 29, 2005 Share Posted March 29, 2005 Hi, I am somewhat new to AutoIT dont flame me and tell me to read the help file because i have read it but i still cant seem to grasp this. Ok so heres what i want to do. I want the script to detect the colour code (0x31559C) and once it has been detected for it to hold the ctrl button until it has disappeared. If anyone out there could possibly help me with this, it would be greatly appreciated. Btw, im not sure if this is entirely possible but i hear autoit is one of the most advance scripting tools thingos out there *fingers crossed* Thanks In Advance Link to comment Share on other sites More sharing options...
buzz44 Posted March 29, 2005 Share Posted March 29, 2005 where would you like to detect the colour? beneath the mouse? the whole screen or just a region of the screen? qq Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 29, 2005 Share Posted March 29, 2005 Commands needed: While PixelSearch Send [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 29, 2005 Author Share Posted March 29, 2005 I would like it to detect the whole screen if possible. Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 29, 2005 Share Posted March 29, 2005 (edited) You can't try to do anything if you don't atleast try to RTFM - Read The Fucking Manual Edited March 29, 2005 by Xenogis [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 29, 2005 Author Share Posted March 29, 2005 Gotta love this friendly atmosphere.... Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 30, 2005 Share Posted March 30, 2005 Don't worry it gets much much better.... lol don't worry i'm just annoyed easily and impatient. Others are friendlier than me. [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 30, 2005 Author Share Posted March 30, 2005 Ok lol, i have been trying to get it too work but no sucess. Guess i will wait for the more "Friendlier" people Link to comment Share on other sites More sharing options...
Ejoc Posted March 30, 2005 Share Posted March 30, 2005 Guess i will wait for the more "Friendlier" people <{POST_SNAPBACK}>I think they are on vacation, but my nuggets of information(mostly what Xenogis said):Send("{CTRLDOWN}")PixelSearch()Start -> Programs -> AutoIt v3 -> AutoIt Help FileStart -> Programs -> AutoIt v3 -> AutoIt Help FileStart -> Programs -> AutoIt v3 -> AutoIt Help File Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
SlimShady Posted March 30, 2005 Share Posted March 30, 2005 Can you tell me what you are waiting for? Xenogis gave you a couple of hints. In combination with the help file, you will be able to do this on your own. Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 30, 2005 Author Share Posted March 30, 2005 Ejoc thanks for that but i have already done it. Thanks anyway just really needed to sit and think about it Link to comment Share on other sites More sharing options...
SlimShady Posted March 30, 2005 Share Posted March 30, 2005 Ejoc thanks for that but i have already done it. Thanks anyway just really needed to sit and think about it <{POST_SNAPBACK}>That's the spirit Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 30, 2005 Author Share Posted March 30, 2005 (edited) Ok the script i did didnt work if someone could correct me it would be appreciated. I want the full screen. and for it to press Ctrl when the pixel is found until it disappears. Send("{CTRLDOWN}") $coord = PixelSearch( 0, 0, 1240, 768, 0x637542 ) I tried. just abit of a nudge in the right direction please Also how do i get the script to execute for just one window? cause when i start the script i cannot open the window that i want it to run in. This is for a game btw, i want to to run in the window called MapleStory but once i start the script it will not allow me to maximize the window. Edited March 30, 2005 by CantTouchThis Link to comment Share on other sites More sharing options...
zcoacoaz Posted March 30, 2005 Share Posted March 30, 2005 i havn't tested this code i wrote it straight to the forums so don't be suprised if it doesn't work While 1 If PixelSearch( 0, 0, 1240, 768, 0x637542 ) Then Send("{CTRLDOWN}") While PixelSearch( 0, 0, 1240, 768, 0x637542 ) ;wait until the pixel dissapears WEnd Send("{CTRLUP}") EndIf WEnd [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
Ejoc Posted March 30, 2005 Share Posted March 30, 2005 Check out: @DesktopWidth and @DesktopHeight Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 30, 2005 Author Share Posted March 30, 2005 Thanks it seems to work. im just trying to work out how to loop for infinte times now Link to comment Share on other sites More sharing options...
buzz44 Posted March 30, 2005 Share Posted March 30, 2005 While 1 ;Insert code here Wend qq Link to comment Share on other sites More sharing options...
CantTouchThis Posted March 30, 2005 Author Share Posted March 30, 2005 i have tried this While 1 ;Insert code here Wend It is still not looping continuously, it does the script once, then nothing. I havnt really tried much on this today since i have been making a GUI Link to comment Share on other sites More sharing options...
buzz44 Posted March 30, 2005 Share Posted March 30, 2005 who must have an "exit" in there or something eg While 1 ;Insert code Exit Wend check throught your cold and look for "exit" or "exitloop" or just post your code =) qq Link to comment Share on other sites More sharing options...
CantTouchThis Posted April 1, 2005 Author Share Posted April 1, 2005 (edited) burrup......help please While 1 If PixelSearch( 0, 0, 1240, 768, 0x637542 ) Then Send("{CTRLDOWN}") While PixelSearch( 0, 0, 1240, 768, 0x637542 ) ;wait until the pixel dissapears WEnd Send("{CTRLUP}") EndIf WEnd help with looping it to infinity Also i have been scouring the help files to find out how to get a button to execute a script, tips please? i have made my gui also My GUI code, tell me things to make it better if you like open to suggestions #include <GuiConstants.au3> If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MapleStory - Archer Bot", 292, 236,(@DesktopWidth-292)/2, (@DesktopHeight-236)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Pic_1 = GuiCtrlCreatePic("header.jpg", 20, 20, 140, 140) $Button_2 = GuiCtrlCreateButton("Archer Bot : Start", 30, 170, 110, 30) $Group_3 = GuiCtrlCreateGroup("MapleStory - Bot", 170, 30, 110, 130) $Label_4 = GuiCtrlCreateLabel("Welcome To MapleStory - Archer Bot 1.0 BETA EDITION", 180, 50, 90, 100) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit Edited April 1, 2005 by CantTouchThis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now