File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change
1
+ path_to_bot = ""
1
2
import sikuli .Sikuli
2
3
3
4
@@ -12,15 +13,9 @@ def __init__(self, program):
12
13
13
14
def write (self , transaction ):
14
15
#write the transaction record to a text file
15
- transaction_file = open (
16
-
17
- record_app = App ("Notepad" )
18
- if not record_app .window ():
19
- App .open ("Notepad" ); wait (1 )
20
- record_app .focus ()
21
- type (self .convert_trans_to_string (transaction ))
22
- wait (0.5 )
23
- App .focus ("Magic Online" )
16
+ transaction_file = open (path_to_bot + "transaction_records/transactions.txt" , "w" )
17
+ current_transaction = self .convert_trans_to_string (transaction )
18
+ #now write the transaction to the file
24
19
25
20
def convert_trans_to_string (self , transaction ):
26
21
"""takes the transaction variable created in Session class and converts it to string"""
You can’t perform that action at this time.
0 commit comments