Search found 349 matches

by sinkfaze
09 Jun 2016, 08:07
Forum: Ask For Help
Topic: while wb.readyState some time NOT work
Replies: 9
Views: 1368

Re: while wb.readyState some time NOT work

Add a timeout to the conditions:

Code: [Select all]GeSHi © Codebox Plus

While	wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy || A_Index < 10000 ; waits 10 seconds
Sleep 10
by sinkfaze
08 Jun 2016, 09:55
Forum: Ask For Help
Topic: Capitalise first letter on multiple optional strings
Replies: 8
Views: 735

Re: Capitalise first letter on multiple optional strings

I can't remember a time when StringUpper wasn't in the language. Are you using v2?
by sinkfaze
07 Jun 2016, 10:18
Forum: Ask For Help
Topic: SLOW Excel Performance
Replies: 7
Views: 717

Re: SLOW Excel Performance

You still have the problem that you're loading some lines over and over and over that appear to only need to be loaded once: oExcel.Range("G3").Value := "0001" oExcel.ActiveSheet.Shapes.AddPicture("C:\test\Sample.png", True, True, 100, 550, -1, -1) Move ...
by sinkfaze
23 May 2016, 07:26
Forum: Ask For Help
Topic: Methods using commandline arguments
Replies: 6
Views: 584

Re: Methods using commandline arguments

This has been moved to 'Ask for Help'.
by sinkfaze
22 May 2016, 02:20
Forum: Ask For Help
Topic: RegEx - remove everything before period and space
Replies: 8
Views: 754

Re: RegEx - remove everything before period and space

I wouldn't use that pattern if I were you, any title that starts with digits but doesn't start with the other numbers will have those digits deleted. Also, you don't need to enclose the pattern in parentheses since you're not using a subpattern for anything. I would go the literal route: String1 := ...
by sinkfaze
21 May 2016, 23:54
Forum: Ask For Help
Topic: RegEx - remove everything before period and space
Replies: 8
Views: 754

Re: RegEx - remove everything before period and space

Code: [Select all]GeSHi © Codebox Plus

String= 5-2 Impact. Impact
MsgBox % RegExReplace(String,"[^\.]+\. ")
by sinkfaze
19 May 2016, 10:49
Forum: Ask For Help
Topic: remove all non-alphabet characters
Replies: 4
Views: 362

Re: remove all non-alphabet characters

Try this:

Code: [Select all]GeSHi © Codebox Plus

var :=   RegExReplace(var,"\PL")
by sinkfaze
19 May 2016, 10:27
Forum: Bug Reports
Topic: WinMove is broken on Windows 10
Replies: 62
Views: 9475

Re: WinMove is broken on Windows 10

I think this thread is past the point of productive discussion, Lexikos has determined that this is not a bug and that he will not be implementing anything pertaining to gallaxhar's proposed workaround. Bruttosozialprodukt, if you would like to continue discussion of your proposed workaround please ...
by sinkfaze
19 May 2016, 08:34
Forum: Bug Reports
Topic: WinMove is broken on Windows 10
Replies: 62
Views: 9475

Re: WinMove is broken on Windows 10

quoting me with things I didn't actually say is pretty childish... And you telling a developer what he should be doing with the time he donates to this product isn't? I won't respond to you, even if your arguments are stupid I didn't make an argument, I gave you the argument that the developer alre...
by sinkfaze
19 May 2016, 08:26
Forum: Bug Reports
Topic: WinMove is broken on Windows 10
Replies: 62
Views: 9475

Re: WinMove is broken on Windows 10

what could be more important of a fix for me and a couple of other Windows 10 users... Fixed. I'm pretty sure AHK doesn't intend users to work with invisible window frame's using WinMove... No, it doesn't. Windows does. Using the "it's Windows's fault" excuse... You were told that any att...
by sinkfaze
19 May 2016, 08:01
Forum: Bug Reports
Topic: WinMove is broken on Windows 10
Replies: 62
Views: 9475

Re: WinMove is broken on Windows 10

It doesn't make much sense for every individual ahk script, and every individual ahk-user to have to mathematically compensate for a universal phenomenon on Windows 10 top level windows. If Windows isn't doing it for you, then AHK isn't doing it either. That's what AHK is, in essence, a user-friend...
by sinkfaze
17 May 2016, 07:37
Forum: Ask For Help
Topic: Rat..... Topic is solved
Replies: 1
Views: 231

Re: Rat..... Topic is solved

There is no rat, antivirus companies routinely misreport AHK. All we can do is submit the file to those companies to re-evaluate and clear from their list.
by sinkfaze
13 May 2016, 10:31
Forum: Ask For Help
Topic: Simple RegExMatch not working
Replies: 4
Views: 248

Re: Simple RegExMatch not working

Code: [Select all]GeSHi © Codebox Plus

RegExMatch(bar, "s)(?<=Private Notes).*(?=Modify)", bane)
by sinkfaze
13 May 2016, 10:23
Forum: Ask For Help
Topic: conditional return in one line (ternary) outside functions?
Replies: 9
Views: 1171

Re: conditional return in one line (ternary) outside functions?

That really seems like nit-picking to save one line. If you really want it you could create a universal End subroutine in your script, put the ternary on a Gosub and stack your continue subroutine under the appropriate part of the script, but that isn't really saving you much of anything. !x:: Gosub...
by sinkfaze
04 May 2016, 08:10
Forum: Ask For Help
Topic: Using non-latin letters in varables | Crippled output text
Replies: 3
Views: 352

Re: Using non-latin letters in varables | Crippled output text

Those letters copy and display fine for me. Are you using a Unicode or ANSI version of AutoHotkey?
by sinkfaze
04 May 2016, 07:44
Forum: Ask For Help
Topic: Expressions: Detect variable is a number and under a certain value?
Replies: 4
Views: 477

Re: Expressions: Detect variable is a number and under a certain value?

Code: [Select all]GeSHi © Codebox Plus

n=94,106,28.816,-4414.97472
Loop, Parse, n, `,
MsgBox, % A_LoopField " is " (!RegExMatch(A_LoopField,"[+-]?[0-9]*(\.[0-9]*)?",m) || (m >= 100) ? "not " : "") "a matching number."
return
by sinkfaze
27 Apr 2016, 00:11
Forum: Ask For Help
Topic: saving highlighted data in excel
Replies: 14
Views: 866

Re: saving highlighted data in excel

Observe the change made.

Code: [Select all]GeSHi © Codebox Plus

...

F1::
F2::
oCopyText := get_Highlight()
If (oCopyText) {
Try{
oColumn := (A_ThisHotkey = "F1" ? "D" : "E" )

...
by sinkfaze
26 Apr 2016, 23:55
Forum: Ask For Help
Topic: convert dot to space Topic is solved
Replies: 1
Views: 173

Re: convert dot to space Topic is solved

Code: [Select all]GeSHi © Codebox Plus

fileName=Hamburger.Hill.1987.BluRay.720p.x264
fileName := StrReplace(fileName,"."," ")
MsgBox, %fileName%
by sinkfaze
16 Apr 2016, 21:59
Forum: Bug Reports
Topic: SetTitleMatchMode RegEx does not work properly with ahk_exe
Replies: 14
Views: 1834

Re: SetTitleMatchMode RegEx does not work properly with ahk_exe

lexikos wrote:That doesn't even make sense.


But i)xxx ahk_class i)yyy does? That is counterintuitive to how most users would ever use regex anywhere else in the language. That at the very least needs a considerable amount of explanation in the documentation.
by sinkfaze
14 Apr 2016, 15:38
Forum: Bug Reports
Topic: SetTitleMatchMode RegEx does not work properly with ahk_exe
Replies: 14
Views: 1834

Re: SetTitleMatchMode RegEx does not work properly with ahk_exe

Here's my test code using AutoHotkey Help as the target window (window ID and PID are hard coded): MsgBox % "AutoHotkey Help found by:`n`n" . "ahk_id 0xf0b8a:`t" (WinExist("ahk_id 0xf0b8a") ? "Pass" : "Fail") "`n" . "ahk_pid 9412:`t&qu...

Go to advanced search