Never used it but I think there are ( at least ) 2 ways.
1: use Windows API like shown here: http://stackoverflow.com/questions/2443738/c-terminateprocess-function
2: use an external tool to kill the process(id) like: Shell/Run taskkill ( xp professional ) or tskill (xp home ) or pskill
Search found 54 matches
- Mon Dec 30, 2013 1:52 pm
- Forum: General category
- Topic: Terminate a "Shelled" Program Using FnxBasic
- Replies: 1
- Views: 6830
- Tue Dec 11, 2012 8:10 pm
- Forum: General category
- Topic: Force keyboard numberpad "INS"
- Replies: 1
- Views: 4885
Force keyboard numberpad "INS"
Not the best way i think but does this work?
Sendkeys "{INS}"
Sendkeys "{INS}"
- Sun Jan 15, 2012 3:40 pm
- Forum: General category
- Topic: MP3 Player
- Replies: 17
- Views: 27548
MP3 Player
Hmm, strange, i copied your code and made the change for the open statement.
Beside this, i suppose after something has been played it must be closed too?
Beside this, i suppose after something has been played it must be closed too?
- Sat Jan 14, 2012 11:12 am
- Forum: General category
- Topic: MP3 Player
- Replies: 17
- Views: 27548
MP3 Player
I found a problem when the path has spaces in it.
try this:
mci.lpstrcommand="open "+chr$(34)+filename+chr$(34)+" type mpegvideo alias mysound"
btw., i removed the shortname :)
try this:
mci.lpstrcommand="open "+chr$(34)+filename+chr$(34)+" type mpegvideo alias mysound"
btw., i removed the shortname :)
- Tue Jan 10, 2012 7:02 pm
- Forum: General category
- Topic: MP3 Player
- Replies: 17
- Views: 27548
MP3 Player
Did not try it but perhaps spaces
"Type -> " Type
"from -> " from
"Type -> " Type
"from -> " from
- Wed May 25, 2011 6:15 am
- Forum: General category
- Topic: Opening and reading a text file line by line
- Replies: 1
- Views: 4717
Opening and reading a text file line by line
You can use FileStream, something like this:dim filenaam as stringdim f as FileStreamdim line as stringfilenaam = "myfile.txt"if FileExists(filename)=true then f.Open(filename) while f.Position < f.Size line=f.ReadLine showmessage line wend ...
- Tue May 10, 2011 7:10 pm
- Forum: General category
- Topic: Lotto Program
- Replies: 4
- Views: 7515
Lotto Program
You don`t have to check numbers that are not made yet so something like this:number1 = RandomDo number2 = RandomLoop until (number <> number1)Do number3 = RandomLoop until (number <> number1) and (number <> number2) Do number4 = RandomLoop until (number <> number1) and (number <> n...
- Fri May 06, 2011 7:02 pm
- Forum: General category
- Topic: Lotto Program
- Replies: 4
- Views: 7515
Lotto Program
Make something that checks the number, something like this:Do number1 = RandomLoop until (number <> number2) and (number <> number3) 4,5,6 etc.Do number2 = RandomLoop until (number <> number1) and (number <> number3) 4,5,6 etc.I don`t want to spoil your programming fun so you can try it ...
- Mon Nov 29, 2010 2:56 pm
- Forum: General category
- Topic: keyboard led status & LED demo
- Replies: 8
- Views: 11556
keyboard led status & LED demo
Did not look into it yet but two remarks:
Image is a windows object, not a (real) data type as integer.
Using a record name and the same var name is not allowed?
Image is a windows object, not a (real) data type as integer.
Using a record name and the same var name is not allowed?
- Tue Nov 23, 2010 11:53 am
- Forum: examples
- Topic: input$ or equiv
- Replies: 12
- Views: 17251
input$ or equiv
I just wanted to give up because i could not find the right handle for input/output (and a little too busy...).
I`m glad for updates, i like the concept of fnxbasic but there is room for improvements :)
I`m glad for updates, i like the concept of fnxbasic but there is room for improvements :)