maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] N900 Notifier (https://talk.maemo.org/showthread.php?t=64647)

antezz 2010-10-31 23:26

Re: [Announce] N900 Notifier
 
So you got it working?

Ye growl need to run its the program that shows notifications. If you wanna hide the CMD window from server.py you can just make a bat-file containing "python c:\path\to\file\server.py" then make a .vbs file containing :

Quote:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "d:\path\to\bat\n900growl.bat" & Chr(34), 0
Set WshShell = Nothing
then you run the .vbs file and it should run the bat file with no window. thats what i did since i failed with making a service of the .py file with AnySrv, it just started and stopped lol, well well it works atleast.

And on N900 theres alot of ways to run stuff in background. a noob-friendly and simple way is to use the "nohup client.py &" command

badboyuk 2010-10-31 23:30

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by antezz (Post 859051)
So you got it working?

Ye growl need to run its the program that shows notifications. If you wanna hide the CMD window from server.py you can just make a bat-file containing "python c:\path\to\file\server.py" then make a .vbs file containing :



then you run the .vbs file and it should run the bat file with no window. thats what i did since i failed with making a service of the .py file with AnySrv, it just started and stopped lol, well well it works atleast.

And on N900 theres alot of ways to run stuff in background. a noob-friendly and simple way is to use the "nohup client.py &" command

i still get no notification tho? I havent done the bat file or vbs yet as I need to see why its not working. Can i use notepad to copy and paste that code then rename to .vbs?

badboyuk 2010-10-31 23:35

Re: [Announce] N900 Notifier
 
oh it worked!

Although it came up like this
http://i55.tinypic.com/2dc8jdg.png

badboyuk 2010-10-31 23:39

Re: [Announce] N900 Notifier
 
okay I managed to fix that error and now growl displayed a notification! and no errors this time.
For some reason windows had removed the variable I added, so just added it in again.

I shall try and create that vbs file

antezz 2010-10-31 23:41

Re: [Announce] N900 Notifier
 
Haha, gratz! making the bat and vbs file is easy cake. :3

badboyuk 2010-10-31 23:53

Re: [Announce] N900 Notifier
 
ive got the bat file which i used notepad to make but i cant get the vbs file. Can you recommend a simple or good app?

antezz 2010-10-31 23:59

Re: [Announce] N900 Notifier
 
you can use notepad, just rightclick and make a text file name it "something.vbs" open it with notepad and copy paste the vbs code in my previous post then you edit the file path to the bat of yours.

Then you run the .vbs file just by dubbelclick it, and tada! You should now see nothing.. but still get notifications thru growl.

badboyuk 2010-11-01 00:06

Re: [Announce] N900 Notifier
 
yeah i already did but it didnt work....i just checked again and its all working now!
I realised 1 of the major problems.....i can only have 1 set variable in windows, so everytime i added a new or diff 1, it would remove the previous 1, so any error messages i wasnt seeing them until i went to command prompt and ran them from there to see.

This is great!

Thank you very much Antez & to others for the help!

antezz 2010-11-01 00:10

Re: [Announce] N900 Notifier
 
are you separating them with ; ?

c:\python;c:\growl

like that?

Edit: if you wanna thank me theres a "thank you"-button. :rolleyes:

badboyuk 2010-11-01 00:26

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by antezz (Post 859095)
are you separating them with ; ?

c:\python;c:\growl

like that?

Edit: if you wanna thank me theres a "thank you"-button. :rolleyes:

:O ohhhh thanks bro!

An ive hit the button :) Cheers man


All times are GMT. The time now is 02:00.

vBulletin® Version 3.8.8