Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags

8 Posted Topics

Member Avatar for dz0004455

Well, I dont know where you want to insert the text, aka: between the <body> and </body> or between the </body> and </html> but, if you need to write at a specific line you could always copy the text before you write to it, then append the file with open(file, …

Member Avatar for dz0004455
0
238
Member Avatar for Capt.Micro

Hi all, Ive been working on this script for a while, but, when I try to send it I get an IO error because, from what I see, its not saving the "temp.jpg" file. Not so important, the save function has the same problem. All the ports are okay, And …

Member Avatar for Capt.Micro
0
252
Member Avatar for nemtaro

I don't know what "X" is but, I do knoe how to click and move the mouse in python, you will need PyWin to do it. You simple need to use win32api like so. [CODE=python] import win32api import win32con from ctypes import windll import time def m_move(x,y): windll.user32.SetCursorPos(x,y) def l_click(x="current", …

Member Avatar for nemtaro
0
528
Member Avatar for Shank89

I think he means, check if the tank's cords are less than -10 or greater than 10, and if so take action, like set it to the 10 or -10, maybe like so. [CODE] #positive numbers if get_ypos > 10: set_ypos(10) if get_xpos > 10: set_xpos(10) #negitive numbers if get_ypos …

Member Avatar for Shank89
0
134
Member Avatar for tondeuse34

For more lines of code/indentations, its the same exact thing, like so. [CODE] def MyFunction(x): for y in range(0, x): print y print "====" [/CODE]

Member Avatar for tondeuse34
0
130
Member Avatar for Capt.Micro

Hi everyone, I have looked through the ctypes documentation, but can't find anything about making the mouse click, I mean, I can get it to move, but not click. Thanks in advance.

0
62
Member Avatar for tondeuse34

Hello, Looking at your code, you only need one thing changed, the if parts part. [CODE] #Start of the program print "Welcome To the Server!" #Varible i'm using for later on in the program a = 0 #The list of user names user_list = ['sam','bob','tom'] #And list of passwords pass_list1 …

Member Avatar for tondeuse34
0
124
Member Avatar for tondeuse34

Hello, I have looked through your code and made a few modifications. I have added the operation buttons to the tk window, and, messing the code up myself, have found a way to make it work. [code=python] from Tkinter import * root = Tk() #The Start of the calculator using …

Member Avatar for Capt.Micro
0
121

The End.