Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Cambridge10

    Calling a method within an other method

    Hi, Only the parts needed. Thank you feherke. It works.
  2. Cambridge10

    Calling a method within an other method

    I've just started to work with Php 5 OO. function totalVehicleWeight calculates the total weight of the vehicle. It return that to the screen of the user. function diffFrontRear calculates the diff of the front and rear but it's also need the input of function totalVehicleWeight. How should I...
  3. Cambridge10

    Regex: how to delete characters at a certain position

    Thanks. I've created this one: $file =~ s/(.)*\\//g;
  4. Cambridge10

    Regex: how to delete characters at a certain position

    I didn't knew the substr function. Thanks. Something else: c:\x\test\filename.txt How can I remove "c:\x\test\"? It can be any path not a fixed value.
  5. Cambridge10

    Regex: how to delete characters at a certain position

    I would like to create a regex which would replace any character from position six with ~1 Example: input: This Is A Text.abc output: Thisis~1.abc I'm stuck on this one.
  6. Cambridge10

    Perl Tk: How to configure the cancel button

    Hi, I've created a file dialog where an user can choose a txt file. There is also a cancel button which I need to configure but I don't know how to approach it? Disabling the cancel button will also be fine. sub Load_file { $file_path_entry -> delete('0.0', 'end'); my $file; my...
  7. Cambridge10

    Auto play wav file in wplayer from script

    I've figured out what going wrong. I used print to see what Perl is doing and when changing to the directory of wmplayer it goes wrong. Thanks!
  8. Cambridge10

    How to terminate a running process

    Got it. Thanks!
  9. Cambridge10

    How to terminate a running process

    system ("mbrola $db extern.pho extern.wav"); system ("bruceplayer.exe extern.wav"); Extern.wav has a duration of ten minutes. I've created a Stop button so that the user can stop bruceplayer.exe anytime. How can I terminate this process?
  10. Cambridge10

    Auto play wav file in wplayer from script

    I've already tried that but it doesn't work. Btw I'm using Perl Tk.
  11. Cambridge10

    Auto play wav file in wplayer from script

    I've found out that wmplayer.exe /play extern.wav will auto play the file from commandline. How do I pass /play within my scipt? system ($wmp_path /play external.wav); It throws the message "Search pattern not terminated" How do I solve this?
  12. Cambridge10

    Auto play wav file in wplayer from script

    Hi, I've a wav file which should be automatically played with Windows Media Player but it doesn't. $wmp_path = "C:/Program Files/Windows Media Player/wmplayer.exe"; $wmp_path =~ s/\//\\/g; #convert / to \ system ($wmp_path external.wav); Windows Media Player is automatically started but it...
  13. Cambridge10

    Tk : Running windows commands without a dosbox

    Thanks for you explanation.
  14. Cambridge10

    Tk : Running windows commands without a dosbox

    Oh I forget I'm using Tk.
  15. Cambridge10

    Tk : Running windows commands without a dosbox

    Thanks for the fast response I've read it but it's not exactly what I mean. I'm using wperl.exe myscript.pl This works fine but when I call a windows command inside myscript.pl a dosbox flashes by and I want to prevent that for the user.
  16. Cambridge10

    Tk : Running windows commands without a dosbox

    I'm using perl Tk and I have to call a couple of Windows commands but they are executed in a dosbox. I want to prevent a dosbox is opened or at least hidden for the user. Is there any way to prevent that? system ("test.txt|perl prep|afbreek.exe|klank.exe|perl kleur >output.pho"); system...
  17. Cambridge10

    Regex : Use of unintialized value $_ in pattern match

    I also noticed it's sensitive for spaces but now I understand. Thanks for the explanation guys [thumbsup]
  18. Cambridge10

    Regex : Use of unintialized value $_ in pattern match

    Hi, I'm new to Perl using regex. I wrote a simple program which search the userinput for a match. When I start the program it works fine but I get the error message below. I'm doing something wrong but what exactly? The error message : Use of unintialized value $_ in pattern match (m//) at...

Part and Inventory Search

Back
Top