Zephir Posted April 27, 2007 Share Posted April 27, 2007 (edited) Hey folks,i've been discussing a Problem I had lately on this issue: I tried reading Memory from WoW and couldn't. The reason was that AutoIt is running in UserMode and thus cannot access some App's memory. This is why the _MemoryRead() func (by Nomad) returned blank values.The solution is to grant your Script( which is supposed to read the memory) rights to edit any process on your system. Google "Permedit" to find such a Program.This is how you fix your Script:1. Download Permedit (Link)2. Run your Script 3. Run Permedit ( The process AutoIt.exe must exist when you run Permedit)4. Look for "AutoIt.exe", select it and Click on "Grant system Rights"--> Now your script will be able to read the memory of any process on your system!Now some of you might not have this problem, thus no need for Permedit. I do. And that is why I need your help. Is there a way to grant such a right without Permedit? Does anyone know what this program does? Is it possible to write a script that is going to grant itself such a right?/Edit: provided Permedit DL Link Edited April 27, 2007 by Zephir Link to comment Share on other sites More sharing options...
Zedna Posted April 27, 2007 Share Posted April 27, 2007 I think it's classic issue as for reading data from TreeView in other applications.See this postAlso look at Auto3Lib - look how there is used memory UDFMaybe it will help you, maybe not. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zephir Posted April 27, 2007 Author Share Posted April 27, 2007 its simple! Just add this line to your code: SetPrivilege("SeDebugPrivilege", 1) Link to comment Share on other sites More sharing options...
PaulIA Posted April 28, 2007 Share Posted April 28, 2007 its simple! Just add this line to your code: SetPrivilege("SeDebugPrivilege", 1)Which doesn't compile in AutoIt. Where are you getting the SetPrivilege call from? Auto3Lib automatically handles this when dealing with controls. It will try to allocate memory space in the control and, if it fails, will try again using the debug privilege. However, AFAIK, there is no native "SetPrivilege" call in AutoIt. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
arbi_bb Posted October 31, 2017 Share Posted October 31, 2017 the correct syntax /example is described in: https://www.autoitscript.com/autoit3/docs/libfunctions/_Security__SetPrivilege.htm On 28.04.2007 at 5:10 PM, PaulIA said: Which doesn't compile in AutoIt. Where are you getting the SetPrivilege call from? Auto3Lib automatically handles this when dealing with controls. It will try to allocate memory space in the control and, if it fails, will try again using the debug privilege. However, AFAIK, there is no native "SetPrivilege" call in AutoIt. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 31, 2017 Moderators Share Posted October 31, 2017 0 arbi_bb, Welcome to the AutoIt forums. But are you sure that after 10 years of not visiting the forum, PaulIA is interested in the answer? Please look at the dates of posts in future as we do not encourage necro-posting. 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...
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