Splitz Posted April 1, 2012 Posted April 1, 2012 Hello! i want to make a small change to this script but i'm not sure quite how. i would like to add a new function to it to do the following. Currently the script detects a color at (687, 792, 688, 793) and when it appears it fires off with sending "5" to the Aim Window and then resets.. well i wanted to make a small change in the script to make it not fire off, and that is if there happens to be a pure white pixel anywhere between (710, 810, 711, 811) while the "PixelSearch(687, 792, 688, 793, 6237952, 1)" is also present and $on=1 So if there happens to be a pure white pixel at "(710, 810, 711, 811)" but "PixelSearch(687, 792, 688, 793, 6237952, 1)" is also active, then it should just stall until the pure white pixel is gone, and then send a beep and send "5" once the white pixel is gone but "PixelSearch(687, 792, 688, 793, 6237952, 1)" is still up. Thanks Global $on=0 HotKeySet("5", "Number1") While 1 Sleep(100) WEnd Func Number1() if $on=0 Then SoundPlay("E:\Program Files (x86)\FeedDemon\Data\sounds\Spam.wav"); On $on=1 Else Beep(5500, 500) ; Off $on=0 EndIf While $on=1 Sleep(100) PixelSearch(687, 792, 688, 793, 6237952, 1) If Not @error Then ControlSend("Notepad", "", "", "5") Sleep(100) Beep(5500, 500) ; Off same sound $on=0 EndIf WEnd EndFunc
water Posted April 1, 2012 Posted April 1, 2012 (edited) Is this the same problem that has been locked by Melba at 03:03 PM?If yes, don't open a new thread when another thread with the same subject has already been locked! Please check the forum rules:"Do not create a new topic on a subject if a previous topic on that subject was locked." Edited April 1, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Moderators Melba23 Posted April 1, 2012 Moderators Posted April 1, 2012 Carmilla,I have just seen your PM where you claim that this is not a game-bot. I am always ready to unlock a thread if the OP can show that my suspicions were groundless - but you have already started another thread without waiting for me to reply - so I am tempted to give you a short holiday directly. However, if you post a screenshot including this "Aim" window and whatever you are trying to PixelSearch with your Func "Number1(Trigger)" so that we can confirm your claim, I might reconsider. In the meantime, can everyone else please refrain from posting in this thread. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Splitz Posted April 1, 2012 Author Posted April 1, 2012 its just one of my notepad windows, i haven't had to go through this level of proving my script isn't being used for botting purposes since joining the forums, is this something new or does my script really appear to be that malicious ?
Moderators Melba23 Posted April 1, 2012 Moderators Posted April 1, 2012 Carmilla,You might have been here a long time - but have you read the Forum Rules recently? We now have a "zero-tolerance" attitude to anything that involves automating games which we enforce rigidly - so a script which uses PixelSearch, has a "Trigger" function and an "Aim" window sets off a lot of alarms! You might also like to note the other rules as well - as I mentioned above, starting this second thread before getting the all-clear was really not a very good idea. However, I am now very happy to leave this one open - I hope you get plenty of replies. But next time, please try to avoid using variable/function names which will cause unwarranted alarm. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
JohnQSmith Posted April 2, 2012 Posted April 2, 2012 its just one of my notepad windowsWhy would you rename the "Notepad++" program to "Aim"? Seems a bit contrived to me. Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".
Moderators JLogan3o13 Posted April 2, 2012 Moderators Posted April 2, 2012 I would agree. I would love to know what legitimate need you would have to change the Window Title and not the document title. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Moderators Melba23 Posted April 2, 2012 Moderators Posted April 2, 2012 Carmilla,I hope you get plenty of repliesAnd interesting replies they are too..... I would hate to think you had not been entirely open with me - care to respond some time soon? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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