Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/26/2015 in all areas

  1. How about setting the target attribute: $oObject.setAttribute("target") = "_blank"; $oObject is the link object ;now you can "click" the link, and it will be opened in a new window.
    2 points
  2. Hello Everyone! I made a UDF for the new Maps Datatype, I tried to follow Best Coding Practices & UDF-Specs while making this. Please note that this UDF is in very early stages. A thanks to @boththose for ideas on functions (like _Maps_IniToMap). If you have any suggestions, improvements, complaints, feature requests etc. Please don't hold back anything which can help improve this UDF! I will continue to develop this UDF as long as the Official AutoIt Dev Team adapts it (or makes another version of this UDF) . Enjoy! TD
    1 point
  3. mikell

    RegExp match with words

    Ah OK, then you need anchors $myvar = "Apple" $test = StringRegExp($myvar, '(?i)^(apple|banana|mango)$') Msgbox(0,"", $test)
    1 point
  4. Thank you for your answer, argumentum. I am studying it and I will try your suggestions.
    1 point
  5. You could set up a computer startup script on your domain controller via group policy (note: not an user logon script). Those are being run under the local system account so they have full access rights on the local machine - there's no need to type any login credentials in your script (Run() instead of RunAs()) If you can change the NTFS permissions from the chrome directory by default that would work too I guess. Setting it to public will allow you to use Run() but everyone else will also be able to read and write in that directorySetting read/write for your RunAs() user is the other option but then again your script will have to contain the logon credentials.
    1 point
  6. 1 point
  7. 1 point
  8. Melba23

    Scroll-bar

    ssamko, You need to manage the hiding/showing of the child GUI yourself: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "GUIScrollbars_Ex.au3" $hGUI = GUICreate("Test", 500, 500) $cTab = GUICtrlCreateTab(10, 10, 480, 480) $c_Tab_0 = GUICtrlCreateTabItem("Tab 0") $c_Tab_1 = GUICtrlCreateTabItem("Tab 1") $c_Tab_2 = GUICtrlCreateTabItem("Tab 2") GUICtrlCreateTabItem("") GUISetState() ; Create child GUI to hold scrollable zone on Tab 1 $hChild = GUICreate("", 400, 400, 30, 50, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetState(@SW_HIDE) ; Add scrollbars _GUIScrollbars_Generate($hChild, 800, 800) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cTab ; Check which tab was selected Switch GUICtrlRead($cTab) Case 1 ; Show child if Tab 1 GUISetState(@SW_SHOW, $hChild) Case Else ; Hild child if not GUISetState(@SW_HIDE, $hChild) EndSwitch EndSwitch WEndNote how easy it is to create scrollbars using my Scrollbars UDF - the link is in my sig. M23
    1 point
  9. aww cmon now, its not you, its your computer the site likes. I bet they stay up all night FinAcking the crap out of eachother.
    1 point
  10. What account are you logged in as when you execute this script? To confirm your suspicions, you should write a script that runs Dir. What I imagine is happening is @UserProfileDir is eating your lunch, use literal paths or variables you acquire while in the shell.
    1 point
  11. SQLite is now distributed with AutoIt, so I don't see what the problem is. Create a new topic in future and don't hijack.
    1 point
  12. Because the site was receiving thousands of downloads a day due to selfish developers not storing SQLite with their application. Please refrain from messing with the UDF if you're absolutely sure you know what you're doing.
    1 point
  13. I have re-written this recently, it turns out that I made it MUCH harder than it should have been. Melba23 pointed out FileGetTime, and I am still not quite sure how I missed it while looking through the help file Switching isn't really "recommended" as the original worked well, but this one is definitely a lot simpler! Be warned though that the syntax has changed slightly due to the functions in Date.au3 having different values used for Create, Access, and Modify. Enjoy Ian Func _CompareFileTimeEx($hSource, $hDestination, $iMethod) ;Parameters ....: $hSource - Full path to the first file ; $hDestination - Full path to the second file ; $iMethod - 0 The date and time the file was modified ; 1 The date and time the file was created ; 2 The date and time the file was accessed ;Return values .: -1 The Source file time is earlier than the Destination file time ; 0 The Source file time is equal to the Destination file time ; 1 The Source file time is later than the Destination file time ;Author ........: Ian Maxwell (llewxam @ AutoIt forum) $aSource = FileGetTime($hSource, $iMethod, 0) $aDestination = FileGetTime($hDestination, $iMethod, 0) For $a = 0 To 5 If $aSource[$a] <> $aDestination[$a] Then If $aSource[$a] < $aDestination[$a] Then Return -1 Else Return 1 EndIf EndIf Next Return 0 EndFunc ;==>_CompareFileTimeEx edit: Oh, one nice improvement is that no other Includes are needed any more, so another plus for simplicity....
    1 point
×
×
  • Create New...