GreenReptile Posted November 26, 2008 Share Posted November 26, 2008 (edited) . Edited November 27, 2008 by GreenReptile Link to comment Share on other sites More sharing options...
ChangMinYang Posted November 26, 2008 Share Posted November 26, 2008 just toying around with this, no real use but a learning experience. it's an auto locker for a game, press a to open attack then left click on an object to attack it. I want to use TAB instead of A, while still being able to press A. I dont need to press A, so basically just replacing TAB with the A+Left Click command, then after it goes once, ending and re going after I press tab again.That's what I have it's not in order. I want the TAB to press A for me not start program, and ESC to shut the program off. The pixel search is looking for the color green and any other shades of it, so thats okay, as well the coordinances. After pressing A with Tab I want it to Mouse Click Left sleep for .05 sec and send A then left click on that green spot again. So im pretty sure thats alright. How do I put it altogether to make it work?Searching is your good friend, and so we does.Search by 'ControlSend'.Also, 'WinActivate' too.Good luck to you. Link to comment Share on other sites More sharing options...
November Posted November 26, 2008 Share Posted November 26, 2008 Hi m8, Look at While and Wend, i beliave that your script is going to be recursive Target some actions to Funcs Wish you the best, Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
youknowwho4eva Posted November 26, 2008 Share Posted November 26, 2008 (edited) 1) don't bump till 24hours after last post 2) use code tags for code, not quote tags 3) If I understand you correctly HotKeySet("{TAB}", "a") HotKeySet("!{ESC}","Quit") Func a() $pos = MouseGetPos() $coord = Pixelgetcolor($pos[0], $pos[1]) If $coord = decimal value of color you want then MouseClick("left") sleep(50) send("a") MouseClick("left") endif EndFunc Func quit() exit endfunc while 1 sleep(100) wend Edit: look up colorgetred colorgetblue and colorgetgreen so you can modify the $coord = line to select the varying shades of green Edited November 26, 2008 by youknowwho4eva Giggity 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