Not sure what you're trying to do, but if you are running a web server then.
OpenConsole()
PrintN(GetEnvironmentVariable("REMOTE_ADDRESS")) ; The IP address of the visitor
CloseConsole()
The exact name of the environment variable will depend on the server. Could also be "REMOTE_ADDR"
Search found 26 matches
- Tue Nov 17, 2009 1:48 pm
- Forum: Coding Questions
- Topic: Retreiving the Internet IP?
- Replies: 11
- Views: 1918
- Mon Oct 12, 2009 11:53 pm
- Forum: Coding Questions
- Topic: Email
- Replies: 4
- Views: 703
Re: Email
Ghost,
The nice thing about Gmail is that the focus is already set on UserName so you won't have to move the mouse. So then all you have to do is send your username then {TAB} then password, {TAB} again, and last {ENTER}. I think what you're looking for is in this thread.
http://www.purebasic.fr ...
The nice thing about Gmail is that the focus is already set on UserName so you won't have to move the mouse. So then all you have to do is send your username then {TAB} then password, {TAB} again, and last {ENTER}. I think what you're looking for is in this thread.
http://www.purebasic.fr ...
- Thu Oct 08, 2009 7:31 pm
- Forum: Coding Questions
- Topic: Serial Port Timeout Detection
- Replies: 6
- Views: 3440
Re: Serial Port Timeout Detection
Thanks for the replies.
So when the serial port 'times out' after an interval set by SerialPortTimeouts it just closes and disappears ?
I was hoping for something more useful - I suppose it is back to the kludge of using the API timer to periodically check if any characters have appeared in the ...
So when the serial port 'times out' after an interval set by SerialPortTimeouts it just closes and disappears ?
I was hoping for something more useful - I suppose it is back to the kludge of using the API timer to periodically check if any characters have appeared in the ...
- Wed Oct 07, 2009 9:24 am
- Forum: Coding Questions
- Topic: Serial Port Timeout Detection
- Replies: 6
- Views: 3440
Re: Serial Port Timeout Detection
Hi KH 1 thru 0,
Serial ports don't exactly time out, they are closed just like a file. Basically the host program says "if I do not see activity for X amount of time then close the port" that's how you get a timeout. What you need to do is look at the DCD line (Data Carrier Detect) if it is low ...
Serial ports don't exactly time out, they are closed just like a file. Basically the host program says "if I do not see activity for X amount of time then close the port" that's how you get a timeout. What you need to do is look at the DCD line (Data Carrier Detect) if it is low ...
- Mon Sep 21, 2009 4:54 am
- Forum: Coding Questions
- Topic: Executing an .exe file from within another pb app.
- Replies: 8
- Views: 1959
Re: Executing an .exe file from within another pb app.
I've not actually tried this yet but, would running it from a batch file fix the problem?
JP
JP
- Wed Sep 02, 2009 7:50 am
- Forum: Coding Questions
- Topic: Is basic a single line single instruction code language?
- Replies: 16
- Views: 2030
- Tue Sep 01, 2009 5:38 am
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] switch var1, var2
- Replies: 26
- Views: 5620
- Tue Aug 18, 2009 3:02 am
- Forum: Coding Questions
- Topic: ProgressBar on StatusBar?
- Replies: 12
- Views: 2483
- Tue Aug 18, 2009 2:28 am
- Forum: Coding Questions
- Topic: ProgressBar on StatusBar?
- Replies: 12
- Views: 2483
- Tue Aug 11, 2009 7:18 am
- Forum: General Discussion
- Topic: Program Layout
- Replies: 4
- Views: 1716
Re: Program Layout
Is there anywhere I could get a large size snippet of a Program that has a Menu and a Splash Screen. Examples are so small that I don't understand how they work with others.I'm 80 years old and I'm trying to re-write a
check register program that I wrote for dos years ago. A snippet of a Recipe ...
check register program that I wrote for dos years ago. A snippet of a Recipe ...
- Tue Aug 11, 2009 5:20 am
- Forum: Feature Requests and Wishlists
- Topic: My wishlist for PureBasic 4.50
- Replies: 103
- Views: 26021
I have code that I wrote 30 years ago and it makes no sense to me now. 20 years ago, I have to study it for a while. 10 years ago, I can read it and understand what it does easily. The whole idea behind the Basic language is readability. Basic was invenetd as an exercise in NL (Natural Language) it ...
- Sat Aug 08, 2009 11:05 pm
- Forum: Coding Questions
- Topic: AddKeyboardShortcut not working
- Replies: 13
- Views: 4020
I'll keep that in mind Kaeru. I'll just have to wait and see how the code evolves over time.
In this case I am re-creating an old dos program I wrote 10+ years ago. So I am attempting to create the same look and feel of the original program. It won't have any menus. The buttons are the menu so it's ...
In this case I am re-creating an old dos program I wrote 10+ years ago. So I am attempting to create the same look and feel of the original program. It won't have any menus. The buttons are the menu so it's ...
- Sat Aug 08, 2009 10:40 pm
- Forum: Coding Questions
- Topic: AddKeyboardShortcut not working
- Replies: 13
- Views: 4020
- Sat Aug 08, 2009 11:16 am
- Forum: Coding Questions
- Topic: AddKeyboardShortcut not working
- Replies: 13
- Views: 4020
- Sat Aug 08, 2009 9:10 am
- Forum: Coding Questions
- Topic: AddKeyboardShortcut not working
- Replies: 13
- Views: 4020