Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Finding location within a premises
Post: Finding location within a premises

What are the options of building an app/web application to track people within a premises/building accurately.Does python have any geolocation packages to help build such an app/application. If there ...
metro17 General Coding Help 1 1,338 Jan-19-2021, 11:29 PM
    Thread: Redistributing column data
Post: RE: Redistributing column data

(Nov-28-2020, 12:15 PM)Larz60+ Wrote: Please make an effort, show your code, and ask specific questions when a problem arises. We are glad to help, but won't write the code for you. Dear Larz60+, I ...
metro17 Data Science 2 1,687 Nov-28-2020, 05:53 PM
    Thread: Redistributing column data
Post: Redistributing column data

Hello All, Sample data from one column in my SQLServer database: ColumnA ,Take one tablet first of every month ,Take one tablet every 30 days ,Take 1 tablet every 7 days ,Take one tablet every twenty...
metro17 Data Science 2 1,687 Nov-28-2020, 05:09 AM
    Thread: pygetwindow help
Post: pygetwindow help

>>> import pyautogui as pag >>> import pygetwindow as gw >>> import os >>> pag.pause = 2 >>> pag.FAILSAFE = True >>> os.startfile(r"C:\ProgramData...
metro17 General Coding Help 0 5,900 Feb-11-2020, 09:12 AM
    Thread: Automating Windows GUI applications
Post: RE: Automating Windows GUI applications

>>> app.start(r"C:\Program Files\Microsoft Assessment and Planning Toolkit\bin\MapToolkit.exe") Traceback (most recent call last): File "C:\Users\ABCD\AppData\Local\Continuum\anaconda3\lib\...
metro17 General Coding Help 4 12,306 Feb-10-2020, 09:46 AM
    Thread: Automating Windows GUI applications
Post: Automating Windows GUI application

from pywinauto import application app = application.Application() app.start("Notepad.exe")The above code launches a notepad. But when I try to run this.It throws and error and fails to launch the exec...
metro17 General Coding Help 4 12,306 Feb-06-2020, 09:20 AM
    Thread: Automating Windows GUI applications
Post: Automating Windows GUI applications

from pywinauto import application app = application.Application() app.start("Notepad.exe") The above code launches a notepad. But when I try to run this this .It throws and error and fails to launch...
metro17 General Coding Help 4 12,306 Feb-06-2020, 07:16 AM
    Thread: MAP tool automation
Post: RE: MAP tool automation

no command line
metro17 GUI 3 2,022 Jan-14-2020, 05:15 PM
    Thread: MAP tool automation
Post: MAP tool automation

>>>import pyautogui as pag >>> import os >>> os.startfile("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Assessment and Planning Toolkit\Microsoft Assessmen...
metro17 GUI 3 2,022 Jan-14-2020, 08:50 AM
    Thread: delete from list
Post: RE: delete from list

how can I randomly pick a key,value pair from a dictionary? ..and then assign it to a variable and use the variable to delete from the dictionary ..and use the key value pair captured in the variable ...
metro17 General Coding Help 8 3,525 Nov-19-2019, 05:36 AM
    Thread: delete from list
Post: RE: delete from list

thanks Buran import random >>> Alldict = {'clubsacesmin':1,'clubsacesmax':11,'diamondsacesmin':1,'diamondsacesmax':11} >>> n = 0 >>> while n < 2: ... pick = (random....
metro17 General Coding Help 8 3,525 Nov-14-2019, 09:29 AM
    Thread: delete from list
Post: delete from list

how do I delete values from a list taking user input ? >>> animals = [a,c] = [1,2] >>> print(a) 1 >>> print© 2 >>> print(animals) [1, 2] >>> pick = in...
metro17 General Coding Help 8 3,525 Nov-13-2019, 04:28 AM
    Thread: Create a directory structure across many servers
Post: Create a directory structure across many servers

I have a text file WITH 7 servers as below ABCD EFFG IJKL MNOO QRST UBVW XYZZ I need to connect to each of these servers and Create a directory structure similar to this E:\Data\Dumps in all the a...
metro17 General Coding Help 1 1,753 Nov-05-2019, 10:51 AM
    Thread: size of a windows folder
Post: size of a windows folder

Is it possible to limit size of a windows folder ? preferably using python or any other way? Thanks
metro17 General Coding Help 1 1,776 Nov-03-2019, 03:32 PM
    Thread: auto supply values to a python script(function) from text file
Post: RE: auto supply values to a python script(function...

I do not want to manually enter those values. As you see I need to enter them 150 times starting from 30...1 So is there a way I can have those 150 lines of user input into the code automatically? Tha...
metro17 General Coding Help 4 2,532 Oct-26-2019, 01:15 AM
    Thread: auto supply values to a python script(function) from text file
Post: auto supply values to a python script(function) fr...

I need to provide values to my python script which is asking for the following prompts. TotalPeople = int(input("Please enter number: ")) Min = int(input("Pleas...
metro17 General Coding Help 4 2,532 Oct-25-2019, 02:55 PM
    Thread: Replace string in many files in a folder
Post: Replace string in many files in a folder

This code changes a string in 1 text file in python s = open("sample.txt").read() s = s.replace('abcd', 'efgh') f = open("mount.txt", 'w') f.write(s) f.close()How do I change a single string ex: from ...
metro17 General Coding Help 8 5,595 Oct-14-2019, 06:01 AM
    Thread: Chatbot
Post: Chatbot

import random greetings = ['hola', 'hello', 'hi', 'Hi', 'hey!','hey'] question = ['How are you?','How are you doing?'] responses = ['Okay',"I'm fine"] question1 = ['Install Type'] responses1 = ['AOIns...
metro17 Data Science 1 1,674 Sep-27-2019, 09:48 AM
    Thread: Chatbot
Post: Chatbot

How do I auto collect the user information like UserID,username,emailaddress automatically once the user starts talking to the chatbot. Chatbot is restricted to my office domain and so is the user. Ar...
metro17 General Coding Help 2 11,202 Sep-19-2019, 06:47 AM
    Thread: Hangman
Post: RE: Hangman

This is what I ended up with and it works good. Please advise more efficient ways. Appreciate the responses. def cw(): n = 0 print("Welcome to Hangman !") print("You have 8 guesses left"...
metro17 General Coding Help 4 3,020 Sep-18-2019, 09:48 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020