Jump to content

Recommended Posts

Posted

No offence, but this isn't Twitter, you don't need to update your post every time you have a thought.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

can u also do an example code?

thanks btw.

i already do the code is in some post above... :S

about the checkboxes use the help... it have very usefull examples.. if you dot get it now.. rest and try tomorrow.. i dont gonna make all the code for you..

Posted (edited)

You're still missing the point with Pixelsearch()

If you want to search only a single point at say ... point "A" and only point "A", then your start and end box will be THE SAME.

If you're searching through a range of pixels, then your start and end box will be DIFFERENT.

Your current code searches from 0 to 378 on the X plane, and from 0 to 122 on the Y plane for the "demo1" MSGBox.

And my code works just fine. It may not work for YOUR application... I used it as an example and purposely dicked it up so you'd have to figure it out to be able to apply it to your application.

We're not going to spoonfeed you code, because if we do that, YOU NEVER LEARN..

Kind of like right now.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Posted (edited)

first... AC130 did you use the SciTe editor... then use The tidy tool and upload the entire source of your script... because my other fear is that you doesnt create the checkboxes :S

PLease tidy your script before posting here i dont understand a shit... you didnt understand how the script works "CASE $BUTTON" doesn´t work beacaause is nothing if you don´t use it with a select or switch statement... there are many errors.. you have to start from the beginning and learn that before go on...

Edited by monoscout999
Posted

I have basic scite editor. and yes i created the check boxes, they're called $right and $left.

$Left = GUICtrlCreateRadio("", 16, 16, 17, 25)

$Right = GUICtrlCreateRadio("", 216, 16, 17, 25)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
Case $Find
(the source i posted above was here )
EndSwitch

there are a few errors... one you post only the loop part :unsure: and not the whole script where you declare theGUI and the checkboxes...

the another happen when i paste the script from avobe and put where you say i have to put in... hte global declarations(?)... i stilll don´t know ehat is $find... i know you say is a button, but if i dont see it in the script i dont belive you... :> can you post the whole script?... i dont know how to say it... un consejo

try to give us less work about formating the script and else... and let us focus in the real problem. ;)

Posted (edited)

Yes, I want to only search for a single point, I don't need a whole rectangle. There is ONE PIXEL AT ONE POINT, THAT I NEED IT TO FIND, IF CHECKED, and ANOTHER PIXEL AT ANOTHER POINT, THAT I NEED IT TO FIND IF NOT CHECKED.

Ok... I'm going to draw you a picture.

This is the point: --> x

This is your head: --> O

The placement is key.

Why don't you try learning something instead of asking us to write your game bot for you.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

  • Moderators
Posted (edited)

Enough.

You've shown zero attempt at understanding, and thus your efforts shows your understanding.

No one is going to write you anything period.

You say you want to learn? Here: http://www.autoitscript.com/wiki/Tutorials

Once you're capable of posting code that shows any type of understanding/effort, you can post again.

If you start another thread that shows the same effort as this one, you're posting abilities will be removed permanently.

This forum is reserved for those that put forth an effort, not those that want to mooch.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...