Leaderboard
Popular Content
Showing content with the highest reputation on 04/11/2019 in all areas
-
There are a ton of options for task outside of just that though. i believe the startup folder is only when you first create a user session and not for subsequent locks and unlocks. but there aredefinitely ways to create tasks on unlock actions for all users (requires admin settings to save) Triggers: On connection of user profile On workstation unlock those are the ones you should look into. Google them to see if you need both triggers, or just the workstation unlock trigger.1 point
-
Run script every time unlock screen?
sosimple reacted to ViciousXUSMC for a topic
While the screen is still locked normal means of execution will not launch a script. But on login you can put a script in the startup folder or set a scheduled tasks to run on startup.1 point -
Check out all the options in scheduled tasks. easiest way to do it.1 point
-
WebDriver UDF (W3C compliant version) - 2024/09/21
mihelson83 reacted to Danp2 for a topic
@mihelson83 There's a function called _WD_NewTab. Take a look at how it's used here or in wd_demo.au3.1 point -
Yet another Listview problem
FrancescoDiMuro reacted to BrewManNH for a topic
Aren't all of these still Globals? Local $aSiteFile = _GetSiteData() Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES) $guiapp = GUICreate("test" , 390, 220,-1, -1, -1); WS_EX_ACCEPTFILES $listview = GUICtrlCreateListView("", 10, 10, 370, 200) And didn't you just create an unnecessary Global that could have been done this way? ;~ Local $aSiteFile = _GetSiteData() <<<<<<<< Unecessary Global variable created when you can just use the return directly ;~ Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES) <<<<<<<<<<<< Unless you plan on changing the styles, for example for testing a lot, this Global is also unnecessary $guiapp = GUICreate("test" , 390, 220,-1, -1, -1); WS_EX_ACCEPTFILES $listview = GUICtrlCreateListView("", 10, 10, 370, 200) _GUICtrlListView_SetExtendedListViewStyle($listview, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES)) _GUICtrlListView_AddColumn($listview, "Name", 120) _GUICtrlListView_AddColumn($listview, "Mail", 120) _GUICtrlListView_AddColumn($listview, "Popup", 120) _GUICtrlListView_AddArray($listview, _GetSiteData())1 point -
If you want to continuously monitor your @ScriptsDir@\Sites folder you can use something like the following: #include <Array.au3> #include <File.au3> #include <GUIConstants.au3> #include <GuiListView.au3> Opt("ExpandVarStrings", 1) Global $g_idListview, $g_aSiteFileData[0][3] _SiteDataView() Func _SiteDataView() Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES) Local $g_hGUIApp = GUICreate("test" , 390, 220,-1, -1, -1); WS_EX_ACCEPTFILES $g_idListview = GUICtrlCreateListView("", 10, 10, 370, 200) _GUICtrlListView_SetExtendedListViewStyle($g_idListview, $exStyles) _GUICtrlListView_AddColumn($g_idListview, "Name", 120) _GUICtrlListView_AddColumn($g_idListview, "Mail", 120) _GUICtrlListView_AddColumn($g_idListview, "Popup", 120) GUISetState() AdlibRegister("_GetSiteData") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd EndFunc Func _GetSiteData() Local $aSiteFileData Local $aSiteFilePath = _FileListToArrayRec("@ScriptDir@\Sites", "*.ini", 1, 0, 1, 2) If @error Then Exit MsgBox(4096, "Fatal Error", "No ini files found in @ScriptDir@\Sites folder, exiting script.") ;~ This will actively check if files have been added or removed from the @ScriptDir@\Sites\ folder If $aSiteFilePath[0] = UBound($g_aSiteFileData) Then Return ReDim $g_aSiteFileData[0][3] Local $sDrive = "", $sDir = "", $sFileName = "", $sExtension = "" For $i = 1 To $aSiteFilePath[0] $aSiteFileData = IniReadSection($aSiteFilePath[$i], "Check") If @error Then ContinueLoop ;~ Error reading ini file $aFilePath = _PathSplit($aSiteFilePath[$i], $sDrive, $sDir, $sFileName, $sExtension) _ArrayAdd($g_aSiteFileData, "$sFileName$|" & _ArrayToString($aSiteFileData, "|", 1, -1, "|", 1, 1)) Next _GUICtrlListView_DeleteAllItems($g_idListview) _GUICtrlListView_AddArray($g_idListview, $g_aSiteFileData) EndFunc1 point
-
Global vars can be tricky. You should always try not to use it, unless it is absolutely necessary... #include <Array.au3> #include <File.au3> #include <GUIConstants.au3> #include <GuiListView.au3> Opt("ExpandVarStrings", 1) Local $aSiteFile = _GetSiteData() Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES) $guiapp = GUICreate("test" , 390, 220,-1, -1, -1); WS_EX_ACCEPTFILES $listview = GUICtrlCreateListView("", 10, 10, 370, 200) _GUICtrlListView_SetExtendedListViewStyle($listview, $exStyles) _GUICtrlListView_AddColumn($listview, "Name", 120) _GUICtrlListView_AddColumn($listview, "Mail", 120) _GUICtrlListView_AddColumn($listview, "Popup", 120) _GUICtrlListView_AddArray($listview, $aSiteFile) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _GetSiteData() Local $aSiteFileData, $aResult [0][3] Local $aSiteFilePath = _FileListToArrayRec("@ScriptDir@\Sites", "*.ini", 1, 0, 1, 2) If @error Then Exit MsgBox(4096, "Error", "An error occurred while getting site ini files.") Local $sDrive = "", $sDir = "", $sFileName = "", $sExtension = "" For $i = 1 To $aSiteFilePath[0] $aSiteFileData = IniReadSection($aSiteFilePath[$i], "Check") If @error Then ContinueLoop ;~ Error reading ini file $aFilePath = _PathSplit($aSiteFilePath[$i], $sDrive, $sDir, $sFileName, $sExtension) _ArrayAdd($aResult, "$sFileName$|" & _ArrayToString($aSiteFileData, "|", 1, -1, "|", 1, 1)) Next Return $aResult EndFunc1 point
-
$MB_YESNO Trying to create an if statement
Zag8888 reacted to FrancescoDiMuro for a topic
@Zag8888 If you look at the Help file about MsgBox function, you'll see everything you need. By the way, is $IDYES1 point -
You could take a look at this thread, M23 code could solve your #2, pooja code could solve your #3 and #1. As for #4 depends on how you want to inform your users (maybe some GUI ListView ?)...1 point
-
Maybe you could try something like this : Local $oFrm1 = _IEFrameGetObjByName ($web,"contentIframe") Local $oFrm2 = _IEFrameGetObjByName ($oFrm1,"tqmFrame") Local $colA = _IETagNameGetCollection ($oFrm2,"a") For $a in $colA if $a.innerText = "ABC" then $a.click () ExitLoop endif Next1 point
-
Stack Overflow Documentation
Earthshine reacted to jchd for a topic
I strongly disagree. The full AutoIt documentation is already inline (and offline with all AutoIt installations). Having to maintain another doc format is just duplication of efforts with no benefit I can foresee.1 point -
DLLopen failed
Alenis reacted to AdmiralAlkex for a topic
Install SciTE4AutoIt3 if you haven't, then add the following line to the top of your script: #AutoIt3Wrapper_UseX64=n Or if you're to lazy to copy-paste (like me ) then press Tools > Compile > Select "Use X86 version." > Save Only.1 point -
I got the error, running on 64 bit and the dll file is 32 bit. I am running the script in 32 mode and everything works fine now.1 point
-
Send is not reliable without adjusting the input speed and pause between characters to exactly match what every application you send at can handle (all applications are different)...use: Func main() $h = WinActivate("Untitled - Notepad") $c = ControlGetHandle($h,"",15) ControlSetText($h,"",$c,$ip_password & @CRLF & $ip_username) EndFunc0 points