Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/25/2015 in all areas

  1. Jon

    Forum Upgrade Status

    The forum is currently being upgraded - this post details the status. Content may look badly formatted at the moment. This is normal until the background rebuild tasks have finished. There is no need to re-edit your old posts or signatures to fix them, this should happen automatically. Please resist the urge to do so The post rebuild is estimated at 9 hours - it's not a quick task. Current Status: Forum upgraded - 100%AutoIt code boxes rebuilt - 100%Double-spaced paragraphs fixed up (as best I can) - 100%Forum to Wiki Access - 100%Signatures rebuilt - 100%Posts rebuilt (emoticons, bbcode, attachments, images, quotes) - 100%Legacy BBCode fixed in signatures​color - 100%color=rgb() - 100%url - 100%img - 100%size - 100%Search engine online - 100%
    2 points
  2. First, thanks to arcker for his Services UDF for making this possible. It works like this: When launched, the app will install itself as a service, launch the service, then exit. The service runs in the SYSTEM account. To interact with the desktop of the currently logged on user it will get the security information from the winlogon.exe token and the user's environment from the explorer.exe token. The service will relaunch the app with these security settings and environment, then stop. On relaunch, the process will wait for the service to end then uninstall it. The process will now be running in the SYSTEM account in the currently logged on user's session with the user's environment. If you look into the _Svc_Main() function there's a note about how to relaunch the process in Session 0 (same as the service) if you need to do this. In this case it will be running solely in the SYSTEM account in Session 0 with it's own environment. I've included two more functions for when you need to access certain other user specific items, such as using the @UserName macro, or accessing the HKCU branch of the registry (these things are not taken from the environment, but from the security context of the process). You should test any macros you intend to use to make sure the correct information is returned before running your process for real. _ImpersonateUserStart() and _ImpersonateUserEnd() will enable and disable this impersonation. Keep in mind this alters your security access as well, you will have the same security level as the logged on user during this time. NOTE: For retrieval of the user environment and user impersonation it is required that explorer.exe is running. If you're using a 3rd party shell replacement, you can edit the UDF to change the requirements to another process, but I can't guarantee it will work. I've included a stripped down version of arcker's UDF, since not all of it is needed. If I could get some test results from users running XP and Vista/7 with UAC, that would be great too. Sources: Link 1 Link 2 ANY SCRIPT USING THESE FUNCTIONS MUST BE COMPILED TO WORK. IT WILL NOT WORK FROM SCITE. ADMIN RIGHTS REQUIRED AS WELL. UPDATE 1 (2009/10/29) - added a function to launch a process as the user of a currently running process in the specified session (ie, to de-elevate a process back to your user account). UPDATE 2 (2009/10/29) - fixed a wrong function export which caused problems on XP (thanks trancexxx) UPDATE 3 (2009/10/30) - I think I have a stable version now, tested on Win7, XP SP3 VM, and a physical XP SP3 box. As a bonus the service control handler now works in Win7 as well, so we can have a fully functioning service. _Services_Mini.au3 SystemElevate.au3
    1 point
  3. JohnOne

    how long is my script

    Just look at those functions in the help file, they have examples which are very very simple to understand.
    1 point
  4. Jon

    New Forum Guide for IPS 4

    A short users guide to the IPB v4 new forum. The forum operates in much the same way as the old v3 one, but there are several major differences - so here is a quick guide: Firstly login: This requires displayname/password - not username/password as before. Next the editor: This is now full WYSIWYG using HTML and seems a lot better than the v3 one. There are buttons to add hyperlinks, quotes, code and spoilers, plus Trac links . Do not use the old BB codes as they will almost certainly not be honoured. Posting links to threads/posts is easy: Posting a thread/post URL (use the "share this post" button at top right to get a post URL) directly into the editor actually inserts a clickable single line box. Using the editor "link" button lets you choose clickable text to display in place of the box. The "code" button gives a choice of "AutoIt" (with syntax highlighting) or plain "Text" (plus a couple of other choices). Code over a certain length still appears in scrollable boxes, and thanks to Jon these still have "expand/popup" buttons. Paragraph spacing is automatically applied when pressing {ENTER} - use {Shift-ENTER} for single lines. Now the member details: The dropdown under the member name at top right still accesses things such as Private Messages, Content, Followed Content. To change display name, signature, password, go to "Account Settings" How members are notified of forum events has changed - check to find out how previous settings have been transferred because there are now some forced choices where the notification will be in-forum rather than by email. The "Friend" functionality has been replaced by the ability to "Follow" other members - this is done via a button on their profile page.
    1 point
  5. Jon

    Major Forum Upgrade Incoming

    10...9...8...
    1 point
  6. It is a quite advanced solution (at least for me as I'm not good with regular expressions). I would have - like TheSaint - suggested to start with StringSplit.
    1 point
  7. rename ok.mainwindow to okButton .mainwindow has a special meaning and unfortunately has a bug so do not use it just give your elements a meaningfull name without .mainwindow _UIA_Action($oP0, "setfocus") is just a wrapper to do $oP0.setfocus() so you can either use the patterns of iUIAutomation of Microsoft $tPattern = _UIA_getPattern($oP0, $UIA_ValuePatternId) if _UIA_IsElement($tPattern) Then $tPattern.setValue("") EndIf or try the other IUIWrapper actions a."setValue using keys" b."setValue using clipboard" c."sendkeys", "enterstring", "type", "typetext" its a little hard to say how to send empty string to be entered as it differs per textbox class what works best but as you are able to type text a 1. select all with ^a 2. delete with {delete} see send command in helpfile
    1 point
×
×
  • Create New...