Search found 52 matches

by oftit
Sat Jun 25, 2011 11:43 am
Forum: Coding Questions
Topic: Finding the directory where the .exe file is
Replies: 4
Views: 1681

Re: Finding the directory where the .exe file is

My bad it works. Thank you very much
by oftit
Sat Jun 25, 2011 10:55 am
Forum: Coding Questions
Topic: Finding the directory where the .exe file is
Replies: 4
Views: 1681

Re: Finding the directory where the .exe file is

Alright when I use ProgramFilename() save the .exe file in some directory, and right click on a random file, and say "Open With...", and I choose my program that I just saved, the ProgramFilename() will now be the directory where the random file is placed????
by oftit
Fri Jun 24, 2011 9:23 pm
Forum: Coding Questions
Topic: Finding the directory where the .exe file is
Replies: 4
Views: 1681

Finding the directory where the .exe file is

Hello all

I've been trying to find out how to find the directory to the .exe file that is executing. Because when I use GetCurrentDirectory() I get the directory where the program is loaded from. Like when I right click on "textFile.txt" and choose "Open with..." and then select the .exe program ...
by oftit
Thu Apr 21, 2011 9:57 am
Forum: PureFORM & JaPBe
Topic: PureLPRINT library : LPRINT functions (direct LPT access)
Replies: 42
Views: 80927

GNOZAL's LPRINT lib

Hello all

I've been searching around, and found gnozal's LPRINT lib for receipt printers. I just always dont know how to work these things. I tried his example code and installed the "program installment" that followed with it. I compiled it and PB says linker error. I just dont know how to use ...
by oftit
Thu Feb 10, 2011 8:49 pm
Forum: Coding Questions
Topic: Press key while on a full screen game
Replies: 4
Views: 1242

Re: Press key while on a full screen game

bobobo: Not my own program. While another program is runnning.
Rook: I think this works, while having a full screen program runnning:
;/ Author : Kale / Droopy

; Return pointer to BMP SnapShot

Global CaptureScreenWidth , CaptureScreenHeight , CaptureScreenBMPHandle

Procedure CaptureScreenPart ...
by oftit
Thu Feb 10, 2011 1:48 pm
Forum: Coding Questions
Topic: Press key while on a full screen game
Replies: 4
Views: 1242

Press key while on a full screen game

Hello all

How do you let the program to push a key while playing a full screen game? Iv'e been trying with keybd_event but did not succeed?

Thank you
by oftit
Tue Feb 01, 2011 5:25 pm
Forum: Coding Questions
Topic: Send mail with AWPB in UTF-8
Replies: 0
Views: 795

Send mail with AWPB in UTF-8

Hello all

I use AWPB for mail stuff. I tried to send a chinese letter to myself and when I opened the mail with Thunderbird the chinese letters were converted to questionmarks "?".

So my questions is how do you send mails with UTF-8/Chinese letters with AWPB?

Thank you
by oftit
Sun Jan 30, 2011 5:30 pm
Forum: Coding Questions
Topic: Base64 chinese letters
Replies: 8
Views: 3878

Re: Base64 chinese letters

YEEEEEES. Trond you are the man :D
by oftit
Sun Jan 30, 2011 4:53 pm
Forum: Coding Questions
Topic: Base64 chinese letters
Replies: 8
Views: 3878

Re: Base64 chinese letters

Ok. The string is in UTF-8. But I really still don't know how?

Could you please post a code on how to do it?
by oftit
Sun Jan 30, 2011 2:48 pm
Forum: Coding Questions
Topic: Base64 chinese letters
Replies: 8
Views: 3878

Re: Base64 chinese letters

Oh ok. I tried it with this code: out$ = Space(5000)
Base64Decoder(@str$, StringByteLength(str$), @out$, 5000)
MessageRequester("", PeekS(@Out$, -1, #PB_UTF8)) When I compile it with unicode turned on I get strange signs. When I compile it in nonunicode I get the right letters, but the chinese ...
by oftit
Sat Jan 29, 2011 11:56 pm
Forum: Coding Questions
Topic: Base64 chinese letters
Replies: 8
Views: 3878

Re: Base64 chinese letters

Ok. But the mail was compiled in ASCII, but has some unicode characters in it. So when I compile the program in nonunicode the program will decode the mail without the unicode letters. But some place in the encoded text, there has to be used two bytes so the unicode can appear. So my question is ...
by oftit
Sat Jan 29, 2011 3:50 pm
Forum: Coding Questions
Topic: Base64 chinese letters
Replies: 8
Views: 3878

Base64 chinese letters

Hello all

I've been trying to read an mail that has been encoded i base64. When I read the mail with Thunderbird it reads the whole thing correctly. The mail contents ascii characters and chinese letters (unicode i guess). But when I try to read the whole mail the chinese letters are converted to ...
by oftit
Sun Dec 05, 2010 3:11 pm
Forum: General Discussion
Topic: Energi consumption difference
Replies: 3
Views: 982

Re: Energi consumption difference

Oh ok. Thank you.
by oftit
Sun Dec 05, 2010 1:57 pm
Forum: General Discussion
Topic: Energi consumption difference
Replies: 3
Views: 982

Energi consumption difference

Hi all

Does the computer use more energy by connecting to the internet and checking mails than doing delay()?
In code:
Repeat
ConnectmailServer()
Check mails()
DisconnectMailServer()
ForEver

Vs.

Repeat
ConnectmailServer()
Check mails()
DisconnectMailServer()
Delay(10000)
ForEver

Which one ...
by oftit
Sun Dec 05, 2010 12:58 am
Forum: Coding Questions
Topic: Delete email from pop3 server
Replies: 2
Views: 806

Re: Delete email from pop3 server

Oh ok. Thank you.

I used the *pop\_DELE(index) method. Thank you. It works.