ice_Q Posted May 1, 2021 Share Posted May 1, 2021 Hi guys. I have the same problem. Here is a simple code I want to execute: #include <AutoItConstants.au3> MouseClick("right", 916, 522) Sleep(1000) Send("0"); I have the scite editor window minimized to 200x300px so the position of the right click should happen in my desired window. But it doesnt, what happens is it presses the right click but not on my desired window and then presses the Key "0" in the editor. So to me it seems like the focus is always on the scite editor. Here is my scite config: I would be really thankful for any suggestions. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 1, 2021 Moderators Share Posted May 1, 2021 ice_Q, Welcome to the AutoIt forums. But in future, do not multiple necro-post in unrelated threads - just open a new thread as I have now done for you. 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 Link to comment Share on other sites More sharing options...
seadoggie01 Posted May 1, 2021 Share Posted May 1, 2021 @Melba23 Seems that forked threads don't have the original poster as a 'Follower', so you might want to @ them @ice_Q Using mouse clicks usually isn't the best way to automate something. Can you explain a bit more so we can help better? If you are forced into using MouseClicks on a particular window, I'd suggest using WinActivate, WinWaitActive, and possibly even restricting the use of the mouse through BlockInput (though this requires admin permissions). After these steps, finally use the MouseClick since you can then be sure the correct window is active 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...
ice_Q Posted May 4, 2021 Author Share Posted May 4, 2021 @seadoggie01 My Problem was that the code in the script was executed in the editor and not on my desired window. I found the solution. I tried starting scite editor with admin rights and it worked. Strange though, I was logged in as an admin. Link to comment Share on other sites More sharing options...
caramen Posted May 4, 2021 Share Posted May 4, 2021 (edited) 8 hours ago, ice_Q said: @seadoggie01 My Problem was that the code in the script was executed in the editor and not on my desired window. I found the solution. I tried starting scite editor with admin rights and it worked. Strange though, I was logged in as an admin. AutoIt need rights, if you want to touch a window that is actually elevated with admin rights. You could reproduce this with any software that use remote control. This is a NTFS rule. Not sure about MSRA witch would be an exception. Edited May 4, 2021 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Danp2 Posted May 4, 2021 Share Posted May 4, 2021 3 hours ago, caramen said: This is a NTFS rule You sure about that? I don't see how the file system would be involved here. 🤨 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Earthshine Posted May 4, 2021 Share Posted May 4, 2021 Yeah the file system is not the problem and even though the poster was thinking he’s an admin he’s not My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
caramen Posted May 4, 2021 Share Posted May 4, 2021 33 minutes ago, Danp2 said: You sure about that? I don't see how the file system would be involved here. 🤨 This is an abuse of language which means that it is the rules of Microsoft which manages the rights of windows why complicate matters. Danp2 and seadoggie01 2 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
caramen Posted May 4, 2021 Share Posted May 4, 2021 (edited) @Danp2 How is called the management of windows rights in Windows ? What is managing windows Rights ? Any kind of ACL or something ? EDIT : I have to admit I said NTFS because I don't even asked myself about this. Edited May 4, 2021 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Developers Jos Posted May 4, 2021 Developers Share Posted May 4, 2021 I would call that Windows security and indeed isn't related to the FileStorage formatting. Danp2 and seadoggie01 2 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...
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