Jump to content

Warmonger

Active Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Warmonger

  1. I'm thinking you are completely misled, and will have some serious explaining to do to Jon once he reads my pm. Anyways thanks for the free bumps.
  2. I built a launcher that uses ShellExecute() to load a hidden web page, with the users default browser. The problem im having is since it doesn't return the process handle or nothing. We end up with a process idling in the background. Is there any way to return a handle and close this process that would work on a global scale across all web browsers?
  3. You keep failing over and over again. This is NOT for automating a game. So it breaks none of the rules.
  4. I'm not discussing gaming, am i? No. I would suggest check yourself real quick.
  5. Would work. But wont meet my requirements. This program will be used by 1,000's of people daily for a official game, with all different kinds of browsers, so it needs to be more robust. ;~ Load Web Page $Shell = ObjCreate('Shell.Application') $Shell.ShellExecute('http://www.google.com', '', '', '', @SW_HIDE) And then doing. $Shell.Quit And $Shell = 0 But no success, process still exists maybe im doing something wrong?
  6. I built a launcher that uses ShellExecute() to load a hidden web page, with the users default browser. The problem im having is since it doesn't return the process handle or nothing. We end up with a process idling in the background. Is there any way to return a handle and close this process that would work on a global scale across all web browsers?
  7. WinSetTitle('[REGEXPTITLE:DSM;CLASS:ConsoleWindowClass]', '', 'Manager (Version ' & $nVersion & ')') But that still isn't good enough for me. It can be bypassed by renaming the executable.
  8. True, i've been very busy in Visual Studio so not much time to code. I just want to make sure a previous script I released was fine. Thanks.
  9. No one said anything about at the same time, autoit is not multi-threaded.
  10. Questions simple. If I register two AdlibRegister's in my script. Lets say the first one for 5 minutes and the second one for 10 minutes. When the fist AdlibRegister runs its second run it will be at the same time as the 10 minute AdlibRegister. Now my question is, will it only run the first AdlibRegister to trigger, or will it run them back-to-back until they both are done?
  11. Here's a update to this UDF (Shaggi I hope you don't mind just minor things). You can now use all 255 color combinations in a console, however you cannot Obfuscate your source no longer (bug). Removed: $FOREGROUND_X $BACKGROUND_X Added: $COLOR_X (1-255) #include <Console.au3> Dim $COLOR_ For $i = 1 to 255 Cout($i & ' ', $COLOR_ & $i) Sleep(10) Next While 1 = 1 Sleep(1000) WEndConsole.au3
  12. Look at WinWaitActive in the help file.
  13. An example of using AutoIt's binary mode for byte patching. This was a random boredom fiddle-diddle so don't expect it to be coded "properly". Source Code Code removed because it demonstrates patching a game bot.
  14. Very nice, exactly what im looking for. Would be nice to see a UDF for this.
  15. You can't compile win32 binarys to run on Linux. And thanks for info on WINE support.
  16. Blah... Didn't read the help file fully. Didn't realize it paused the script to execute the function. Thanks. Maybe next time ill read more before asking for support.
  17. Alright here's what I wanna do. I wanna make AdlibRegister run a function on a specific time (12:00am or whatever). How would I go about that? And having it keep following up day in and day out. I wanna say away from the main while loop as much as possible.
  18. My questions simple. About how much of the default AutoIt3 library works under WINE?
  19. Solved! The query results had to be stored into a new variable else it wont hold its value, then you must trim it. The Problem Select user_no From [USER_CHARACTER] Where character_name = 'Warmonger ' <-- Trailing Apostrophe On New Line The Fix $User_No = StringTrimRight($Result.GetString, 1)
  20. Still doesn't work any of them above. You have to store the $Result.GetString into a new variable to keep its value during the next sql connection. But for some reason it doesn't update the sql result like its suppose to (its not my querys). Even when I pass off the result to another function. It still doesn't update the result. This is weird...
  21. Thanks. Problems solved.
  22. $PID_1 = ProcessExists('process.exe') If $PID_1 Then ProcessClose($PID_1) And the process name is usually the name of the file.
  23. Thank you, this works. I just couldnt understand the help files at the time. Now my next question is. How do you end a function? Example: Func _Function() $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $sqlCon = ObjCreate('ADODB.Connection') $sqlCon.Open('DRIVER={SQL Server};SERVER=SERVER-0BEF6B28;DATABASE=AutoIt;UID=test;PWD=test;') If @error Then TCPSend($sSocket[$x], 'Server Error Code: 10060') ;~ End The Function Here $Query_1 = "Insert Into VERSION Values (1, 'patch1.zip', 'patch1.zip', 0)" $sqlCon.Execute($Query_1) EndFunc Is this the best approach? Or is there a "ExitFunc" lol Global $z = 0 Func _Function() Do $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $sqlCon = ObjCreate('ADODB.Connection') $sqlCon.Open('DRIVER={SQL Server};SERVER=SERVER-0BEF6B28;DATABASE=AutoIt;UID=test;PWD=test;') If @error Then TCPSend($sSocket[$x], 'Server Error Code: 10060') ;~ ExitLoop? $Query_1 = "Insert Into VERSION Values (1, 'patch1.zip', 'patch1.zip', 0)" $sqlCon.Execute($Query_1) Until $z = 0 EndFunc
  24. I'm still lost, having massive brain farts today, and not too familiar with objects yet. Maybe you could provide an example? Edit: Would checking ADO states be of any help? Example: ;~ Check If SQL Is Ready If $sqlCon.State = 0 Then MsgBox(16, 'Error', 'Cannot Connect To SQL Server') Exit EndIf
  25. How would I go about checking a connection with SQL server, without autoit throwing a "AutoIt Error". Below is the connection string im using to connect to MSSQL. Basicly I want to check if SQL exists and is connect-to-able before running the querys. $sqlCon = ObjCreate('ADODB.Connection') $sqlCon.Open('DRIVER={SQL Server};SERVER=SERVER-0BEF6B28;DATABASE=AutoIt;UID=test;PWD=test;') $Query_1 = "Insert Into VERSION Values (1, 'patch1.zip', 'patch1.zip', 0)" $sqlCon.Execute($Query_1) Error: "The requested action with this object has failed" $sqlCon.Open('DRIVER={SQL Server};SERVER=' & $Server & ';DATABASE=Character;UID=' & $User & ';PWD=' & $Pass & ';')
×
×
  • Create New...