473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to Refresh the Desktop window with python script

Hi everybody

I have couple of questions,

1) How can i refresh my desktop window(wallpaper), using the python
script, after pasting some data on the desktop.

2) How can i run an exe file from the python

3) How can i get the information of a machine like "computer name",
"mac address", "ip address" and "OS on that system".

Thanks in advance for having given a thought on my questions.

Regards
Yogi

Dec 13 '05 #1
1 3004
mu*******@yahoo.com wrote:
Hi everybody

I have couple of questions,

1) How can i refresh my desktop window(wallpaper), using the python
script, after pasting some data on the desktop.

The is *way* too operating system and window system dependent to answer
without more knowledge.
2) How can i run an exe file from the python

One way is os.system: http://docs.python.org/lib/os-process.html#l2h-1692
Another more comprehensive method can be found in the subprocess module:
http://docs.python.org/lib/module-subprocess.html
3) How can i get the information of a machine like "computer name",
"mac address", "ip address" and "OS on that system".

The platform module can give lots of such info:
http://docs.python.org/lib/module-platform.html

Good Luck,
Gary Herron
Thanks in advance for having given a thought on my questions.

Regards
Yogi

Dec 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
11
by: Tom Szabo | last post by:
Hi, In order to preserve some settings and avoid cookies I have thought of the following trick: I simply create an array as the property of the window: window.aList = new Array(); and...
1
by: kiplring | last post by:
I wrote a program which draw a dancer at cornor of desktop. ( I Accessed through hDC) But It has a problem. I remains all trait at the desktop until I invoke any Redraw( Refresh) action - click,...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
3
by: Steve Wark | last post by:
I have created a ASP.NET application and created two forms within the application (Webform1.aspx & Webform2.aspx). On the first form I have placed a textbox (TextBox1) and a button, which when...
5
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the...
12
by: jeremyvoros | last post by:
So, I've written my first GUI app in python. I've turned it into a binary .exe and .app that runs on Windows and Mac respectively, but on my Linux box, where I wrote the thing, I still have to...
1
by: muttu2244 | last post by:
Hi Everybody Here i have a query for you, that is How can I refresh the windows desktop using the python script? Thanks in advance for having given a thought on my query. Regards
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.