serena_knight Posted March 16, 2020 Share Posted March 16, 2020 will be using sample text for the purpose of this item issued a send("^f") command to open find box on screen issued a send("sampletext") sampletext is highlighted on the page now i want to get my mouse to move to that highlighted text so i can get the x and y position of that text Is this possible? Link to comment Share on other sites More sharing options...
Nine Posted March 16, 2020 Share Posted March 16, 2020 Depends, what is the application you are trying to automate ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
serena_knight Posted March 16, 2020 Author Share Posted March 16, 2020 its a IE webpage with java as the source so my only option is as stated here, go to the highlighed data and get mouse position which will be used to delete the item (there is a delete butto) _ie functions do no work on this screen since it is java and i can't down load any products that autoit can interface with,, am just stuck with mouse moves, etc.. if there is no way to do this then i will have to tell the user,,sorry no way Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 i really need help with this, but if it cant be done i wish someone would tell me i was thinking of using pixelsearch but dose that tell you where the highlighted text is (x,y) and if so how do you search a highlighted text (color?) Link to comment Share on other sites More sharing options...
Developers Jos Posted March 17, 2020 Developers Share Posted March 17, 2020 1 hour ago, serena_knight said: i really need help with this, but if it cant be done i wish someone would tell me i was thinking of using pixelsearch but dose that tell you where the highlighted text is (x,y) and if so how do you search a highlighted text (color?) What about sharing way more details about what you want so somebody can understand and really assist? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 ?? what kind of details? there is a highlighted text on a IE web page, Java is behind the webpage so i cant use _IE functions, if i show the source of the page and search for the highlighted text, it comes back "not found", typical of java pages. i am trying to find out if there is some kind of way to find the x,y of highlighted text, if so i can the issue a mouemove, i have considered using pixelshearch but i cant understand how to do that, does pixelsearch return x,y? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 17, 2020 Developers Share Posted March 17, 2020 Nice long repeat of words, but I do not see any actual information and I am terrible at guesswork. Website? script you test with? Image of what you see? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 sorry, due to company restirctions that info is not available for public use, thanks anyway,,,if you could explaini pixelsearch it would be appreciated, does pixelsearch return x,y and if so what would i put in the search so it would look for a highlighted text Link to comment Share on other sites More sharing options...
Nine Posted March 17, 2020 Share Posted March 17, 2020 The best place to read and learn about a specific function is the help file. Forum is mostly for helping ppl with their script “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 i have been to the help file and i find the explaination for pixelsearch hard to understand, it seems to say you can get the x,y but again it seems to say you have to supply the x,y, which of course defeats the purpose i need. Link to comment Share on other sites More sharing options...
Earthshine Posted March 17, 2020 Share Posted March 17, 2020 (edited) I think you need to read FAQ: 31 on the Wiki. there are java test tools discussed there. particularity this Edited March 17, 2020 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Nine Posted March 17, 2020 Share Posted March 17, 2020 11 minutes ago, serena_knight said: i have been to the help file and i find the explaination for pixelsearch hard to understand, it seems to say you can get the x,y but again it seems to say you have to supply the x,y, which of course defeats the purpose i need. Yes you need to specify the region where pixelsearch will look at. It could be the whole screen (slower) or a more restricted area (faster). If you find PixelSearch hard to understand, wait till you read FAQ 31 FrancescoDiMuro 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Earthshine Posted March 17, 2020 Share Posted March 17, 2020 hey, faq isn't hard to read... there is a learning curve with IUIAutomation, true My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 i see what what you all mean, I need someone next to me guiding my shaky hands Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 as i see in pixelshearch it needs a "color". on my screen the background color of the text is blue and the text is white. do i need one of those colors or does highlighing have its own hex value? Link to comment Share on other sites More sharing options...
Earthshine Posted March 17, 2020 Share Posted March 17, 2020 (edited) we can help you, for sure. but would just need a dummy java app with web-page to test with as well if you could have your devs give you a dummy you can work with. if you can share it, maybe we can try it out too and see what we see? anyway, good luck with whatever way you choose to go. I know nothing of pixelsearch so I'm out if that's the route you go. I use UIAutomation when I can't use native AutoIt Edited March 17, 2020 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 let me try this,, i know there hex values assigned to colors,,,what is the hex value for blue Link to comment Share on other sites More sharing options...
seadoggie01 Posted March 17, 2020 Share Posted March 17, 2020 I think you don't understand what PixelSearch does... assuming you're referring to the included function, it looks in an area for a single pixel of the color you specify. So if you select your entire screen and give it the color blue (in decimal or hex), it will return the first pixel with the your specified color. To get the color you're looking for, open the Au3Info tool, switch to the Mouse tab, grab the finder tool, and hover over the color you want to find. When I did this with your profile photo, it said 0xC462AC. It's a little more specific than "pink" All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
junkew Posted March 17, 2020 Share Posted March 17, 2020 There are multiple ways but if you already feel pixelsearch is hard read the faq that explains find bitmap, automation. Some words to search on are bitblt and gdi+ and tesseract if its a pixelsearch. Java accessibility is another approach by looking for jabsimplespy. There is not 1 solution and even harder to help if your site is not publicly reachable. Earthshine 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
serena_knight Posted March 17, 2020 Author Share Posted March 17, 2020 gosh, ty all, let me look into these suggestions, will be back tomorrow, have to do some things, esp now with this virus thing and everyone buying up supplies...again ty all 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