Jump to content

blckpythn

Active Members
  • Posts

    146
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

blckpythn's Achievements

  1. Can you repost the download link?
  2. I like it, one thing I would change is the decimal increase in cookies. After only a few minutes I managed to get 74.89999999999 cookies. Maybe after the counter has reached 1.0+ cookies per second, remove the decimals from the current cookie count? In fact, you may want to strip them entirely to avoid memory issues later.
  3. You can build a small GUI that prompts for it or use two Input Boxes. Here's a GUI example: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Opt("GUIOnEventMode", 1) $fLogin = GUICreate("Enter Credentials", 450, 200) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") $lText = GUICtrlCreateLabel("Please enter username and password", 45, 16, 340, 28, $SS_CENTER) $iCredsUser = GUICtrlCreateInput("", 120, 55, 265, 20) $iCredsPass = GUICtrlCreateInput("", 120, 85, 265, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_PASSWORD)) $lUser = GUICtrlCreateLabel("Username:", 10, 55, 95, 20, $SS_RIGHT) $lPass = GUICtrlCreateLabel("Password:", 10, 85, 95, 20, $SS_RIGHT) $bRun = GUICtrlCreateButton("Run", 16, 160, 100, 30) $bCancel = GUICtrlCreateButton("Cancel", 317, 160, 100, 30) GUICtrlSetOnEvent(-1, "_Exit") GUISetState(@SW_SHOW) While 1 Sleep(100) WEnd Func _Exit() GUIDelete($fLogin) Exit EndFunc ;==>_Exit Users are usually prompted for credentials when running something that requires administrative access anyhow, have you tried #requireadmin?
  4. The help file is a wonderful thing. https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm
  5. #include <AD.au3> _AD_Open() ConsoleWrite(_AD_GetObjectAttribute(@UserName, "telephoneNumber") & @CRLF) _AD_Close() Works for me.
  6. You might also benefit from NetDom.
  7. Mind explaining too since your video is only 360p? Is it the text color? Because that doesn't sound too serious.
  8. The FileListToArray method doesn't return the whole path, only the filenames. So unlike reading a file with the full paths, you would have to specify the path leading up to the filenames.
  9. Arrays and For loops. #include <File.au3> Global $array Global $array2 _FileReadToArray("C:\users\%username%\desktop\animal.txt", $array) _FileReadToArray("C:\users\%username%\desktop\file2.txt", $array2) For $i = 1 To $array[0] _ReplaceStringInFile($array2[$i], "something", $array[$i]) Next In this example file2.txt has: C:\users\%username%\desktop\mypet-1.txt C:\users\%username%\desktop\mypet-2.txt C:\users\%username%\desktop\mypet-3.txt C:\users\%username%\desktop\mypet-4.txt If you want to change the text for all txt files in a directory until you run out of words in your animals.txt you can replace: _FileReadToArray("C:users%username%desktopfile2.txt", $array2) With $array2 = _FileListToArray("C:path-to-folder-with-myfiles") And change the ReplaceString function to_ReplaceStringInFile("C:path-to-folder-with-myfiles" & $array2[$i], "something", $array[$i]) *Edited for a few revisions after I reread replacing the string instead of simply writing it to the file.
  10. I'm not saying that you can't create apps based on that, just that people will be very skeptical of your intentions. Not only that but any code or suggestions provided could likely be used by those with poor intentions. That's half the reason that discussing games is against the rules.
  11. I've tried this in the past, Ninite detects this and shows itself again.
  12. Do your paths need quotes? Example: FileCopy('"' & $source & '"', '"' & $dest & '"', 9)
  13. PixelSearch should work fine with most applications, but not for programs that use DirectX or OpenGL, for which you won't get any help.
  14. I only looked through your code briefly, but what sets this apart from the native INI read/write functions?
×
×
  • Create New...