Login


    [Python]Is it possible to check if specific app is running?

The learning process never seems to end, especially with coding... .. .
Moderator: aloycasmir

Postby Arvis » 04 Mar 2010, 14:10


SO I have little question, is there a way in Python to check if specific app is running or not, let's say app.exe. It would be really nice to have small code example or whatever if it's possible. :)


Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Postby AJ___92 » 04 Mar 2010, 16:26


appswitch for python 1.4.5
apptools for 1.9.x :)

its a module
Image
Developer
Developer

Posts: 1812

Joined: 16 May 2008, 16:34

Location: Today in Germay, Tomorrow everywhere !!!

Phone model: N8

Firmware: hacked Belle



Postby Arvis » 04 Mar 2010, 16:42


Thanks, hopefully 1.9.* modules will work on all next Python releases. :)
Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Postby Arvis » 05 Mar 2010, 13:32


Yeah apptools got what I need, just one more simple question...
appuif.app.orientation='landscape' makes script go landscape in script shell but everything else is portrait.
Will it make menu landscape too if script is compiled? I mean when script is compiled script shell won't show up unless I make it to somehow, but something has to be landscape mode. :)
Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Postby AJ___92 » 05 Mar 2010, 15:37


i dont know if that works :(
btw dont forget that N82 has no landscape-mode in standby -.-
Image
Developer
Developer

Posts: 1812

Joined: 16 May 2008, 16:34

Location: Today in Germay, Tomorrow everywhere !!!

Phone model: N8

Firmware: hacked Belle



Postby Arvis » 05 Mar 2010, 16:16


I know it hasn't. I want to make all other stuff landscape which is possible. Hidding app didn't work, it's landscape only when app is visible. :/
Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Postby AJ___92 » 05 Mar 2010, 16:32


i know that it wont work :P
get rotateme xD
Image
Developer
Developer

Posts: 1812

Joined: 16 May 2008, 16:34

Location: Today in Germay, Tomorrow everywhere !!!

Phone model: N8

Firmware: hacked Belle



Postby Arvis » 05 Mar 2010, 16:57


I want to make it go landscape when gallery app is open, not autorotate or all the time.
Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Postby AJ___92 » 05 Mar 2010, 17:02


sounds impossible with standart modules...
Image
Developer
Developer

Posts: 1812

Joined: 16 May 2008, 16:34

Location: Today in Germay, Tomorrow everywhere !!!

Phone model: N8

Firmware: hacked Belle



Postby Arvis » 05 Mar 2010, 20:22


Yeah, but I believe it wouldn't be hard for C++ dev to create extension. :P
Symbian Freak
Symbian Freak

Posts: 1612

Joined: 28 Sep 2008, 19:49

Location: Latvia

Phone model: Nokia N8

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 2 guests

User Menu

Online Friends

Birthdays