Jump to content

sleepydvdr

Active Members
  • Posts

    562
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Thanks
    sleepydvdr got a reaction from mr-es335 in Multidimensional Array Help   
    I'm not very good with arrays. But maybe this will get you on the right track. With it, you crate an array. Then if you want to add a row, you need to create a second array and copy the data from the first in to it. Then append the new row into the second array.


    #include <Array.au3> Local $avArray[3][3], $avArray2[4][3] $avArray[0][0] = "Col1 Row1" $avArray[1][0] = "Col1 Row2" $avArray[2][0] = "Col1 Row3" $avArray[0][1] = "Col2 Row1" $avArray[1][1] = "Col2 Row2" $avArray[2][1] = "Col2 Row3" $avArray[0][2] = "Col3 Row1" $avArray[1][2] = "Col3 Row2" $avArray[2][2] = "Col3 Row3" _ArrayDisplay($avArray, "Original Array") $i = 0 $j = 0 Do $avArray2[$i][$j] = $avArray[$i][$j] ; Creates a second array and imports the data from the first. Do $j = $j + 1 $avArray2[$i][$j] = $avArray[$i][$j] Until $j = 2 $i = $i + 1 $j = 0 Until $i = 3 ; Now begins the insert of a new row $avArray2[3][0] = "Col1 Row4" $avArray2[3][1] = "Col2 Row4" $avArray2[3][2] = "Col3 Row4" _ArrayDisplay($avArray2, "Secondary Array")
  2. Like
    sleepydvdr got a reaction from Toninho in Changing the position of a Msgbox   
    dm83737, if I understand your question correctly, everyone has been pointing you in the wrong direction. You want to move a message box from another application, right? Others here are talking about moving the built-in message box in AutoIt.

    Try this code:


    While 1 WinWaitActive("The ADMINISTRATOR") WinMove("The ADMINISTRATOR", "", 10, 10) WEnd
  3. Like
    sleepydvdr got a reaction from samibb in unable to run files   
    I just want to make sure you are coding the ShellExecute statement correctly. I think this is how it should be:


    ShellExecute("C:\Program Files\Avaya\CMS Supervisor R16\ACScript.exe", '"' & "C:\Users\****\Desktop\call data\Export Data Bra data.acsauto /AUTO" & '"')
  4. Like
    sleepydvdr got a reaction from TarwadaC4 in open a web page in a Form   
    I just posted this two days ago on another thread, but this is about as basic as it can get:


    #Include <ie.au3> $GUI=GUICreate("", 1000, 800) $oIE=_IECreateEmbedded() GUICtrlCreateObj($oIE,10,10,980,780) _IENavigate($oIE, 'www.autoitscript.com') GUISetState() Do Until GUIGetMsg() = -3
  5. Like
    sleepydvdr got a reaction from caramen in Lunch network resource with password   
    Another way you could approach it:


    DriveMapAdd("B:", "\\sharecomputer\share", 0, "username", "password") RunWait("B:\executable_to_run.exe") ; You could use silent switches to install without user interaction DriveMapDel("B:")
  6. Like
    sleepydvdr reacted to GEOSoft in bruteforcing a password   
    It definitely falls under the area where we don't want to see AutoIt used for any potentially malicious or unethical purposes.
    We really do support sustaining a good reputation for AutoIt.
  7. Like
    sleepydvdr reacted to AdmiralAlkex in MSCONFIG issues   
    You guys (insomnai, sleepydvdr) need to read the File System Redirector part of Programming Guide for 64-bit Windows. Actually, if you think you'll ever do another script for a x64 OS, read the whole guide (especially the Running 32-bit Applications part).

    This is all really basic if you just check the documentation.
  8. Like
    sleepydvdr got a reaction from AutoSam in get URL from browser's address bar and store it in a text file   
    I know there has to be a better way, but this can do it. It checks for Firefox first and if it doesn't exist, then checks for IE.


    If WinExists("[CLASS:MozillaWindowClass]") Then WinActivate("[CLASS:MozillaWindowClass]") ElseIf WinExists("[CLASS:IEFrame]") Then WinActivate("[CLASS:IEFrame]") EndIf Sleep(100) send ("!d") send ("^c") $link = ClipGet() MsgBox(0, "", $link)
  9. Like
    sleepydvdr got a reaction from AutoSam in get URL from browser's address bar and store it in a text file   
    !d sends ALT+d. That selects the address bar. The ^c copies the address to the clipboard. To find out more about these, look up the "send" command in the help file.
  10. Like
    sleepydvdr got a reaction from usera in HTML format like form   
    Do you mean something like this?


    #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 399, 129) $Label1 = GUICtrlCreateLabel("User Name:", 24, 16, 60, 17) $Label2 = GUICtrlCreateLabel("Password:", 24, 48, 53, 17) $Label3 = GUICtrlCreateLabel("Domain:", 24, 80, 43, 17) $inputUserName = GUICtrlCreateInput("", 88, 16, 169, 21) $inputPassword = GUICtrlCreateInput("", 88, 48, 169, 21) $inputDomain = GUICtrlCreateInput("", 88, 80, 169, 21) $Button1 = GUICtrlCreateButton("Go", 288, 48, 75, 25, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $userName = GUICtrlRead($inputUserName) $password = GUICtrlRead($inputPassword) $domain = GUICtrlRead($inputDomain) MsgBox(0, "", "You typed in the following information:" & @CRLF & $userName & @CRLF & $password & @CRLF & $domain) EndSwitch WEnd
  11. Like
    sleepydvdr got a reaction from Dgameman1 in How can I make my script wait for a color to appear?   
    Never worked with PixelSearch before, but I think something like this would probably do it:


    Do PixelSearch(blah blah blah) Until Pixelsearch(blah blah blah) NOT @error
×
×
  • Create New...