Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/18/2018 in all areas

  1. Try this: Global $Active0, $Active1, $Active2 Global $array[3][3] = [["Tyranna", "Active0", "My Street "], ["AutoIt", "Active1", "Your Street"], ["Version3", "Active2", "Their Street "]] Main() Func Main() $Active0 = 1 $Active1 = 0 $Active2 = 1 Output() EndFunc ;==>Main Func Output() For $i = 0 To 2 ConsoleWrite("$Active" & $i & " = " & Eval($array[$i][1]) & @CRLF) Next EndFunc ;==>Output
    2 points
  2. I think one option would be to get an mp3 tag editor like mp3tag, and change any mp3 file, with it, changing each field to an unique string, so that you can later identify in the file. Let's say the title could be renamed to titlemp3 the artist to artistmp3 you get the idea. Then you open the file and there you go, everything identified.
    1 point
  3. I did an mp3 picture extractor, maybe i can tweak it to read the tags too, but it's tricky, there are a couple of versions of those tags.
    1 point
  4. Start with simplespy and post output of that. Better done in general help and support area with new thread as the answers can be lengthy. For beginners frequently its hard to understand gui hierarchy and z order of elements. For that simplespy and inspect are tools to help you. First step is to have action highlight working on your element of interest from then onwards it should become easier. In the background some log*.xml is made giving you all details on how udf is trying to find your element.
    1 point
  5. whatever it is, it doesn't compile even. on top of that, when i got it to compile your loop has array dimension errors.
    1 point
  6. JLogan3o13

    hide cmd.exe window

    @tiho999 I am confused, what two programs? When you do a RunAsWait, you remove the need to do this line as you have it above: Run ('C:\Windows\System32\runas.exe /profile /user:' & $sDomain & $sUsername & ' "CMD /C \"' & $RunCommand & '\""') So, based on what you have written above (unless there is more you did not include), your 11 lines of code: Local $sUsername = "username" Local $sPassword = "password" Local $sDomain = "domain" & "\" Local $RunCommand = "cmd.exe" Run ('C:\Windows\System32\runas.exe /profile /user:' & $sDomain & $sUsername & ' "CMD /C \"' & $RunCommand & '\""') WinWait ("C:\Windows\System32\runas.exe") send ($sPassword & '{ENTER}') sleep(1000) send ("\\network1\App1\Run_App1.exe" & ' {ENTER}') sleep(1000) Winclose ("CMD /C") ...could be reduced to: RunAsWait("username", "domain", "password", $RUN_LOGON_NOPROFILE, "\\network1\app1\Run_app1.exe", "<workingdir>", @SW_HIDE) Or, if you do not want to embed username and password in the script: $username = InputBox("Input UserName", "Please type in UserName") $password = InputBox("Password", "Please type in Password", "", "*") RunAsWait($username, "mydomain.com", $password, $RUN_LOGON_NOPROFILE, "\\network1\app1\Run_app1.exe", "<workingdir>", @SW_HIDE) Again, if it works for you as written great. Just pointing out a better way to do it, which will be much easier to maintain going forward.
    1 point
  7. The RunAsWait line I gave you above basically has everything you are doing in your code, you just need to plug in the values. Good luck
    1 point
  8. Subz

    Find value in excel file

    Try: $aResult = _Excel_RangeFind($oWorkbook, $fileName, $oWorkbook.Worksheets(4).UsedRange)
    1 point
  9. JLogan3o13

    hide cmd.exe window

    As I said, you cannot use Send with a hidden window. You either need to look at ControlSend in the help file, or bring up your window, send the string, then hide it, if you do not want to recode it. However, there is a case to be made for taking 20 minutes, shortening your code measurably, and doing it all in a single line
    0 points
×
×
  • Create New...