
rickybobby
Active Members-
Posts
30 -
Joined
-
Last visited
Recent Profile Visitors
195 profile views
rickybobby's Achievements
-
It's an exe I created in AutoIT, how would I go about having it be able to run as a service?
-
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
-
Just added it, still no dice.
-
I am running it as admin
-
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?
-
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!!
-
rickybobby reacted to a post in a topic: #include, more than once?
-
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?
-
Yep decrypting to the same file was the problem.
- 4 replies
-
- encryption
- decryption
-
(and 2 more)
Tagged with:
-
@error is 0 for each, i'll try changing the files around.
- 4 replies
-
- encryption
- decryption
-
(and 2 more)
Tagged with:
-
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!
- 4 replies
-
- encryption
- decryption
-
(and 2 more)
Tagged with:
-
Array to string from 2D array?
rickybobby replied to rickybobby's topic in AutoIt General Help and Support
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. -
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!
-
Get active computers in active domain
rickybobby replied to rickybobby's topic in AutoIt General Help and Support
I think you misunderstood me, I want COMPUTERS that HAVE been on the network within 90 days. -
Get active computers in active domain
rickybobby replied to rickybobby's topic in AutoIt General Help and Support
Not quite sure where to insert your code into my function..