| Author |
Message |
Forum: Support Topic: Embedded windows scripting (JS) - syntax error |
| stressbaby |
|
Posted: January 15th, 2012, 10:06 pm
|
|
Replies: 7 Views: 156
|
| Yep thanks! Working like a charm. For others, strings may need to be handled with this: WS_Eval(res, "calc(" [color=red]JStr(value)[/color] ")") Also, you can hold the js file separately and just FileRead it: IfInString, ptext, ConvertToCm { value := ... |
|
 |
Forum: Support Topic: Embedded windows scripting (JS) - syntax error |
| stressbaby |
|
Posted: January 15th, 2012, 8:59 pm
|
|
Replies: 7 Views: 156
|
| Working! value := 5 WS_Initialize("JScript") Code = ( function calc(x) { var y = parseInt(x)*2; return y; } ) WS_Exec(Code) Msgbox % Errorlevel WS_Eval(res, "calc(" value ")") msgbox % res return The capi... |
|
 |
Forum: Support Topic: Embedded windows scripting (JS) - syntax error |
| stressbaby |
|
Posted: January 15th, 2012, 8:53 pm
|
|
Replies: 7 Views: 156
|
| Odlanir, Thanks again. You are right, and I was just working on that. value := 3 WS_Initialize() Code = ( Function calc(x) { var y = parseInt(x) * 2; Return y; } ) WS_Exec(Code) Msgbox % Errorlevel WS_Eval(res, "calc(" value "&... |
|
 |
Forum: Support Topic: Embedded windows scripting (JS) - syntax error |
| stressbaby |
|
Posted: January 15th, 2012, 6:34 pm
|
|
Replies: 7 Views: 156
|
| Thanks, Odlanir, I appreciate the response. I will go to AHK_L if there is no way to do it in Basic. However, I already have several AHK_Basic scripts deployed to a couple of hundred physicians and so it would be preferable to do it in Basic. Also, I've not had time to really dig into AHK_L so I'm n... |
|
 |
Forum: Support Topic: Embedded windows scripting (JS) - syntax error |
| stressbaby |
|
Posted: January 15th, 2012, 4:23 pm
|
|
Replies: 7 Views: 156
|
| I have a couple of dozen html files I use as addons to an our electronic medical record program. They perform data interpretations and risk calculations, things like BMI percentile calculations for children and 10 year risk of heart disease for adults. These files contain literally thousands of line... |
|
 |
Forum: Support Topic: Merge text files, line dedupe, problem w/ term special char |
| stressbaby |
|
Posted: December 13th, 2011, 10:54 pm
|
|
Replies: 10 Views: 177
|
| Well, correction...with this method, the char disappears from the msgbox but it is still in the text file. |
|
 |
Forum: Support Topic: Merge text files, line dedupe, problem w/ term special char |
| stressbaby |
|
Posted: December 13th, 2011, 4:49 pm
|
|
Replies: 10 Views: 177
|
| Yep, yep...almost there! With your help the ending chars are removed and the list sorted. Now I just need to append that same char to the end before saving... varMergeFile= Loop, %Folder%\*.inq { FileRead, file, %Folder%\%A_LoopFileName% StringReplace, file, file, % Chr(26) , ,All varMe... |
|
 |
Forum: Support Topic: Merge text files, line dedupe, problem w/ term special char |
| stressbaby |
|
Posted: December 13th, 2011, 4:28 pm
|
|
Replies: 10 Views: 177
|
| Not so far. With this script: var = msgbox here msgbox % asc(var) nothing happens. No message box, nothing. It is as if this character just terminates the script. Same with these line variations: var = "" var := This example from help didn't yield anything either: Transform, O... |
|
 |
Forum: Support Topic: Merge text files, line dedupe, problem w/ term special char |
| stressbaby |
|
Posted: December 13th, 2011, 3:05 pm
|
|
Replies: 10 Views: 177
|
Thanks, but I already tried that. With that suggestion I get an error code: "StringReplace requires at least 3 parameters. The program will exit."
It is as if it doesn't recognize the box as a character. |
|
 |
Forum: Support Topic: Merge text files, line dedupe, problem w/ term special char |
| stressbaby |
|
Posted: December 13th, 2011, 1:52 pm
|
|
Replies: 10 Views: 177
|
| I'm writing a script that will merge text files from a folder and deduplicate lines. These text files have a special function within our application and have a file extension .inq. Sample here: "1007","Brown ","Joe " "1016","Flagerty ","Bob &quo... |
|
 |
Forum: Support Topic: iWeb won't click a button |
| stressbaby |
|
Posted: January 14th, 2011, 5:54 pm
|
|
Replies: 16 Views: 819
|
The only one I have working is working on the search button in another form.
If anyone can give me an example of how to use iWeb_clickText but specify the form, that would be much appreciated. |
|
 |
Forum: Support Topic: need help with medical editing |
| stressbaby |
|
Posted: January 12th, 2011, 11:55 pm
|
|
Replies: 17 Views: 380
|
| Shelly, Hugov pointed me here, his idea is sound. Convert the Shorthand10 word list to AHK. This is certainly possible if you can access the word list. I've done this for a couple of colleagues who wanted their MS Autocorrect lists to work in the EMR. We just extracted the list and wrote a little AH... |
|
 |
Forum: Support Topic: iWeb won't click a button |
| stressbaby |
|
Posted: January 7th, 2011, 7:57 pm
|
|
Replies: 16 Views: 819
|
Cool, that's fine. Any help is appreciated.
Searching AHK for the ComObjUnwrap function now, not in my library.
Seems like this shouldn't be so hard... |
|
 |
Forum: Support Topic: iWeb won't click a button |
| stressbaby |
|
Posted: January 7th, 2011, 7:42 pm
|
|
Replies: 16 Views: 819
|
| The name of the form is: viewns_7_6EAHQ7H20GIA60ISD3V0UQ30H5_:elegibilityForm *[sic]* The id is the same. COM_Invoke(pwb,"document.forms[2].item[viewns_7_6EAHQ7H20GIA60ISD3V0UQ30H5_:elegibilityForm:j_id_jsp_1392678058_95].click" Did not work, COM error again. Working on Mickers' idea n... |
|
 |
Forum: Support Topic: iWeb won't click a button |
| stressbaby |
|
Posted: January 7th, 2011, 1:40 am
|
|
Replies: 16 Views: 819
|
| Thanks guys. I will work with both approaches and report back, along with the entire form name if needed (it is too long for the iWebBrowser 2 Learner textbox). |
|
 |
| Sort by: |