Jump to content

Leaderboard

Popular Content

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

  1. A new version (v1.4.0) was just published to the Downloads section of the forum. Added a Help file that includes all of the functions, with examples. The look & feel of the help file matches the standard AutoIt help files. Updated the _CryptoNG_DecryptFile function to create the output file's path if it doesn't exist. Updated the _CryptoNG_EncryptFile function to create the output file's path if it doesn't exist. Cleaned up several of the function headers. All of the HTML files in the new Help file were created without the help of any automation tools. Therefore, there may be some typos, errors, or omissions. I tried very hard to make sure that all of the information is correct and that all of the links work. If you happen to come across any issues in the help file, please let me know so that I can get them corrected.
    2 points
  2. @LisHawj If you just have to install OneDrive, why don't you use the /silent switch or the Configuration Manager from Windows?
    2 points
  3. Hi everyone. I noticed something very weird on my windows 10 computer. When the script isn't "graphic" (no msgbox, inputbox, gui etc), the script is relatively fast. Whenever a script becomes "graphic" (a msgbox was launched) its execution is then 6 times slower. Here are the results of the execution of this script : $x=0 $start=TimerInit() for $i=1 to 500000 $x+=1 Next MsgBox(0,"",TimerDiff($start)) ;160ms => becoming slower now because of the msgbox $start=TimerInit() $x=0 for $i=1 to 500000 $x+=1 Next MsgBox(0,"",TimerDiff($start)) ;1300ms I tried on my windows 7 computer and the bug isn't there. I tried everything and it really comes to this => whenever something graphic has been prompted, even if it's over, the script is way slower then. Can someone try to reproduce this? And how do I report a bug?
    1 point
  4. I was about to ask, because I need to block users input at some point of the script! Man! Thank you very much! I changed the "OR" for "comas", and put the _ChangeWindowMessageFilterExchange from the thread you show me, into the drag and drop GUI to bypass requireadmin! Thank you very much for your time and help again! Everything seens to be working fine now! I just need to put some align and movement checks an the others functions, but I think I can go from here! You have helped me a lot!!!
    1 point
  5. there is another way around to hold #requireadmin best regards
    1 point
  6. i just read in a german forum about it. i use win7 that's why it works i guess. someone had problems with it,too try to should down the UAC (to lowest) and delete #requireadmin and give it a try
    1 point
  7. Nine

    Desktop Activity Logging

    Look in help file for Win* functions (WinList, WinGetTitle, etc). I hope you don't expect us to do your homework, do you ?
    1 point
  8. Hello, Can someone offer some guidance on how I can better update a variable in a GUI label? In my script i have pre-defined a text message "$Message" which includes several variables. One of those variables "$Masterversion" is updated based on the Case statement selected. When I run the script, the $Masterversion variable is not updating with the GUICtrlSetData command when the GUI is displayed. What do i need to do to update the $Message string with the new $Masterversion variable? Here is my script...which has been simplified down to the bare bones to just show the issue. ;Script Start $SoftwareA = "1.20" $SoftwareB = "4.6" $SoftwareC = "2.8" $SoftwareD = "5.1" _Software() ;Returns $Software value _Check() Exit Func _Check() $InstalledVersion = RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\keyname", "value") $Masterversion = "" $Message = " This software is out of date!" & @CRLF & @CRLF & " installed version...... " & $InstalledVersion & @CRLF & " current version........ " & $Masterversion & @CRLF & @CRLF & " Please contact your system administrator" $GUIForm = GUICreate("", 597, 438+57, -1, -1, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) GUISetBkColor(0x000000) ;Black $Label1 = GUICtrlCreateLabel("*** NOTICE ***", 27, 32, 550, 81, BitOR($SS_CENTER,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 48, 800, 0, "Arial") GUICtrlSetColor(-1, 0xFF0000) ;Red GUICtrlSetBkColor(-1, 0x000000) ;Black $Label2 = GUICtrlCreateLabel($Message, 27, 152, 550, 250, BitOR($WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 14, 800, 0, "Arial") GUICtrlSetColor(-1, 0xFFFF00) ;Yellow GUICtrlSetBkColor(-1, 0x000000) ;Black $Button1 = GUICtrlCreateButton("OK", 248, 368+57, 100, 50, BitOR($BS_DEFPUSHBUTTON,$BS_CENTER,$BS_PUSHLIKE)) GUICtrlSetFont(-1, 16, 800, 0, "Arial") GUISetState(@SW_HIDE) GUICtrlSetOnEvent($Button1, "_UpdateProcess") Select Case $Software = "A" Local $String = StringInStr($SoftwareName, "XXXX") If $String <> 0 Then $Masterversion = $SoftwareA If $InstalledVersion < $SoftwareA Then GUICtrlSetData($Label2, $Message) GUISetState(@SW_SHOW, $GUIForm) EndIf EndIf Case $Software = "B" Local $String = StringInStr($SoftwareName, "XXXX") If $String <> 0 Then $Masterversion = $SoftwareB If $InstalledVersion < $SoftwareB Then GUICtrlSetData($Label2, $Message) GUISetState(@SW_SHOW, $GUIForm) EndIf EndIf Case $Software = "C" Local $String = StringInStr($SoftwareName, "XXXX") If $String <> 0 Then $Masterversion = $SoftwareC If $InstalledVersion < $SoftwareC Then GUICtrlSetData($Label2, $Message) GUISetState(@SW_SHOW, $GUIForm) EndIf EndIf Case $Software = "D" Local $String = StringInStr($SoftwareName, "XXXX") If $String <> 0 Then $Masterversion = $SoftwareD If $InstalledVersion < $SoftwareD Then GUICtrlSetData($Label2, $Message) GUISetState(@SW_SHOW, $GUIForm) EndIf EndIf Case $Software = "E" Case $Software = "F" Case $Software = "G" Case $Software = "H" Case $Software = "I" Case $Software = "J" Case $Software = "K" Case Else ;Display message EndSelect While 1 Sleep(40) ; Idle around WEnd EndFunc
    1 point
×
×
  • Create New...