Huxie Posted January 20, 2009 Share Posted January 20, 2009 I Need some help for some scripting. I've been working with inputs/outups as clicks and msg boxes. Thats about 2 years ago, and i dont know nothing about it now. now i need a very simple script, i hope someone can/will help me. It should go like this Msgbox before startup #1 click at button 1 click at button 2 *if no colour in a specific place comes in, click button 1 twice, and click button 2 again *if colour comes at the spot, run script from #1 *if no colour in a specific place comes in, click button 1 four times, and click button 2 again *if colour comes at the spot, run script from #1 *if no colour in a specific place comes in, click button 1 eight times, and click button 2 again *if colour comes at the spot, run script from #1 I really hope someone would help me, cause i really need the script, im using hours aday using this routine. Huxie -- MSN ~ Admin@huxie.dk Link to comment Share on other sites More sharing options...
Minikori Posted January 20, 2009 Share Posted January 20, 2009 I Need some help for some scripting. I've been working with inputs/outups as clicks and msg boxes.Thats about 2 years ago, and i dont know nothing about it now. now i need a very simple script, i hope someone can/will help me.It should go like thisMsgbox before startup#1click at button 1click at button 2*if no colour in a specific place comes in, click button 1 twice, and click button 2 again*if colour comes at the spot, run script from #1*if no colour in a specific place comes in, click button 1 four times, and click button 2 again*if colour comes at the spot, run script from #1*if no colour in a specific place comes in, click button 1 eight times, and click button 2 again*if colour comes at the spot, run script from #1I really hope someone would help me, cause i really need the script, im using hours aday using this routine.Huxie -- MSN ~ Admin@huxie.dkLook into PixelGetColor() and MouseClick(). Also, If...Then statements. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 Look into PixelGetColor() and MouseClick(). Also, If...Then statements.I dont know anything about loops but have tried several times. Could you help me making the script? Link to comment Share on other sites More sharing options...
Minikori Posted January 20, 2009 Share Posted January 20, 2009 I dont know anything about loops but have tried several times. Could you help me making the script?What do you have so far? For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 What do you have so far?I have an idea of, what the script should be, as you see in my description of the script. I could make mouseclicks and getcolour , but those end if loop things, sounds too hard for me . Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2009 Share Posted January 20, 2009 Well you need to attempt something to gain help... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 Well you need to attempt something to gain help... Attemp to make the script by myself? Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2009 Share Posted January 20, 2009 Yup! You say it sounds too hard, but how can you know until you try! You put the effort in, you will reap results So try, and if you don't succeed, try something different. With trial and error you'll get somewhere. And if all else fails, post your attempts here, then we can help you correct your errors... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 Yup! You say it sounds too hard, but how can you know until you try! You put the effort in, you will reap results So try, and if you don't succeed, try something different. With trial and error you'll get somewhere. And if all else fails, post your attempts here, then we can help you correct your errors... Okay , i just need the "if, else, do" , i could make the rest by myself.I Have tried to read about it, but it still doesnt make any scense for me.If i just had the """"startpoint1if *nocolour* double upif * colour* double upI just need to know how to loop them. I have tried, but with errors. i really hope you understand, cause im not just inhere to get a free script because im retarded . Link to comment Share on other sites More sharing options...
Minikori Posted January 20, 2009 Share Posted January 20, 2009 (edited) Okay , i just need the "if, else, do" , i could make the rest by myself. I Have tried to read about it, but it still doesnt make any scense for me. If i just had the """" startpoint1 if *nocolour* double up if * colour* double up I just need to know how to loop them. I have tried, but with errors. i really hope you understand, cause im not just inhere to get a free script because im retarded .If PixelGetColor(Whatever) = 0x000000 Then ;Color present code. Else ;Not there code. EndIf Does that help? Obviously those aren't the parameters for PixelGetColor(), and this is in the case that the color you're searching for is black. Edited January 20, 2009 by Minikori For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 Im going to try MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If Not @error Then what should i put in instead of error, if i want it to MouseClick("left", 0, 500, 2) two time? I want it like this MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) if "colour is not there" --> MouseClick("left", 0, 500, 2) two times if "colour is there" --> run script from start again Hope you can help me, since ive made an attemp Link to comment Share on other sites More sharing options...
Minikori Posted January 20, 2009 Share Posted January 20, 2009 Im going to try MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If Not @error Then what should i put in instead of error, if i want it to MouseClick("left", 0, 500, 2) two time? I want it like this MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) if "colour is not there" --> MouseClick("left", 0, 500, 2) two times if "colour is there" --> run script from start again Hope you can help me, since ive made an attemp Change what you showed us to: While MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If @error Then MouseClick("left", 0, 500, 2) Else Exit EndIf WEnd Hope you learned from that, I couldn't really give 'hints' on how to do it. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 (edited) Change what you showed us to: While MouseClick("left", 0, 500, 2) MouseClick("left", 200, 500, 2) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If @error Then MouseClick("left", 0, 500, 2) Else Exit EndIf WEnd Hope you learned from that, I couldn't really give 'hints' on how to do it. It doesnt really work for me, it gives me following error While^ error I copied it exactly as you told me . Edited January 20, 2009 by Huxie Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2009 Share Posted January 20, 2009 Make it While 1 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Huxie Posted January 20, 2009 Author Share Posted January 20, 2009 Worked with "while1" , Can i make a while 2 , to extend the script with multiply clicks? Link to comment Share on other sites More sharing options...
Bert Posted January 20, 2009 Share Posted January 20, 2009 You want to learn AutoIt? look for AutoIt 1 2 3 in my signature. It is a class that will teach you everything you need to know. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2009 Share Posted January 20, 2009 1 While loop at a time. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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