Jump to content

rickybobby

Active Members
  • Posts

    30
  • Joined

  • Last visited

Recent Profile Visitors

195 profile views

rickybobby's Achievements

  1. I'm getting pretty tired of switching tabs back and forth between scripts in the script editor, is there any way to get the tabs out into multiple windows? I have multiple monitors so this would be VERY useful! -Thank you
  2. It's an exe I created in AutoIT, how would I go about having it be able to run as a service?
  3. Ok so I got it to work by changing it from an interactive process to "$SERVICE_WIN32_OWN_PROCESS"; but now I get an error when attempting to start it that the process did not respond in a timely fashion. Error 1053
  4. Just added it, still no dice.
  5. I am running it as admin
  6. So I've been trying to create a service using the Service UDF here : >UDF But I keep getting 0 returned, which means failure, and no service appears in the service viewer. My goal here is to create a service which will launch an autoit exe before a user logs on. Here's my code: #include"C:\Users\xxx\Desktop\serviceCreator\services.au3" $Return =_Service_Create("MY new Service", "NEW SERVICE", $SERVICE_INTERACTIVE_PROCESS, $SERVICE_AUTO_START, $SERVICE_ERROR_IGNORE,'"C:\Program Files\xxx\xxx.exe"') MsgBox("","",$Return) MsgBox("","",@error) Any idea what I'm doing wrong?
  7. So I know this isn't exactly autoit related, but I really cant find definitive info elsewhere and figured the scripting wizards would be able to help me out! I need my program to be run on the computer at startup. The computer when booted though does not log in, So what I really need is my program to run when the machine first boots and run when the user has logged on yet. I've been writing my registry entry's like so using this script: If $OSArchitecture = "X86" Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "CLEAN MACHINE", "REG_SZ", "CLEAN MACHINE PROGRAM PATH") Else RegWrite("HKLM64\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "CLEAN MACHINE", "REG_SZ", "CLEAN MACHINE PROGRAM PATH") EndIf Should this be working, or am I doing something wrong? Any help is appreciated!!
  8. So I have several functions spread out among different scripts (makes it easier to sort out); Each with some sort of #include, lets say for ex: #include<arrays.au3>. so if in the main script I bring all these scripts together by #including them, then do they over and over #include<array.au3> again and again, unnecessarily bulking the main script up?
  9. Yep decrypting to the same file was the problem.
  10. @error is 0 for each, i'll try changing the files around.
  11. I'm attempting to decrypt a file previously encrypted with the encrypt file function; then read that file into an array and display it. When I read the file into an array it still shows me garbled text if any at all. What am I doing wrong here? $serial = "stepping through array var" $FileHandle = "C:\XXX\Serial.txt" If FileExists($FileHandle) Then $Password = "password" _Crypt_DecryptFile($FileHandle, $FileHandle, $Password, $CALG_RC4) $FileArray = 0 ;initilze computer list array _FileReadToArray($FileHandle, $FileArray) _ArrayDisplay($FileArray) ;why is this showing encrpyted data?!?! FileOpen($FileHandle) FileWriteLine($FileHandle, $serial) FileClose($FileHandle) Else FileOpen($FileHandle) FileWriteLine($FileHandle, $serial) FileClose($FileHandle) EndIf $Password = "password" _Crypt_EncryptFile( $FileHandle, $FileHandle, $Password, $CALG_RC4) Next Any help is greatly appreciated!
  12. I'm trying to pass the var to a command line string that runs a console program; so when I pass the value of that element it's still somehow not getting passed as a string.
  13. I have a 2D array, and I'm trying to only get a value out of one single row/column; say $array[1][0] which should be = Jane. I've just figured out that Arraytostring does not work with 2D arrays, how should I go about getting this value? Thank you!
  14. I think you misunderstood me, I want COMPUTERS that HAVE been on the network within 90 days.
  15. Not quite sure where to insert your code into my function..
×
×
  • Create New...