Jump to content

eitan

Active Members
  • Posts

    20
  • Joined

  • Last visited

eitan's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. hi can anyone help? i want to asiign to a variable a block of text like javascript code which can then be written to file. i want the code stored within the variable without needing to calculate the &" ' and @crlf characters. somthing like : $variable= "block of text" where "block of text" can be a page long text with many lines and characters any ideas?
  2. good job! a clever and useful script. a few suggestions: add a gui with input and saving options. add a few more functions. please note that their is a big demand for search engine optimization software and you might be on to somthing...
  3. great work teerabyte! when i try to convert text it performs well the first time but crashes the minute i click convert again. other then that simply great!!
  4. thanks for the help! i know image magic and tried it however it does not suit the purpose. what i need id a small dll or exe that can be called at the command line and not a whloe software suit that needs installation. thanks for the effort though
  5. hi guys anybody know how to write text to a bmp? what i need is the possibility to automaticaly add text or a time stamp like those common in webcams. thanks
  6. works great !!!! is it possible to save the image as a jpg and not a bmp so that the resulting image will be much smaller in size?
  7. hi i wrote a program that retrieves data from a url. i used $var=inetget(url) and i perform certain actions if $var=1. my problem is that if the url is down, my program hangs and gets stuck. what is the correct (best) way to check the url before performing actions? thanks
  8. great work !! i suggest you add a pixelgetcolor function so that it can be retrieved without dispalying the image. this would be very usefull
  9. i think the whole project could be done easier by just having a file installed on the server reading the con file and on the controling side software that simply ftp's the file with the command. true. you have to have the controlling software with you but you then dont need the html or php script! and have direct control. this is also much safer!!! for those saying that you cant control from every browser my reply is that you can still ftp from every computer and the commands are quite simple.
  10. you cant use a larger sleep because otherwise actions will be perforemed continuesly (or you need to program checks for one time actions) if the actions are time based and you want them perfomed once, you need the down to the exact second, and add a sleep for a second
  11. thanks a lot cpu usage went down from 60 to 23 !!!
  12. hi all i am building a project that monitors a web page. the program sits idle until a set time and then updates the page which it does a few times a day. i put the time polling routine inside the While 1 $msg = GUIGetMsg() ... ... WEnd loop to insure that it will be checked but this stresses the cpu. where do you suggest i place these routines? if i place them outside the loop will the program continue to monitor the time event? thanks
  13. oh i forgot the endif !!! add it in please
  14. Func Parsehtml() $htmlexist=InetGet("http://www.thesite.com/your.html", "C:\your dir\yourfile.html", 1); get and save file if $htmlexist=1 then; checkpoint $file=FileOpen("C:\auto\details.htm", 0); open the file $line1=FileReadLine($file, 89); read the line you want by its number $line11=StringReplace($line1, 'junk', "") replace junk with nothing. note that i used ' and not " in case you have " in the junk fileclose($file) endfunc you continue to use with in the func the StringReplace function until your result is clean. usualy 2 sweeps will do it cheers
  15. Func email() $SMTPADD="your server address" $SUBJECT="your subject" $body="your message" $TO="recipent email address" $f="your email address" $body=$stringwrite1 $log="log.txt" Run("blat.exe -server """ & $SMTPADD & """ -s """ & $SUBJECT & """ -body """ & $BODY & """ -t """ & $TO & """ -f """ & $f & """ -log """& $log & """","" , @SW_HIDE ) endfunc explanations 1) all the variables can accept other variables 2) to add username and password authentication add these 2 variables: $USERNAME="put username here" $PASSWORD="put password here" and change the action line to this: Run("blat.exe -server """ & $SMTPADD & """ -s """ & $SUBJECT & """ -body """ & $BODY & """ -u """ & $USERNAME & """ -pw """ & $PASSWORD & """ -t """ & $TO & """ -f """ & $f & """ -log """& $log & """","" , @SW_HIDE) 3) create a text file in the same directory called log.txt for logging or delete that part of the script if you dont want logging 4) the $body=$stringwrite1 variable is in case you want to transfer the message to the body variable using an input. if not...delete that line. i have been playing with this for quite a while and scrounged the forums until i got it to work. so enjoy
×
×
  • Create New...