Jump to content

josheee12

Active Members
  • Posts

    21
  • Joined

  • Last visited

josheee12's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi guys. I have not worked with text files in a while, so any assistance is appreciated. How can I add 3 lines of text to the beginning of all files in a directory that end in .php?
  2. If I have a slider control read by a loop with a switch, and I drag the slider, how can I get it to trigger a command relating to the slider's value without releasing the cursor? Essentially, I need to slide a slider, and have a command run as it is being moved, not afterward.
  3. I love Windows 7's taskbar, along with it's new features. Is there a way that, using autoit, I can use the progress bar overlay from a script? I wanted to create some widgets for the taskbar with similar features to SuperbarMonitor.
  4. Where can I insert this code? I know the method, but where?
  5. I want to create another element for each question: whether or not there is more than 1 answer for the question. How and where could I implement this?
  6. Yeah, I know. This will be a 2-part program. There will be a web-based client for actually taking these quizzes. Until I write a quiz creation frontend in JS/PHP/AJAX, I want to use another program to generate the quizzes. How can I trim spaces trailing off the beginning/end of a string?
  7. With some tweaking, I got the following output: <header> <version>v2.0</version> <file>TestQuiz</file> <author>josheee12</author> <font>MS Sans Serif</font> </header> <body> <question id="0"> <questiontext>Does the script work?</questiontext> <answer0>Yes</answer0> <answer1>No</answer1> <answer2>Maybe</answer2> <answer3>So</answer3> <solution>02</solution> <random>no</random> <hint>Your hints are nice</hint> <explanation>I am awesome</explanation> </question> <question id="1"> <questiontext>Does the script work well?</questiontext> <answer0>Yes and very well</answer0> <answer1>No</answer1> <answer2>Maybe</answer2> <answer3>So</answer3> <solution>0</solution> <random>yes</random> <hint>Your hints are nice</hint> <explanation>I am awesome</explanation> </question> </body>
  8. Right before Return $dataArray correct?
  9. I got it without using any form of external code. For the DebugHeader, it became: Func DebugHeader($HeaderArray) Local $testString $testString &= "<header>" & @LF For $i = 0 To 3 $testString&= "<" & $HEADER_Names[$i] & ">" & $HeaderArray[$i] & "</" & $HEADER_Names[$i] & ">" & @LF Next $testString &= "</header>" debug($testString) EndFunc ;==>DebugHeader
  10. I plan to use the XMLDomWrapper library to generate XML. I know it has the ability to parse XML, now let's see if it can go the other way .
  11. Thank you very much. 1 question though. What does your script return? I got kinda lost in your code .
  12. Can someone help me create this base script? I am trying to write an app that converts from one format to a custom one. The 1st line is the program version. The 2nd line is the name of the file. The 3rd line is the author of the file. The 4th line is the font of the file. I can discard the 1st and 4th lines of the file. Where I need help is the next section of the file. So far the file will look like this: v1.0 File name John Doe Comic Sans Then, there are questions, in a similar format. Am I awesome? 'question Yes 'answer 1 No 'answer 2 Maybe 'answer 3 So 'answer 4 0 'correct answer. can be 0 thru 4 (4 is none of the above). 0 thru 3 can be listed, so the answer can be 01 or 03 or 0123 or 12, etc. whenever it is 4, no other number appears C 'randomize or not A hint can go here 'obviously a hint Explanation of answer 'self explanatory I commented using apostrophies above, they are not really there in the file. The text repeats so a sample will look like this: v1.0 Example file josheee12 Comic Sans Question 1 here Q1A1 Q1A2 Q1A3 Q1A4 01 C Answer text example Q1 Hint here Q1 Explanation here Q1 Question 2 here q2A1 Q2A2 Q2A3 Q2A4 4 Answer text example Q2 Hint here Q2 Explanation here Q2 I want to create an XML-style format out of this, so I get something along the lines of: <info version="v1.0"> <name>Example file</name> <author>josheee12</author> <font>Comic Sans</font> <num>2</num> </info> <question id="1"> <ask>Question 1 here</ask> <answer id="a">Q1A1</answer> <answer id="b">Q1A2</answer> <answer id="c">Q1A3</answer> <answer id="d">Q1A4</answer> <correct>ab</correct> <answertext>Answer text example Q1</answertext> <hint>Hint here Q1</hint> <explanation>Explanation here Q1</explanation> </question> <question id="2"> <ask>Question 2 here</ask> <answer id="a">Q2A1</answer> <answer id="b">Q2A2</answer> <answer id="c">Q2A3</answer> <answer id="d">Q2A4</answer> <correct>n</correct> <answertext>Answer text example Q2</answertext> <hint>Hint here Q2</hint> <explanation>Explanation here Q2</explanation> </question> and so on. For question #2 the value of "correct" is n for none. I know this is a large task, and any help is appreciated.
  13. Hi guys, haven't used AutoIt in a while. I am trying to write a script to automatically control my monitors and whether they are enable or not. any ideas why this will not work? ControlClick("Display Properties","","[CLASSNN:Monitor321]")
  14. i've got the code to get the image from the feed, but i need help getting the size of the image for the popup window. i know how to resize a window, but i need to know how to center the image in the middle of the box
×
×
  • Create New...