Search found 520 matches

by sinkfaze
16 Dec 2015, 23:54
Forum: Ask for Help (v1)
Topic: IE ComObjActive Error - Operation unavailable
Replies: 9
Views: 3280

Re: IE ComObjActive Error - Operation unavailable

Have you manually opened Internet Explorer (as in through the Start Menu) yet? There are reports that even though you can open a new instance via COM scripting it is not considered "loaded" until you open it manually and run through the first time opening prompts. Barring that, you should still be a...
by sinkfaze
16 Dec 2015, 14:41
Forum: Ask for Help (v1)
Topic: Com getting stuck in excel
Replies: 8
Views: 1895

Re: Com getting stuck in excel

You'd probably be better off copying the entire block of data you need and using a parsing loop to tease the data out of each row from the Clipboard if that's feasible. In general, the less work you attempt to do via COM, the better. Just an example loosely based on what you're attempting to do: xl....
by sinkfaze
16 Dec 2015, 11:49
Forum: Ask for Help (v1)
Topic: Is it possible to use wildcards with PROCESS?
Replies: 1
Views: 898

Re: Is it possible to use wildcards with PROCESS?

No, but you can use the example from the Process command to retrieve a list of running processes and match them for closing from there.
by sinkfaze
16 Dec 2015, 09:37
Forum: Ask for Help (v1)
Topic: Loop, expression
Replies: 9
Views: 2407

Re: Loop, expression

You'll need to give us more descriptive information.
by sinkfaze
16 Dec 2015, 09:18
Forum: Ask for Help (v1)
Topic: A quick Loop, regex and instr
Replies: 12
Views: 2920

Re: A quick Loop, regex and instr

LECTURE := "A lot a lines, like let's say 10,000" loop, parse, LECTURE, `n, `r { if (A_LoopField ~= "^<") && ((ZINTAZA001 && InStr(A_LoopField, "-106")) || (ZINTAZA002 && InStr(A_LoopField, "-112")) || (ZINTAZA003 && InStr(A_LoopField, "-111")) || (ZINTAZA004 && InStr(A_LoopField, "-116"))) continu...
by sinkfaze
16 Dec 2015, 09:06
Forum: Ask for Help (v1)
Topic: How to determine classsNN of a control by its color or by its location in autohotkey?
Replies: 54
Views: 15125

Re: How to determine classsNN of a control by its color or by its location in autohotkey?

Set the timeout option in your list of options. T: Timeout (e.g. T3). The number of seconds to wait before terminating the Input and setting ErrorLevel to the word Timeout. If the Input times out, OutputVar will be set to whatever text the user had time to enter. This value can be a floating point n...
by sinkfaze
15 Dec 2015, 18:23
Forum: Ask for Help (v1)
Topic: preserving 0
Replies: 8
Views: 2030

Re: preserving 0

If you don't believe the zero is being passed to var, test it: While (!hFile.AtEOF) { current_line := StrReplace(hFile.ReadLine(), "`n", "") current_sections := StrSplit(current_line, "|") MsgBox % (sMonitor := (current_sections[3] ? current_sections[3] : "0") if !RegExMatch(sMonitor, "S)^!?(m|[0-" ...
by sinkfaze
15 Dec 2015, 11:23
Forum: Ask for Help (v1)
Topic: Little help with regexmatch
Replies: 2
Views: 615

Re: Little help with regexmatch

Similarly for regex:

Code: Select all

Line := "\one\two\three\four\result"
RegExMatch(Line,"[^\\]+$",m)
MsgBox %	m
by sinkfaze
15 Dec 2015, 10:29
Forum: Wish List
Topic: Alternative to multiple if statements
Replies: 2
Views: 2451

Re: Alternative to multiple if statements

Ultimately the wildcarding isn't that impressive to me, it's saving a step or two that isn't that hard to code yourself. Here's are rewrites of the examples from the Microsoft article: wildcardSwitch(v) { static colors := {a:"The color is red." ,b:"The color is blue." ,c:"The color is green." ,d:"Th...
by sinkfaze
10 Dec 2015, 10:10
Forum: Ask for Help (v1)
Topic: Having trouble with validating part numbers agaisnt a dataFile Topic is solved
Replies: 4
Views: 1007

Re: Having trouble with validating part numbers agaisnt a dataFile Topic is solved

It looks like you'd be better off attempting to standardize your data before you search the text file, there's enough there that you should be able to match the lines and standardize them to your text file. Here's an example: list= ( V177-PART2/COM-MAJOR-S V177PART2/COMMAJORS VE177-PART2/COMM-MAJOR-...
by sinkfaze
10 Dec 2015, 09:15
Forum: Ask for Help (v1)
Topic: FindString - Help!
Replies: 2
Views: 819

Re: FindString - Help!

If the - is a consistent delimiter:

Code: Select all

Var=Street: 126 York St. - City: Ottawa
RegExMatch(Var, "s)Street\s?: (.*) - City\s?: (.*)",_)
MsgBox %	_1 "`n" _2
return
by sinkfaze
03 Dec 2015, 08:41
Forum: Ask for Help (v1)
Topic: StringGetPos returns -1 Topic is solved
Replies: 4
Views: 1315

Re: StringGetPos returns -1 Topic is solved

Exaskryz is correct.
StringGetPos-SearchText wrote:The string to search for.
by sinkfaze
02 Dec 2015, 15:04
Forum: Ask for Help (v1)
Topic: looking for better way to code if/else mess
Replies: 4
Views: 1121

Re: looking for better way to code if/else mess

Well something will have to get a little messy if you have that many options to choose from. I typically like to push things like that to an object and do the comparison there: model := {ZX804g:1 ,ZX822g:2 ,zx852g:3 ,zx862g:4 ,zx402g:5 ,zx402p:6 ,zx502g:7 ,zx504g:8 ,zx602g:9 ,zx604g:10 ,zx608g:11 ,z...
by sinkfaze
19 Nov 2015, 11:55
Forum: Wish List
Topic: escaping double quotes in RegEx
Replies: 5
Views: 5229

Re: escaping double quotes in RegEx

This isn't exclusive to RegEx, any time you work with a literal string in an expression you must double quotes to make them literal.
by sinkfaze
19 Nov 2015, 10:33
Forum: Ask for Help (v1)
Topic: COM: 0x8002801D Library not registered
Replies: 1
Views: 1040

Re: COM: 0x8002801D Library not registered

Do this and try running the script again:

Run regsvr32 %systemroot%\system32\vbscript.dll

If that doesn't work I would follow the advice from the answer here and search your registry.
by sinkfaze
17 Nov 2015, 23:22
Forum: About This Community
Topic: Forum upgraded to phpBB v3.1.x
Replies: 177
Views: 158576

Re: Forum upgraded to phpBB v3.1.x

I'm still not seeing an option to upload an avatar on these forums.
by sinkfaze
12 Nov 2015, 09:03
Forum: Ask for Help (v1)
Topic: Running an Excel Macro
Replies: 18
Views: 7167

Re: Running an Excel Macro

Check Options ~> Add-Ins ~> Disabled Items and see if PERSONAL.XLSB has become disabled for some reason.

Your macro could also be run directly from an AHK script so you're not relying on PERSONAL.XLSB to do it, if you're willing to post the code of the macro here and we can explore those options.
by sinkfaze
12 Nov 2015, 08:52
Forum: Ask for Help (v1)
Topic: [solved] What's the difference between (.*)? and (.*?)
Replies: 9
Views: 2308

Re: [solved] What's the difference between (.*)? and (.*?)

Actually, I am a bit puzzled now by your script. Why does it perform an action of replacement twice in the second time? Mainly, why does it replace "a" and then "s" instead of replacing the whole "as" like in the first case? It doesn't. (as)?(?=df) gives you two options: find as directly before df ...
by sinkfaze
11 Nov 2015, 14:33
Forum: Ask for Help (v1)
Topic: Control's HWND name?
Replies: 3
Views: 1608

Re: Control's HWND name?

GuiControlGet, OutputVar, Name, << your hWnd >>

:?:
by sinkfaze
11 Nov 2015, 11:10
Forum: Ask for Help (v1)
Topic: Error: Parameter #1 invalid
Replies: 6
Views: 5230

Re: Error: Parameter #1 invalid

That's not how to use SetBatchLines, all that's doing is telling the script to sleep for 10ms for every 2000ms of execution. You need to use SetMouseDelay and/or Sleep to slow down execution in that way.

Go to advanced search