hoang anh Posted July 22, 2006 Posted July 22, 2006 I wanna write code do as : when mouse get cursor ( not ID cursor), computer will do some function, how write this code ? This is my cursor same as icon ( i cant upload it , not permitted to upload )
brodie28 Posted July 22, 2006 Posted July 22, 2006 I don't really know what you want.... You want it so that when the mouse cursor has a certain ID to execute a function?
Bert Posted July 22, 2006 Posted July 22, 2006 Try this. I'm positive this will help: RunWait(@COMSPEC & " /c Start AutoIt.chm") The Vollatran project My blog: http://www.vollysinterestingshit.com/
/dev/null Posted July 22, 2006 Posted July 22, 2006 I wanna write code do as : when mouse get cursor ( not ID cursor), computer will do some function, how write this code ?This is my cursor same as icon ( i cant upload it , not permitted to upload )what do you mean by "mouse get cursor"??CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
/dev/null Posted July 22, 2006 Posted July 22, 2006 I wanna write code do as : when mouse get cursor ( not ID cursor), computer will do some function, how write this code ?This is my cursor same as icon ( i cant upload it , not permitted to upload )what do you mean by "mouse get cursor"??CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
hoang anh Posted July 23, 2006 Author Posted July 23, 2006 i dun know how explain exacterly ab it. Check it : >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 21 Y: 40 W: 32 H: 33 Control ID: 13057 ClassNameNN: Static1 Text: ------------------------------------------------------------------------ i mean " Control Under Mouse " ( CUM), this is my CUM's info. I wanna write a code which relize ( or "catch" ) that CUM.
ivan Posted July 23, 2006 Posted July 23, 2006 Please try to phrase your question clearly so people can understand. I read this and still have no clue as to what you want. IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3
Moderators SmOke_N Posted July 23, 2006 Moderators Posted July 23, 2006 http://www.autoitscript.com/forum/index.ph...st&p=207509 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.
Paulie Posted July 23, 2006 Posted July 23, 2006 (edited) ...I...catch...CUM.You just HAD to go there Using I, catch and CUM in the same sentence Anyway... (assuming you are making a GUI) $info=GUIGetCursorInfo(["winhandle"]) ;I'd omit the parameter so you can just get the active window info and i belive $info[4] has the information your looking for EDIT: I think i misunderstood the question Edited July 23, 2006 by Paulie
i386 Posted July 23, 2006 Posted July 23, 2006 I got it. Here is your answer and solution.$msg = MsgBox( 4, 'AutoIt Help', 'Would you like to see your answer to help you with your problem?' ) Select Case $msg = 6 RunWait(@COMSPEC & ' /c Start AutoIt.chm') Exit Case $msg = 7 Exit EndSelectDoesn't anyone read the AutoIt help files anymore? Spoiler "...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor "Mess with the best, die like the rest!!" -Hackers "This above all to thine own self be true." -William Shakespeare "Corruption is only as corrupted as the individual makes it out to be." -i386
hoang anh Posted July 23, 2006 Author Posted July 23, 2006 (edited) I checked help but i dun do anything Thx smoke_n, I'm looking for it ^^, I'll try use this code and write my program . Hope it 'll run ^^ I tried but seem i cant . I need help again. I wanna write code which click morse while CUM = >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 21 Y: 40 W: 32 H: 33 Control ID: 13057 ClassNameNN: Static1 Text: ---------------------------------------------------------------- how write this code ? Edited July 23, 2006 by hoang anh
Administrators Jon Posted July 23, 2006 Administrators Posted July 23, 2006 Maybe he means he wants to trap the Mouse cursor state? (hand, pointer, etc)http://www.autoitscript.com/autoit3/docs/f...seGetCursor.htm
Moderators SmOke_N Posted July 23, 2006 Moderators Posted July 23, 2006 Maybe he means he wants to trap the Mouse cursor state? (hand, pointer, etc)http://www.autoitscript.com/autoit3/docs/f...seGetCursor.htmIf that's not it, maybe write what you want in your native tongue, because no one knows what your saying in english. 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.
MHz Posted July 23, 2006 Posted July 23, 2006 I wanna write code which click mo u se while C ontrol U nder M ouse = >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 21 Y: 40 W: 32 H: 33 Control ID: 13057 ClassNameNN: Static1 Text: ---------------------------------------------------------------- how write this code ?ControlClick('title', 'text', 'Static1') So far as I can understand of request.
Moderators SmOke_N Posted July 23, 2006 Moderators Posted July 23, 2006 ControlClick('title', 'text', 'Static1') So far as I can understand of request. Your good at word puzzles and text twist too aren't you 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.
MHz Posted July 23, 2006 Posted July 23, 2006 Your good at word puzzles and text twist too aren't you Not at all. I just think sometimes luck may do it.
ivan Posted July 23, 2006 Posted July 23, 2006 (edited) Quite right! My native language is Spanish, and I usually take a lot of time before posting, as I read and check my text, so i won't annoy other members who out of their own time are willing to provide help. Sometimes i'm so concerned about the English grammar that I get my point lost, but few can say I don't make the effort of writing propper English, just out of RESPECT. IVAN in fact, It takes so long that I got beaten by 3 posts before posting my answer, which makes is out of place. Edited July 23, 2006 by ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3
hoang anh Posted July 24, 2006 Author Posted July 24, 2006 uhm.... very hard to explain my situation , and my English not good too . I'm trying explain ab what my program can do ( not code ). I want write 1 function; and while run it, mouse 'll (auto) click when control ID change .... ( as i wrote ) I not sure ppl can understand what i'm saying . So, I'll try MHz's code, Mhz, can u give some exam ab this code??
MHz Posted July 24, 2006 Posted July 24, 2006 If the ControlID is changing, then try using the ClassNameNN. AutoIt Info Tool CUM. This runs Calculator which maybe called something else in your language. Run('calc.exe') WinWait('Calc') Sleep(2000) ; Use ClassNameNN "Button5" as AutoIt Info Tool shows ControlClick('Calc', '', 'Button5') Sleep(2000) ; Paste text to the "Edit1" control ControlSetText('Calc', '', 'Edit1', '7777777777777777777777') Sleep(3000) WinClose('Calc')
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