Leaderboard
Popular Content
Showing content with the highest reputation on 02/07/2018 in all areas
-
AutoIt v3.3.14.3 has been released. Thanks to everyone involved, both visible and behind the scenes. Download it here. Complete list of changes: History4 points
-
Version 1.7.0.1
10,054 downloads
Extensive library to control and manipulate Microsoft Outlook. This UDF holds the functions to automate items (folders, mails, contacts ...) in the background. Can be seen like an API. There are other UDFs available to automate Outlook: OutlookEX_GUI: This UDF holds the functions to automate the Outlook GUI. OutlookTools: Allows to import/export contacts and events to VCF/ICS files and much more. Threads: Development - General Help & Support - Example Scripts - Wiki BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort KNOWN BUGS (last changed: 2020-02-09) None1 point -
https://www.autoitscript.com/autoit3/docs/libfunctions/_ScreenCapture_Capture.htm https://www.autoitscript.com/autoit3/docs/functions/Run.htm add some screencapture directly after your run($sCommand) hopefully you can catch the error then Run($sCommand) for $i=1 to 10 sleep(50) _ScreenCapture_Capture("check" & $i & ".jpg") next1 point
-
Is sending inputs to multiple windows in real-time possible?
Earthshine reacted to Melba23 for a topic
LotBlind, Which sounds very much like it would fall foul of the keylogger prohibition - the thread gets locked anyway. M231 point -
1 point
-
Can't always get what you want. Create a scheduled task, and run it all in session 0, then you won't need to see anything on your user session. Don't need to worry about hiding anything either, since it will not interact with your desktop.1 point
-
Nope... Keep it simple: TraySetState(2) ; this is to remove the AUTOIT tooltray icon Run("AccountingServerEmulator-Windows.exe",@ScriptDir,@SW_HIDE) ; this creates your process in hidden mode1 point
-
Local $oXML = ObjCreate("Microsoft.XMLDOM") $oXML.load("base.xml") $oName = $oXML.SelectSingleNode("//name") $oName.text = ($oName.text) & $ext & $replace1 $oExtpass = $oXML.SelectSingleNode("//password") $oExtpass.text = ($oExtpass.text) & $extpass $oAlias = $oXML.SelectSingleNode("//alias") $oAlias.text = ($oAlias.text) & $alias $oXML.save ("accounts.xml") The + is actually adding the values. Strings are converted to numbers, and then added together...use & instead, to join strings.1 point
-
Here is an example, using re-execution, that I have used to have multiple message boxes at once. If StringInStr($CmdLineRaw, '/MsgBoxData') Then ;Creates Return Message boxes. Opt("TrayIconHide", 1) ;Hide tray icon for rerun script that shows the Message box. $CmdLineRaw = StringSplit(StringMid($CmdLineRaw, StringInStr($CmdLineRaw, '/MsgBoxData')), ';') $aMsgBoxData = StringSplit($CmdLineRaw[2], "|") Switch $aMsgBoxData[0] Case 3 MsgBox($aMsgBoxData[1], $aMsgBoxData[2], $aMsgBoxData[3]) Case 4 MsgBox($aMsgBoxData[1], $aMsgBoxData[2], $aMsgBoxData[3], $aMsgBoxData[4]) Case 5 MsgBox($aMsgBoxData[1], $aMsgBoxData[2], $aMsgBoxData[3], $aMsgBoxData[4], $aMsgBoxData[5]) EndSwitch Exit EndIf Global $iReturnBoxPID Global $sReturnBoxPIDs = "" For $i = 0 To 10 $iReturnBoxPID = _MsgBoxEx(0, "Test " & $i, "This is test " & $i & ".") $sReturnBoxPIDs &= $iReturnBoxPID & "|" Next Sleep(10000) ;Sleep to 10 sec. ;Close all open message boxes Global $aReturnBoxPIDs = StringSplit(StringTrimRight($sReturnBoxPIDs, 1), "|") For $iPID = 1 To $aReturnBoxPIDs[0] Step 1 ProcessClose($aReturnBoxPIDs[$iPID]) Next Func _MsgBoxEx($iFlag, $sTitle, $sText, $iTimeOut = 0, $iHwnd = 0) ;Show a message box for the data. If $iTimeOut = 0 And $iHwnd = 0 Then $sMsgBoxDataEx = $iFlag & '|' & $sTitle & '|' & $sText ElseIf $iTimeOut <> 0 And $iHwnd = 0 Then $sMsgBoxDataEx = $iFlag & '|' & $sTitle & '|' & $sText &'|' & $iTimeOut Else $sMsgBoxDataEx = $iFlag & '|' & $sTitle & '|' & $sText & '|' & $iTimeOut & '|' & $iHwnd EndIf If @Compiled Then Return(Run(@ScriptFullPath & ' /MsgBoxData;' & $sMsgBoxDataEx)) Else Return(Run(@AutoItExe & ' "' & @ScriptFullPath & '" /MsgBoxData;' & $sMsgBoxDataEx)) EndIf EndFunc Adam1 point
-
I did not create this, but the GUI for LinuxLive USB Creator is amazing! The cherry on top is that it is made in AutoIt! This is what got me into looking into AutoIt, and the rest is history1 point
-
For those of you interested in .bat
Draygoes reacted to JLogan3o13 for a topic
I am fully aware of my abilities as a Mod, thanks. I also have no intention of doing anything with your post - had not planned on paying it any more attention than I had already, and certainly no interest in taking it down; simply asked a question. I have seen no "hate"directed at you; seems like a personal issue with thin skin on your part. It does, however, beg the question of common sense - I don't go onto a JavaScript forum and tell them how great VBScript is. Why? Because someone is going to ask why I am posting that here. Not sure what kind of response you thought you'd get beyond .1 point -
Google found this. The original problem The follow up reply I reconfigured the ODBC connection setting (through the driver's windows interface) and set the protocol to "7.4-1" and it solved the slowdown problem. (w00t!) Which is fine by us as it was the default behavior before (I guess), and that's how our application is designed to handle transaction. Thank you, guys :) The test case is pretty simple : -------------------------------------------------------- -- create and populate table CREATE TABLE _slowlocks ( lib character varying(50), numbers integer ); INSERT INTO _slowlocks VALUES ('one',0),('two',0),('three',0); ---------------------------------------------------------- --- In any language/program, run something like this : --------------- ExecuteSQL("BEGIN;") FOR(i=0,i++,i<1000) ExecuteSQL("SELECT numbers FROM _slowlocks WHERE lib='two' FOR UPDATE;") ExecuteSQL("UPDATE _slowlocks SET numbers= numbers +1 WHERE lib='two';") NEXT i ExecuteSQL("COMMIT;") ---------------------------------------------------------- With protocol set to "7.4-2", it took 1 minute and 11 seconds With protocol set to "7.4-1", it took 1.2 second ... 1. I get comparable speed results 2. I do not know how to set the protocol using the ADO UDF 3. I am attempting the transaction method Update Setting a protocol -- Just found this tcp:servername Waiting for current process to complete, then I will modify my connection string. This, however seems to be outdated: psqlODBC Configuration Options Final multi column inserts into four tables, rows inserted table count 186 14696 5635 4 Total db size 23mb With transaction, 67 minutes. Without transaction 68 minutes. tcp:servername does not work ... Ping statistics for x.x.x.x: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 191ms, Maximum = 201ms, Average = 194ms Skysnake1 point
-
WinSetTrans(255) vs. SetLayeredWindowAttributes(255)
davidacrozier reacted to TheDcoder for a topic
Please use the forum editor to insert code:1 point -
How to use FileInstall()
Keith_Greenberg reacted to antonioj84 for a topic
The explanation on this thread was the clearest at least to me, and I hope it can help someone else. Simple, i am not looking for any trouble, let me know if i should remove it ?1 point -
How to use FileInstall()
santoshM reacted to antonioj84 for a topic
"Fileinstall " explanation can be tricky this was the clearest info so far, that page did it for me. fileInstall("C:\original\file\location\on\hard\drive\written\out\completely.exe", @scriptdir & "\bin\completely.exe",1) once i had the basic working , i was able to use relative path. The key is to use "dirCreate". i know it;s old however still relevant. Global $sDestination='c:\Installers\EpsonJavaPosAdk\' DirCreate($sDestination) FileInstall(".\DataStorage\copyfile2.exe", $sDestination& "copyfile2.exe", 1);===> Modify this path copyfile2.exe ;~DataStorage is a folder within my script directory where the files i want to copy are located1 point -
Thanks, i got it #pragma compile(ExecLevel, highestavailable) #pragma compile(Compatibility, win7) #pragma compile(UPX, False) #pragma compile(FileDescription, myProg - a description of the application) #pragma compile(ProductName, myProg) #pragma compile(ProductVersion, 3.7) #pragma compile(FileVersion, 3.7.0.0, 3.7.100.201) ; The last parameter is optional. #pragma compile(LegalCopyright, © Joe Bloggs) #pragma compile(LegalTrademarks, '"Trademark something, and some text in "quotes" etc...') #pragma compile(CompanyName, 'Joe Bloggs & Co')1 point
-
Search #pragma in the help file1 point
-
KatoXY, The control is know as a Combo and you can produce one by using GUICtrlCreateCombo. If you want to fill it from an array, I would recommend doing something like this: #include <GUIConstantsEx.au3> ; Here is the array Global $aArray[5] = ["A", "B", "C", "D", "E"] ; And here we get the elements into a list $sList = "" For $i = 0 To UBound($aArray) - 1 $sList &= "|" & $aArray[$i] Next ; Create a GUI #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) ; Create the combo $hCombo = GUICtrlCreateCombo("", 10, 10, 200, 20) ; And fill it GUICtrlSetData($hCombo, $sList) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEndAll clear? Please ask if not. M231 point