Leaderboard
Popular Content
Showing content with the highest reputation on 12/15/2017 in all areas
-
How to suspend a process for some time
Earthshine reacted to Jos for a topic
You are just guessing while it is VERY simple to debug with the options available and a little effort.1 point -
[SOLVED] AutoIt installer (does not) has bugs
Earthshine reacted to Jos for a topic
I don't like installers that do other stuff than standard stuff and like to set my own preferences which should never be undone. When one deliberately does a "Open with", select a program and check the "Always use this program"option, than that is what it should do. That is why I created this little piece of code that simply reports on what you have done and the suggestions how to fix it. I also elected not to include an option to fix it for you as I don't want to be responsible for any fuckup in the registry. Jos1 point -
running as an exe how to return an error code?
Earthshine reacted to Jos for a topic
You are not trying hard enough nor providing any information. Please stop posting here until you have something to show for! Jos1 point -
How to suspend a process for some time
Earthshine reacted to Jos for a topic
Unlike the others shooting from the hip at your lack of info provided: What did your debugging reveal? You can't come in here posting constantly these questions without having done some basic debugging yourself. (I am pretty sure I am repeating myself to you now!) You should know how to do this debugging by now, so start thinking for a change and doing the work yourself! Come back when you have more to show for. Jos1 point -
[SOLVED] AutoIt installer (does not) has bugs
Earthshine reacted to Jos for a topic
It does by default add the contectmenu and the above behaviour would only be expected when somebody has overridden the defaults set by doing a "Open With" Use SciTEConfig and Select "Other Tools" and click on "Run AutoIt33/SciTE check". This will report any modifications made in the registry. ... or does it actually run and just not run correctly? Jos1 point -
running as an exe how to return an error code?
Earthshine reacted to careca for a topic
Wow from 2012 to 2015 to now. Ur the ressurector!1 point -
How to suspend a process for some time
Earthshine reacted to JLogan3o13 for a topic
@ur as usual it is like pulling teeth with you. How are we supposed to help you narrow down the problem when you have, by my count, 5 custom functions (WaitForINICompletion, SendMail, ChangeWin32, CheckZip, AppendBinaries) in there that you are not sharing with us?1 point -
how to use keys combination to send a key ?
Earthshine reacted to JLogan3o13 for a topic
@Gaffgarion Welcome to the forum. First off, please re-read the _IsPressed section in the help file. You will see that you need to enter the value for the key, not the key itself (e.g. '51' not 'q'). Now, regarding your issue, there are a couple of ways to go about this. There is a UDF out there that you can use to set multiple hotkeys, you can find that here: Alternatively, I like this little function written by Melba. In essence it uses HotKeySet on both keys and points them to the same function, then checks to see if both are pressed before sending the 'e' key. ;All credit to Melba23 #include <Misc.au3> HotKeySet("q", "_Q1") HotKeySet("w", "_Q1") While 1 Sleep(10) WEnd Func _Q1() ; Unset HotKeys to prevent possible double hit HotKeySet("q") HotKeySet("w") ; Are both keys pressed? $iBegin = TimerInit() Do If _IsPressed("51") And _IsPressed("57") Then Send("e", 1) Until TimerDiff($iBegin) > 100 ; Reset HotKeys HotKeySet("q", "_Q1") HotKeySet("w", "_Q1") EndFunc Keep in mind, as the Remarks section of _IsPressed explain, even a brief press of the key combo can result in multiple presses of your output key, so you may get 'eeeee'1 point -
Serial Port /COM Port UDF
antonioj84 reacted to argumentum for a topic
PERFORMANCE DRIVEN, POWERFULLY VERSATILE • Simplified, single-port connectivity offers USB, serial and Ethernet connection options • Pair with any terminal for a complete, consumer-facing solution • Deliver targeted promotions and branding messages on the screen • Integrated EMV and NFC • Advanced end-to-end encryption the Advanced end-to-end encryption part, may make the communication, to make no sense from a text readable point, and have to use their drivers and comm utilities. Other ways of exploration would take a data analyzer to figure out what may be going on ( without more information from Verifone ) Are you sure that 8,n,1 at 9600 baud is the way to talk to the device ?, if it's something else, you will not communicate with the device to start with. Then again, if you don't have a set of commands from the maker ( or a set standard for the device type ), you can not have a meaningful interaction with the device. If you can read java, https://sourceforge.net/p/unicentaopos/discussion/search/?q=vx820 may get you some support. Or, talk to the Verifone about their product. Maybe you can interact via TCP/IP with it. No clue.1 point -
... an example of a simple function that uses the same parameters of _ArrayFindAll(), but it returns whole lines instead of just indexes. I've called it _ArrayFindAll_2() in the listing. Anyway, If you search values of a single row (see the last parameter $bRow), OR if you pass an 1D array then the function returns only indexes , as it would be a nonsense to return the searched string repeated as many times as the number of time it's found. #include <array.au3> Example() Func Example() Local $aMyArray = [["Col.0 First name", "Col.1 Last name", "Col.2 Position", "Col.3 Office", "Col.4 Salary"], _ ["Airi", "Satou", "Accountant", "Tokyo", "$162,700"], _ ["Angelica", "Ramos", "Chief Executive Officer (CEO)", "London", "$1,200,000"], _ ["Ashton", "Cox", "Junior Technical Author", "San Francisco", "$86,000"], _ ["Bradley", "Greer", "Software Engineer", "London", "$132,000"], _ ["Brenden", "Wagner", "Software Engineer", "San Francisco", "$206,850"], _ ["Brielle", "Williamson", "Integration Specialist", "New York", "$372,000"], _ ["Bruno", "Nash", "Software Engineer", "London", "$163,500"], _ ["Caesar", "Vance", "Pre-Sales Support", "New York", "$106,450"], _ ["Cara", "Stevens", "Sales Assistant", "New York", "$145,600"], _ ["Cedric", "Kelly", "Senior Javascript Developer", "Edinburgh", "$433,060"]] ; search the array for "New York" in column 3 _ArrayDisplay(_ArrayFindAll_2($aMyArray, "New York", Default, Default, Default, Default, 3)) EndFunc ;==>Example ; This function Returns whole rows instead of just indexes ; -------------------------------------------------------- Func _ArrayFindAll_2(ByRef $aArray, $vValue, $iStart = 0, $iEnd = 0, $iCase = 0, $iCompare = 0, $iSubItem = 0, $bRow = False) Local $aIndexes = _ArrayFindAll($aArray, $vValue, $iStart, $iEnd, $iCase, $iCompare, $iSubItem, $bRow) If @error Then Return SetError(@error, 0, -1) ; if searching only in a row, OR if it's an 1D array then return indexes ; is nonsense to returns values in this cases, (it would be returned the searched string repeated) If $bRow Or UBound($aArray, 0) = 1 Then Return $aIndexes Local $iRows = UBound($aIndexes, 1), $iColumns = UBound($aArray, 2) Local $aReturn[$iRows][$iColumns] For $iRow = 0 To $iRows - 1 For $iColumn = 0 To $iColumns - 1 $aReturn[$iRow][$iColumn] = $aArray[$aIndexes[$iRow]][$iColumn] Next Next Return $aReturn EndFunc ;==>_ArrayFindAll_21 point
-
MEmu Emulator
hoangvu0905 reacted to ViciousXUSMC for a topic
I used Nox for a while. I found automation was much cleaner and better using ADB (Android Debug Bridge) than trying to automate the Emuator itself, it could launch applications even if they were not showing on screen. My automation was to auto launch a program, and detect if it crashed and re-launch it. Memu should support the same kind of setup. BTW: YOu may want to start your own tread rather than posting on one a year old, there is not a high chance the same people are watching the thread and ready to answer.1 point