DCCD Posted December 21, 2007 Share Posted December 21, 2007 is there any way to click x,y without mouse move? [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
Jex Posted December 21, 2007 Share Posted December 21, 2007 I don't know how to click without move mouse but you can do like that : $OldPos = MouseGetPos() MouseClick("Left", 100, 100) MouseMove($OldPos[0], $OldPos[1], 0) My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
chssoccer Posted December 21, 2007 Share Posted December 21, 2007 is there any way to click x,y without mouse move?ControlClick() Link to comment Share on other sites More sharing options...
DCCD Posted December 21, 2007 Author Share Posted December 21, 2007 (edited) thanks i appreciate your help Any more ideas? idon't want see cursor go to [x,y] ControlClick()More information please, Edited December 21, 2007 by DCCD [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
chssoccer Posted December 21, 2007 Share Posted December 21, 2007 thanks i appreciate your help Any more ideas? idon't want see cursor go to [x,y] More information please, damnit i just answered your question. controlclick() wont move the mouse as you requested, or else i wouldnt have posted it. get the control id for the control you need to click and do ControlClick("title", "text", controlid) Link to comment Share on other sites More sharing options...
DCCD Posted December 21, 2007 Author Share Posted December 21, 2007 thanks for help [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
AcidicChip Posted December 21, 2007 Share Posted December 21, 2007 What if (in my case) it's just a window without any controls (That the AutoIT Window Info can find) and I want to click in that window at and X, Y without having to move the mouse or have the window active? Link to comment Share on other sites More sharing options...
LarryDalooza Posted December 21, 2007 Share Posted December 21, 2007 try controlclick with the window handle... ControlClick("","",$WinHandle,"left",1,$x,$y) Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
DCCD Posted December 21, 2007 Author Share Posted December 21, 2007 try controlclick with the window handle...ControlClick("","",$WinHandle,"left",1,$x,$y)Lar.Example with Notepad Please [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
weaponx Posted December 21, 2007 Share Posted December 21, 2007 Notepad won't show you much result considering there isn't much to click. Link to comment Share on other sites More sharing options...
SpookMeister Posted December 21, 2007 Share Posted December 21, 2007 Here is an example using calc. Run("Calc.exe") WinWaitActive("Calculator") Send("1234567890") Sleep(1000) For $x = 1 To 10 ControlClick("Calculator", "", 83) ;83 is the controlid for the backspace key, at least on my system Sleep(500) Next [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
DCCD Posted December 21, 2007 Author Share Posted December 21, 2007 But i can't find controlid My Project Create by "Multimedia Builder 4.9.8" Plesae find the attachment mmp_example.zip [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
DW1 Posted December 21, 2007 Share Posted December 21, 2007 can you tab to the control? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
SpookMeister Posted December 21, 2007 Share Posted December 21, 2007 What does AU3info show when you hover the mouse over the button in question? AU3info is a tool available inside Scite (CTRL+F6) I'm going to try to attatch a screenshot image here to show how it looks on my system: [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
DCCD Posted December 21, 2007 Author Share Posted December 21, 2007 Nothing, Just The title of the window [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
MrCreatoR Posted December 22, 2007 Share Posted December 22, 2007 Nothing, Just The title of the windowTry this: ControlClick("Example", "", "Button2") Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
DCCD Posted December 22, 2007 Author Share Posted December 22, 2007 ControlClick("Example", "", "Button2")i don't have any ControlWindow Info>>>> Window <<<<Title: ExampleClass: #32770Position: 409, 318Size: 206, 132Style: 0x96CA0044ExStyle: 0x00010100Handle: 0x0047043E>>>> Control <<<<Class: Instance: ClassnameNN: ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<<Position: 435, 378Cursor ID: 2Color: 0xEFF0E3>>>> StatusBar <<<<>>>> Visible Text <<<<>>>> Hidden Text <<<< [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group 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