Search found 467 matches

by sinkfaze
18 Mar 2019, 14:28
Forum: Ask For Help
Topic: Why can't I pass my Array Index values to function??
Replies: 1
Views: 56

Re: Why can't I pass my Array Index values to function??

There is a lot to untangle here. First, if you have variables with static values you should remove them from the loop so they don't reset each time: URL := StrSplit(URL, "`n") , AmountOfURLs := URL.MaxIndex() , selectors := "h1, h2, h3, h4, h5, h6" ; <~~~ , attribute := "innerText" ; <~~~ Loop, % Am...
by sinkfaze
18 Mar 2019, 10:37
Forum: Ask For Help
Topic: Add space after a subdomain in an url. How? Topic is solved
Replies: 15
Views: 254

Re: Add space after a subdomain in an url. How? Topic is solved

Hello. Let's say I have thesel urls: https://www.test.com/ http://test.co.uk/jpg.png https://pbs.test.gr/xxx/xxx.jpg How do I add a space between the subdomain ( test in this case) and the . that follows it, so that they look like this: https://www.test .com/ http://test .co.uk/jpg.png https://pbs....
by sinkfaze
18 Mar 2019, 08:41
Forum: Ask For Help
Topic: Add space after a subdomain in an url. How? Topic is solved
Replies: 15
Views: 254

Re: Add space after a subdomain in an url. How? Topic is solved

@IMEime

You're about to take another vacation from these forums. Cool it.
by sinkfaze
15 Mar 2019, 11:56
Forum: Gaming
Topic: WOW Spam key script
Replies: 3
Views: 79

Re: WOW Spam key script

It's OK, I have moved the thread to the Gaming forum.
by sinkfaze
15 Mar 2019, 10:44
Forum: Ask For Help
Topic: How to compare time strings? Topic is solved
Replies: 5
Views: 101

Re: How to compare time strings? Topic is solved

Since those variables can output numbers with leading zeroes, and the OP is looking for hour "00" anyway, I want to be sure that the comparison sees them as numbers and not strings. Maybe not necessary, but it's assurance for me.
by sinkfaze
15 Mar 2019, 10:41
Forum: Ask For Help
Topic: combobox and variable change
Replies: 5
Views: 55

Re: combobox and variable change

Where is your gLabel to make that code work? You have to submit the GUI.
by sinkfaze
15 Mar 2019, 10:24
Forum: Ask For Help
Topic: Please make me understand why the behavior of these two arrays is different as shown in these two examples?
Replies: 13
Views: 293

Re: Please make me understand why the behavior of these two arrays is different as shown in these two examples?

IMEime has given the specifics, I refrained from doing so because, in this case, it's a lot like going to the doctor and complaining that it hurts when you stab yourself with a knife. It doesn't really matter why it hurts at that point, stop stabbing yourself.
by sinkfaze
15 Mar 2019, 10:18
Forum: Forum Issues
Topic: Reminding new members to use code tags
Replies: 28
Views: 668

Re: Reminding new members to use code tags

Sigh this is a 15 year long battle and nothing has actually worked. I gave up like 5 years ago :+1: I might argue that the process of adding code tags is much less obvious in newer editor layout, but new users barely used them when it was really obvious. We're not saying nothing could be done progr...
by sinkfaze
15 Mar 2019, 09:14
Forum: Ask For Help
Topic: How to compare time strings? Topic is solved
Replies: 5
Views: 101

Re: How to compare time strings? Topic is solved

if (Round(A_Hour)=0) && (Round(A_Min)<=10)

:?:
by sinkfaze
14 Mar 2019, 14:45
Forum: Ask For Help
Topic: Please make me understand why the behavior of these two arrays is different as shown in these two examples?
Replies: 13
Views: 293

Re: Please make me understand why the behavior of these two arrays is different as shown in these two examples?

You're not dealing with the same types of objects.

One is an AHK object, the other is an Excel object, they work with for-loops differently.

Code: Select all

Xl := ComObjActive("Excel.Application")
for c in Xl.Range("a1:a11")
	MsgBox % c.Value
by sinkfaze
14 Mar 2019, 14:22
Forum: Ask For Help
Topic: Cant make Excel to autosum by sending hotkeys Topic is solved
Replies: 5
Views: 86

Re: Cant make Excel to autosum by sending hotkeys Topic is solved

It only selects cells with data because that's how the AutoSum feature works, from the cell at which you call to AutoSum, it autoselects the contiguous range of cells with data directly above it to add. If you need one that selects a fixed range, that can probably be done.
by sinkfaze
14 Mar 2019, 13:47
Forum: Ask For Help
Topic: Internet explorer Kisok mode
Replies: 2
Views: 52

Re: Internet explorer Kisok mode

web_browser.theatermode

:?:
by sinkfaze
14 Mar 2019, 13:19
Forum: Ask For Help
Topic: Cant make Excel to autosum by sending hotkeys Topic is solved
Replies: 5
Views: 86

Re: Cant make Excel to autosum by sending hotkeys Topic is solved

This is something that will probably easiest to connect to Excel via COM and give it the information to do it. !SC00D:: <^>!SC00D:: if WinActive("ahk_exe EXCEL.EXE") { xl := ComObjActive("Excel.Application"), c := xl.Selection , c.Formula := "=SUM(" xl.Range(c.Offset(-1,0),c.Offset(-1,0).End(-4162))...
by sinkfaze
14 Mar 2019, 08:06
Forum: Ask For Help
Topic: Loop each line of string and replace nth character Topic is solved
Replies: 9
Views: 91

Re: Loop each line of string and replace nth character Topic is solved

Make sure to read through the Regular Expressions Quick Reference and the documentation for RegExReplace() for more information. FWIW, my solution, with no subpattern: text = ( 123456 Some text 654321 Some more text 112233 Even more text ) msgbox % text newtext := RegExReplace(text, "`am)^\d{6}\K ",...
by sinkfaze
13 Mar 2019, 15:43
Forum: Ask For Help
Topic: problems with Function
Replies: 2
Views: 54

Re: problems with Function

ahk-antuan wrote:
13 Mar 2019, 15:19
sorry the Add at the end sould be a Test. but that was not the problemsolver.
I corrected this in your post and added code tags.
by sinkfaze
13 Mar 2019, 13:21
Forum: Ask For Help
Topic: Better way of monitoring active window?
Replies: 3
Views: 120

Re: Better way of monitoring active window?

Code: Select all

#Persistent
SetTitleMatchMode, 2

SetTimer, MonitorWindow, 100
return

MonitorWindow:
If	WinActive("Post Payments")
{
	<< Perform the additional tasks while window is active... >>
}
Return
:?:
by sinkfaze
13 Mar 2019, 08:03
Forum: Ask For Help
Topic: if (expression OR expression) Syntax short-hand ? Topic is solved
Replies: 23
Views: 584

Re: if (expression OR expression) Syntax short-hand ? Topic is solved

Please accept my apologies DRocks , I had forgotten that key in objects does not operate strictly in expression mode. This should get it: ;-------------------------------------------------------------------------------------------------------------------------------------------------- WM_SETCURSOR(w...
by sinkfaze
12 Mar 2019, 15:26
Forum: Ask For Help
Topic: How to use regexmatch Match.Count()?
Replies: 9
Views: 227

Re: How to use regexmatch Match.Count()?

\v stands for a vertical whitespace character, which includes `r and `n , + stands for "one or more", so \v+ stands for one or more vertical whitespace characters. The "" in the ReplaceWith field is meaningless since we're not saving the modified string, but c is the variable where the count of occ...
by sinkfaze
12 Mar 2019, 14:57
Forum: Ask For Help
Topic: if (expression OR expression) Syntax short-hand ? Topic is solved
Replies: 23
Views: 584

Re: if (expression OR expression) Syntax short-hand ? Topic is solved

Also my 2c: If you keep an object around that has the hWNDs as keys you can use: if (objContainingAllhWNDs.hasKey(hWND)) My thoughts exactly: ;-------------------------------------------------------------------------------------------------------------------------------------------------- WM_SETCUR...

Go to advanced search