Search found 1291 matches

by Xtra
30 Mar 2019, 21:19
Forum: Ask For Help
Topic: Script help for dual mouse click
Replies: 12
Views: 232

Re: Script help for dual mouse click

Code: Select all

~LButton::Send, {RButton}
by Xtra
14 Mar 2019, 17:23
Forum: Ask For Help
Topic: How do I merge these two functions?
Replies: 6
Views: 307

Re: How do I merge these two functions?

Code: Select all

#If GetKeyState("CapsLock","T")
$w::Up
$a::Left
$s::Down
$d::Right
#IF

*w::Send % GetKeyState("Shift","P") ? "{Up}" : "w"
*a::Send % GetKeyState("Shift","P") ? "{Left}" : "a"
*s::Send % GetKeyState("Shift","P") ? "{Down}" : "s"
*d::Send % GetKeyState("Shift","P") ? "{Right}" : "d"
HTH
by Xtra
08 Mar 2019, 05:59
Forum: Ask For Help
Topic: AHK cannot read Tesseract output
Replies: 9
Views: 242

Re: AHK cannot read Tesseract output

Check if the file exists before trying to fileread it.
Put it in a loop and break once it exists.

HTH
by Xtra
06 Mar 2019, 16:58
Forum: Ask For Help
Topic: Chrome.ahk, Wait for download to finish Topic is solved
Replies: 2
Views: 178

Re: Chrome.ahk, Wait for download to finish Topic is solved

It will be a filename.CRDownload file you can check for.

Code: Select all

            while FileExist(A_ScriptDir . "\...your path here...\*.CRDownload")
            {
                ToolTip, Waiting For Chrome download to finish: %A_Index%...,0,0
                Sleep 1000
            }
HTH
by Xtra
24 Feb 2019, 04:04
Forum: Forum Issues
Topic: What is with the IP bans and other aggressive security?
Replies: 18
Views: 2694

Re: What is with the IP bans and other aggressive security?

A big "THANK YOU" to everyone who volunteers for the AHK community.
by Xtra
30 Jan 2019, 15:26
Forum: Ask For Help
Topic: Photo viewer and paint
Replies: 8
Views: 391

Re: Photo viewer and paint

swagfag wrote:
30 Jan 2019, 14:02
use gdip to do what exactly? he says he "fixes" them in paint. this could range from resizing them to god knows what

Anything you can do in paint can be done using gdip.
What the problems are who knows? :roll:
by Xtra
30 Jan 2019, 13:34
Forum: Ask For Help
Topic: Photo viewer and paint
Replies: 8
Views: 391

Re: Photo viewer and paint

@gregster personally i would use GDIP and automate it all.
(finding and fixing problem or at least pulling the problem ones out of the pile)
by Xtra
30 Jan 2019, 03:50
Forum: Ask For Help
Topic: Photo viewer and paint
Replies: 8
Views: 391

Re: Photo viewer and paint

$Up:: ControlClick, Photos_ButtonEx5, ahk_class Photo_Lightweight_Viewer,, Left ControlClick, Photos_ButtonEx5, ahk_class Photo_Lightweight_Viewer,, Right /* Open With Menu: -------------------- 65001 1st menu item: Paint (on my system) 65002 2nd menu item: etc.. 65003 3rd menu item: 65004 4th menu...
by Xtra
29 Jan 2019, 22:58
Forum: Ask For Help
Topic: StrSplit by any whitespace
Replies: 6
Views: 313

Re: StrSplit by any whitespace

Code: Select all

x := "1  2       3 4"
arr := StrSplitByWhiteSpace(x)

for k, v in arr
    MsgBox % v

StrSplitByWhiteSpace(str)
{
    Arr := []
    Loop, Parse, str, % A_Space
        if (A_LoopField != "")
            Arr.push(A_LoopField)
    return Arr
}
by Xtra
29 Jan 2019, 17:30
Forum: Ask For Help
Topic: Could anyone help me get this script working? Topic is solved
Replies: 1
Views: 143

Re: Could anyone help me get this script working? Topic is solved

There is no Fast optional parameter for PixelGetColor . Note: you have an infinite loop but you can figure that out once you have it working. (Hint: Use SetTimer ) CoordMode, pixel,screen CoordMode, mouse,screen =:: Loop { PixelGetColor, Red, 1203, 1040 if (Red = 0x0000FF) { Send {r down} Loop { Pix...
by Xtra
29 Jan 2019, 14:46
Forum: Ask For Help
Topic: RegEx to trim floating decimal places Topic is solved
Replies: 34
Views: 1253

Re: RegEx to trim floating decimal places Topic is solved

Code: Select all

TrimZeros(n) {
    len := StrLen(n)
    Loop, 4
    {
        if (SubStr(n, len, 1) = 0)
            --len
        else
            break
    }
    return SubStr(n, 1, len)
}
Always assumes 6 digits after the decimal per OP
by Xtra
28 Jan 2019, 19:15
Forum: Ask For Help
Topic: copy to clipboard fail ?
Replies: 6
Views: 381

Re: copy to clipboard fail ?

Your code works fine for me but you can try it like this: {Ctrl Down}c{Ctrl Up}

Code: Select all

#c::
clipboard =
send,{Ctrl Down}c{Ctrl Up}
ClipWait,5
MsgBox, 4160, Testing, % ErrorLevel ? "Copy Failed" : clipboard
Return
by Xtra
28 Jan 2019, 13:34
Forum: Ask For Help
Topic: MouseGetPos or WinMove Innaccuracy???
Replies: 3
Views: 150

Re: MouseGetPos or WinMove Innaccuracy???

Read: CoordMode

Code: Select all

CoordMode, Mouse, Screen
HTH
by Xtra
28 Jan 2019, 03:16
Forum: Ask For Help
Topic: Loop, Files SPEED UP
Replies: 16
Views: 666

Re: Loop, Files SPEED UP

Run this:

Code: Select all

Run, %comspec% /q /c dir /s /b > print.txt, I:\Dat\Inbox\Customer_Folders
And then parse the print.txt file.

HTH
by Xtra
26 Jan 2019, 20:19
Forum: Ask For Help
Topic: PixelGetColor issues.
Replies: 1
Views: 137

Re: PixelGetColor issues.

Code: Select all

If InStr("0x000001,0x2D1F13,0xEDECEC,0xB09004,0xB8240C,0x483D15,0xCF1500,0xFD3200,0x464035,0x896E03,0x86562D", color)
Dont forget to set CoordMode if needed.

HTH
by Xtra
24 Jan 2019, 19:20
Forum: Ask For Help
Topic: But ImageSearch of ScreenPrint Works!
Replies: 8
Views: 349

Re: But ImageSearch of ScreenPrint Works!

bmpHaystack := Gdip_BitmapFromScreen(0 "|" 0 "|" A_ScreenWidth "|" A_ScreenHeight, 0x40000000 | 0x00CC0020) The last parameter is Raster you need it to deal with layered windows. You should also be checking if bmpHaystack contains the pointer and not blank. (Just like ErrorLevel with imagesearch co...
by Xtra
24 Jan 2019, 13:55
Forum: Scripts and Functions
Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Replies: 190
Views: 36594

Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)

Im only using the class nothing else. If you look at the class code you can see how it works. (or should work)
SetSel() will move the caret anywhere you want.
Im more interested in automating a hidden control not manually interacting with a control / gui / editor.
by Xtra
24 Jan 2019, 12:46
Forum: Scripts and Functions
Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Replies: 190
Views: 36594

Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)

burque505 wrote:
24 Jan 2019, 11:44
But you are not checking if it was found lol. :?:
Also default is search up not down. Set the caret position before searching and it works as intended.
by Xtra
24 Jan 2019, 03:57
Forum: Scripts and Functions
Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Replies: 190
Views: 36594

Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)

Hi JustMe,
Thanks for creating this! :clap:

FindText() doesnt return true if the text was found.
The last line should be:
Return true :thumbup:
by Xtra
23 Jan 2019, 19:14
Forum: Ask For Help
Topic: But ImageSearch of ScreenPrint Works!
Replies: 8
Views: 349

Re: But ImageSearch of ScreenPrint Works!

When you check ErrorLevel is it 1 or 2 ?

Go to advanced search