Re: [PD] IP address in windows?

2012-01-04 Thread Epic Jefferson
This worked on Ubuntu for me #N canvas 440 77 450 300 10; #X obj 27 107 shell; #X msg 27 13 ifconfig rausb0; #X obj 27 134 route inet; #X obj 27 171 unpack s s s s; #X symbolatom 27 216 10 0 0 0 - - -; #X msg 27 36 ifconfig wlan0; #X msg 27 58 ifconfig eth0; #X connect 0 0 2 0; #X connect 1 0 0 0;

Re: [PD] IP address in windows?

2012-01-04 Thread Epic Jefferson
Hey guys, has anyone solved this issue for windows 7? I've tried to use the getip.bat file solution but the cmd just opens and closes instantly, and nothing gets returned to Pd through the [flatspace/popen] object. Perhaps I'm placing the getip.bat file in the wrong place, but I tried the same patc

Re: [PD] IP address in windows?

2011-01-29 Thread patko
I've tried on windows vista it works like a charm: Microsoft Windows [version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. Tous droits réservés. C:\Users\patko>getip.bat 192.168.0.21 --- Please check with 'ipconfig' command into cmd prompt if your computer has an IPv4 adress. In pd pat

Re: [PD] IP address in windows?

2011-01-29 Thread Pierre Massat
Thank you both for your replies. As you can imagine i'm not at all comfortable with batch files. I know how to create one from a txt file, but that's about it. getip.bat doesn't work for me. Nothing happens. Even when i try this : @echo off for /F "usebackq tokens=14" %%i in (`ipconfig ^| find /i

Re: [PD] IP address in windows?

2011-01-28 Thread patko
Hello Pierre, you can get ip adress with windows cmd In pd-extended there is [flatspace/popen] object for that, you need to create a file called 'getip.bat' containing those lines: @echo off for /F "usebackq tokens=14" %%i in (`ipconfig ^| find /i "IPv4"`) do echo %%i and then you can grab t

Re: [PD] IP address in windows?

2011-01-28 Thread Pedro Lopes
Even if there's no shell/system object for windoes (I'm not using win so I cannot really answer) you can easily create a batch script (a windows shell script) that saves the output of ipconfig in a file. Then parse the file with pd and extract the ip from there. It can even by dynamic in the sens

[PD] IP address in windows?

2011-01-28 Thread Pierre Massat
Hi all, Is it possible to get my computer's IP from inside Pd? I know it's possible in Linux using the shell object, but it doesn't exist in windows. I'm trying to make a game requiring two players to play on two different computers, and it'd be very annoying if each user had to find her IP before