
hmsSurprise
Active Members-
Posts
151 -
Joined
-
Last visited
Everything posted by hmsSurprise
-
I fixed it with $string = $str & _StringRepeat(' ', 80 - StringLen($str)) & $str2 jh
-
I wish to print two strings, the first up to 70 characters and the 2nd 10 characters. I want the 2nd field to start in column 71 as it is a pass/fail column and therefore want it to be aligned. I tried the string format $string = stringFormat("%-70s, %10s", $str, $str2) This however sets the max length of the string field is does not pad it. Is there a formatting feature that can do this or do I need to pad my string with blanks? Thanks, jvh
-
Testing browser based apps using AutoIt?
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
Also check out twill at http://twill.idyll.org/. -
Testing browser based apps using AutoIt?
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
If it can fetch and interpret .php pages I'm a fan. jh -
Testing browser based apps using AutoIt?
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
Thanks, Dale. Maxq is at http://maxq.tigris.org/, the same folks that offer SVN. jh -
No, unfortunately. jh
-
Would like some suggestions for methods of transferring files over a network. Most file and dir copies are handled fine by AutoIt functions but we have one server that quite often gets reset to non-sharing (during builds, etc.) and no one remembers to set it back to sharing. I have remote login, eBlvd, and general web access to it at all times. One possibility might be doing a web fetch via php but that is another learning curve. Thanks, jh
-
Thanks again, you have been quite helpful. I will certainly save this for future use. I actually solved it another way. $found = StringInStr($s, ':\PHP') if $found Then $s = StringReplace ( $s, ($found -1), $dvDrive ) Else ;;Append to string. EndIf
-
Tried that with $search = '?:\PHP'. Since it wouldn't treat ? as a wildcard I started looking at regexp. One solution is to just find ':\PHP', then extract the substring starting one position b4 this and evaluate the first character of the substring. jh
-
Thanks, Sokko. I knew it was simple or stupid or both, I should have known better, actually I do or did. As the saying goes: 'Sometimes is better to keep your mouth shut and appear stupid than to open it and remove all doubt'. The would-be scripter needs more starter fluid, another cup of coffee please. jh
-
Regexp, as it has done for 20 years, is beating up on me again. I have the system path value: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PHP;;D:\PHP;D:\MySQL\MySQL Server 4.1\bin. If I find 'C:\PHP' I want to change it to 'D:\PHP' or actually $dvDrive & '\PHP' . Here in my example I see I have the added problem of paths for C and D drives. I was hoping that StringInStr would return a string that I could examine further but since that is not the case I decided to start with StringRegExp. Using the snippet below I cannot get a return value other than 0 from StringRegExp. I am sure it is a simple mistake but I am not seeing it. It also appears that StringInStr does not support wild cards. Is that true? Thanks, jh $regPath = 'HKLM\SYSTEM\CONTROLSET001\CONTROL\SESSION MANAGER\ENVIRONMENT' ;$s = RegRead($regPath, 'Path') ;Line above returns '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PHP;;D:\PHP;D:\MySQL\MySQL Server 4.1\bin' $s = '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PHP;;D:\PHP;D:\MySQL\MySQL Server 4.1\bin' $search = 'D:\PHP' ;'?:\PHP' $match = StringRegExp($s, $search) MsgBox(0,$s, $match)
-
For-in loop through multidim array
hmsSurprise replied to amokoura's topic in AutoIt General Help and Support
Sure am glad y'all had this discussion as I am about to implement a 3D array. And what good are arrays if you can't traverse them with for loops? Thanks, jh -
Was working with an ODBC connector window text box named QWidget77 and was having difficulty getting text into it. ControlSend and ControlSetText both returned a 1 but didn't post the string. Send returned a zero. I could set and get focus too. Finally I ControlClicked the box just b4 ControlSend and the text went in just fine. Thought that unusual and unnecessary as I had gained focus and the fact that ControlSend has the controlID in it. Is this unusual? jh Edit: Actually Send works just fine for all in the group, just had to ControlClick each one first. ControlFocus had no effect.
-
MyODBC - SysListView321
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
Just downloaded Auto3Lib. Will give that a try 1st. Thanks, jh -
I am working with MyODBC and have navigated to the 2nd tab and the Add... button which brings up another window. In this new window there is a list with a className of SysListView321. Are any of you familiar with this type control? It appears to be a listbox of some type with a vertical scroll. I need to maneuver to near the bottom of the list. Sending('{DOWN}' moves down thru the list but I want to verify my position by reading the item name. However ControlGetText always returns List1, GUICtrlListGetText returns '', and ControlListView returns zeros. Any suggestions? Thanks, jh
-
Dos system command 'set' results
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
Ouch, I knew it would show up there. Tried this out but it didn't work, just flashed. But the good news is that while looking up @comspec I found other macros that had the data I was after. So I die happy... Thanks, jh -
Desktop shortcut locations
hmsSurprise replied to hmsSurprise's topic in AutoIt General Help and Support
I left out some details. Would like to clone them but there are multiple disk configurations and even numbers of drives. Also often must work with systems that have existing programs and data on them. Also some of the setups are order and data dependent where the data changes frequently. We could image the ones we start from scratch but since a lot are upgrades or mods I must do ottherwise. Thanks, jh -
Fairly new myself (2 weeks). Bumbled around awhile then noticed the examples in C:\Program Files\AutoIt3\Examples. Also up one level from this forum you will see all the forurms listed, including one for examples. I also learn a lot by reading the experts' answers to user questions in this forum. Regards, jh
-
From a dos cmd window typing set <CR> lists a set of system variables. Run returns a pid and ShellExec returns a 1 or 0. Is there a way to capture the output of this command? Thanx, jh (Note to PsaltyDS - I checked the help file and forums but might have missed it. )
-
I seriously thought about putting PsaltyDS or a whistle.gif in the stead of the .... in my post. Everybody is good at something. Thanks for your support! B4 posting in the future I will try to find all my answers in the forum and you know... the help file. I suppose I could write lines - "I must look in the help file and search the forums" but I guess that is old school with cut and paste....
-
Thanks, Never would have thought to look for a something by the name AdlibEnable to help with timing out. This can work if I use ( quit being lazy) timeout options on all the WinWait type calls. Think I will take a little time and briefly look at all the functions in the help file. Well maybe more than a little time.... Thanks again, sir. jh
-
Thanks for posting. Yes that would tell me how long a function had been running if the TimerDiff statement could be executed. I should have stated that I want to terminate a function that has run too long because it is hung, i.e. the timerDiff statement couldn't execute because it is after the hang. jh
-
No, if that were the case I could win the jackass of the list award. Just ask, .... well, a lot of list folks.
-
Was wondering if you know of a method for limiting the amount of time a function is allowed to run? Most of the functions I have in mind are not GUIs so haven't really considered a message loop. I suppose I could compile them and run them standalone and then kill the process if it runs too long. Any other ideas? I have searched the forum and help but haven't found my particular application. Would appreciate the benefit of your experience. Thanks, jh