HypercamJ
Active Members-
Posts
36 -
Joined
-
Last visited
HypercamJ's Achievements
Seeker (1/7)
0
Reputation
-
Hi All. First off I'd like to thank the AutoIt team for creating such a wonderful tool. I've been using AutoIt for about one and a half years now and I've had great success with learning it. Recently though, I've run into a strange error while executing a script. Whenever it gets to this line of code while in execution it halts and displays an error stating "Error: Error in expression". Here's the code that it's getting hung on: _FileWriteLog($ScriptDir&"\c.Logs\Usage Log.LOG", "Compiled Successfully. Ticket ID: "&$tvTicket&", Time Taken: "&$FinalTime[1]&", ZIP Size: "$zSize& ", Client IP: " & $_REMOTE_ADDR)Some Notes: My computer's running Windows XP Home SP3 32 bitI've tried running AuCGI under my account and the System (Via Apache Service)This Script is being processed by AuCGII'm running AuCGI with XAMPPAuCGI is using AutoIt Public version 3.3.0.0What could be causing this error?
-
Maybe wasn't as clear as I thought I was. One of the programs I was referring to was the Apple Software Update program. When you ran it, it checked for updates from the Apple web site. If it found updates and you choose to download them, a UAC box popped up requesting administrative approval. When you approve it the GUI resizes by half to fit the download bar. My point there was to state that no external programs were ran. The Updater just requested administrative abilities whilst in the middle of executing. Mat had somewhat of my idea in mind except that only the secondary script had admin privileges (not the parent) and it had to create and external file to do so. Any further ideas?
-
So after using many other programs that can, I was wondering how you could elevate a program's/script's privileges at certain places or inside conditional statements. I'm aware of the #RequireAdmin tag but that requests user conformation at the beginning at the script rather than inside an If..Then statement. I've also heard you could just start another process that requires higher privileges but I'd prefer to keep everything in one executable. As a side note, I think I've heard of using a COM object to invoke the UAC but I've yet to familiarize myself with those.
-
I've been searching the board for a while but I haven't come up with anything. Here's my question, can you redirect the output of the function ConsoleWrite() to an Edit box or something else like a log? I know there's _GUICtrlEdit_AppendText but can you redirect ConsoleWrite?
-
Sending text for a minimized/hidden window
HypercamJ replied to HypercamJ's topic in AutoIt General Help and Support
Thank you so much! I never would have considered TCP+Telnet but I guess that it's pretty much the same thing. Now I just need a script that questions if I searched my topic before I make a post... -
Since I live on a hill our telephone line seems to go all over the place to get here. Unfortunately, at one point in the line it's really messed up which makes my DSL router go offline until I reset it physically. I made a script in AutoIt (Of course!) to telnet into the router and reset it automatically when I'm away (Or supremely lazy, it's only 5 feet away). I can't find a way to minimize the telnet window though and still be able to send text to it. And it gets rather irritating when I have to stop working on whatever so I won't mess up the commands it sends to the open telnet window. Could my script execute the reset silently? Here's the reset script: BlockInput(1) FileWrite(@ScriptDir & "\Reset Log.txt", "Time " & @HOUR & ":" & @MIN & " Day " & @MDAY & @CRLF); so I know when it reset Run(@ComSpec, @SystemDir) Sleep(1000) Send("Telnet") Sleep(500) Send("{ENTER}") Sleep(1000) Send("open 192.168.0.1") Sleep(500) Send("{ENTER}") Sleep(1000) Send("example"); username Sleep(500) Send("{ENTER}") Sleep(1000) Send("example"); password Sleep(1000) Send("{ENTER}") Sleep(2000) Send("reboot") Sleep(500) Send("{ENTER}") Sleep(5000) ProcessClose("telnet.exe") ProcessClose("cmd.exe") BlockInput(0) Exit By the way, This is activated by another script when I'm away that checks for internet connection.
-
Are you running Vista or XP?
-
Is it possible for the soundplay function to play a WAV file inside a DLL File?
-
This is really cool!
-
*Gears start to turn*
-
Nice! Unfortunately I can't use the function keys on my keyboard though. Not always willing to work Plus, aren't some of those keys already registered by the game or can AutoIt override it?
-
Just decided to throw this out here. It's a script I recently made for a PC game called Age of Empires II [or III] that automates cheat input . The commands are Ctrl+Shift+F/G/W/S/C. The script functions are self-explanatory. Enjoy! CODE Global $foodam Global $goldam Global $stoneam Global $woodam Opt("SendKeyDelay", 2) HotKeySet("^F", "_food") HotKeySet("^G", "_gold") HotKeySet("^W", "_wood") HotKeySet("^S", "_stone") HotKeySet("^C", "_cobra") While 1 Sleep(500) WEnd Func _food() ;1000 food Do $foodam += 1 send("{ENTER}") sleep(200) Send("cheese steak jimmy's") sleep(200) send("{ENTER}") sleep(200) Until $foodam = 10 Global $foodam = 0 EndFunc Func _gold() ;1000 gold Do $goldam += 1 send("{ENTER}") sleep(200) Send("robin hood") sleep(200) send("{ENTER}") sleep(200) Until $goldam = 10 Global $goldam = 0 EndFunc Func _wood() ;1000 wood Do $woodam += 1 send("{ENTER}") sleep(200) Send("lumberjack") sleep(200) send("{ENTER}") sleep(200) Until $woodam = 10 Global $woodam = 0 EndFunc Func _stone() ;1000 stone Do $stoneam += 1 send("{ENTER}") sleep(200) Send("rock on") sleep(200) send("{ENTER}") sleep(200) Until $stoneam = 10 Global $stoneam = 0 EndFunc Func _cobra() ;Cobra car w/ machine guns Do $cobraam += 1 send("{ENTER}") sleep(200) Send("how do you turn this on") sleep(200) send("{ENTER}") sleep(200) Until $cobraam = 20 Global $cobraam = 0 EndFunc
-
I'm trying to design a script that opens all the cd drives but my coding isn't that great yet What am I doing wrong? : CODE #include <Array.au3> $trays = StringSplit("A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,Y,X,Z", ",") ;For $t=$trays[0] to $trays[26] do CDTray($trays & ":", "open") until $trays = "Z" exit Also, is there a way to make it run only to open one drive?
-
If you put it back up we could try to fix it. No point in giving up yet.
-
If you get the chance I'd be overjoyed. It's a fun script; I ran it and walked out of the room. My dad walked in and was like WTF?? Edit: English error