Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/30/2014 in all areas

  1. yousefsamy, That should work - although I would do it this way: $sTime = @HOUR & ":" & @MIN & ":" & @Sec GUICtrlSetData($Input1, $sTime) If $sTime = "22:54:00" Then MsgBox(0,"","") EndIf M23
    1 point
  2. yousefsamy, What I suggested was this: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $iCurrentSec = -1 $Form1 = GUICreate("Ramadan", 200, 200, -1, -1) $Input1 = GUICtrlCreateInput("", 64, 32, 121, 28,$ES_READONLY) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch If @SEC <> $iCurrentSec Then ; Wait for the change of second $iCurrentSec = @SEC GUICtrlSetData($Input1, @HOUR & ":" & @MIN & ":" & @Sec) EndIf WEnd M23
    1 point
  3. Exit

    Coded UI vs AutoIt

    Have you lost dot and newline on your keyboard?
    1 point
  4. yousefsamy, Use GUICtrlSetData and the Time And Date macros such as @Year. M23
    1 point
  5. The English translation of that word is coding. That word, as used in that phrase, means to write code.
    1 point
  6. You post on his grammar, did you bother to take to heart what he is trying to tell you?
    1 point
  7. meows, It is because you are still using v3.3.10.2 and the _ArrayDisplay code has been rewritten since then. Change it to read: $aTime = FileGetTime($sFilePath, 2) _ArrayDisplay($aTime, "Accessed", Default, 8) That should be working now. M23
    1 point
  8. Brilliant. The issue was I was saying if the formatting is okay return an @error *facepalm*.
    1 point
  9. orbs

    Comparing 2 word files

    i think your best choice would be this: (this can be used as a plugin for WinMerge, but it is a standalone app as well, with COM support) why? temp files are used all around the place, by practically all apps you can think of. - if it's security concerns, wipe the temp files when you're done with them. - if it's space concerns, text files are never that large to be concerned about - especially compared to their Word origin. and these files are not for the user - you can have your user select a doc file, and before it is processed, your script can convert it to text. this is transparent to the end user. EDIT: your script does not detect change of order of lines. b.t.w. it seems it checks lines, not words. you better rephrase the messages in the info console.
    1 point
  10. The attempts will be redirected if you are running a 32 bit process. To prevent this redirection when suitable, disable it and immediately revert it when done. This has been tested on Win7 64bit with AutoIt 32bit and 64 bit. The 2nd RunWait() run under 32bit AutoIt will not find bcdedit.exe as the redirection is reverted to enabled. ; disable filesystem redirection for 32 bit process _Wow64FsRedirection(False) ; run bcdedit with redirection disabled RunWait('"' & @ComSpec & '" /k bcdedit.exe') ; revert filesystem redirection for 32 bit process _Wow64FsRedirection(True) Sleep(500) ; run bcdedit with redirection enabled RunWait('"' & @ComSpec & '" /k bcdedit.exe') Func _Wow64FsRedirection($state) ; Disables or reverts the filesystem redirector for a 32 bit process running on 64bit OS If Not @AutoItX64 And @OSArch = 'X64' Then If $state Then DllCall("kernel32.dll", "int", "Wow64RevertWow64FsRedirection", "int", 0) Else DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 0); or 1 as per help EndIf If @error Then Return SetError(1) EndIf EndFunc
    1 point
  11. zackrspv

    MessageBox Constants

    Y'all should add those constants the the helpfile for MSGBOX then. Because right now, it only shows the #'s, not the constants
    1 point
×
×
  • Create New...