|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Reading data from a running application
is there any way i can read information from a running application(ie a game) and store it using python? or have python interact with the game?
like Code:
info = open("application running in memory","r")
or use python to send key strokes to the game |
|
#2
|
|||
|
|||
|
Quote:
In other words, a training bot While I've never tried it myself and don't think its impossible, I do however know that most games have measures in place to prevent you from accessing them in this way. In other words you're looking at a lot of work for very little payoff. |
|
#3
|
|||
|
|||
|
no the game that i wanna try it out for is not the sort of game you can use a training bot for ..... although it is an online game there are no skills or anything like that you need to train....
how ever you do get kicked off line if you are inactive for a set amount of time ... i would to make a program to keep me on and alert me when ever a certain message is displayed also if im opening a file for example Code:
file1= open("C:\Documents\new","r")
it doesnt find the path because of the \n as a new line character ... any way round this? |
|
#4
|
|||
|
|||
|
I think the way arround this is to either double-up the back-slashes i.e.
Code:
file1 = open("C:\\Documents\\new", "r")
or to just use slashes i.e. Code:
file1 = open("C:/Documents/new", "r")
Both should work. |
|
#5
|
|||
|
|||
|
thankx ...
what about the other problem .... is there any way to read data from a running app? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Reading data from a running application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|