Search found 74 matches

by stealzy
29 Jun 2018, 11:07
Forum: Ask For Help
Topic: FileExist fail in System32 folder (ahk_32 on x64 OS) Topic is solved
Replies: 2
Views: 74

FileExist fail in System32 folder (ahk_32 on x64 OS) Topic is solved

On windows 7x64 autohotkey32 can not see this file: f := FileOpen("C:\Windows\System32\dwm.exe","r","CP0") if !IsObject(f) MsgBox 0 MsgBox % FileExist("C:\Windows\System32\dwm.exe") autohotkey64 works fine. Are there any reasons for this behavior?
by stealzy
30 May 2018, 15:49
Forum: AutoHotkey v2 Development
Topic: Object.HasValue/Contains/KeyOf/FindValue
Replies: 56
Views: 4840

Re: Object.HasValue/Contains/KeyOf/FindValue

I haven't followed the discussion... ...Unsure if they can be merged into one, because key can be 0 I think, you should read at least last message with code. All keys return in array, so even if it's found only one match value with key 0 , function return array [ 0 ] , which equals true , not false...
by stealzy
28 May 2018, 12:27
Forum: AutoHotkey v2 Development
Topic: Object.HasValue/Contains/KeyOf/FindValue
Replies: 56
Views: 4840

Re: Object.HasValue/Contains/KeyOf/FindValue

AutoHotkey v1 implementation:

Code: [Select all]GeSHi © Codebox Plus

; Return array of keys if exist
HasValue(var, arr) {
arrOfKeys := {}
for key, value in arr
if (value == var)
arrOfKeys.Push(key)
return (arrOfKeys.Length() = 0) ? false : arrOfKeys
}
by stealzy
29 Apr 2018, 15:38
Forum: Scripts and Functions
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 27
Views: 3612

Re: [CLASS] Lyt - Keyboard layout (language) operation

add that directive I don't think this is enough, because it will not have an effect on WinExist("A") id return. Btw, I try send PostMessage, 0x50 message directly to window with id hDesk := DllCall("user32\GetDesktopWindow", "Ptr"), it not change layout while I renamin...
by stealzy
29 Apr 2018, 10:03
Forum: Scripts and Functions
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 27
Views: 3612

Re: [CLASS] Lyt - Keyboard layout (language) operation

On my OS (Win7x64) Lyt code can switch layout while I renaming the file located on the desktop :think:.
In my case WinExist("A") return ID of window with class "WorkerW", so it take a message.
by stealzy
23 Feb 2018, 07:36
Forum: Ask For Help
Topic: WinWaitClose with Chrome tabs
Replies: 4
Views: 141

Re: WinWaitClose with Chrome tabs

Window != tab. You can open this tab in separate window, then your code will work. Otherwise you need special tools for chrome, search "chrome" on forum.
by stealzy
21 Feb 2018, 13:26
Forum: Ask For Help
Topic: How do I set a hotkey combination to not affect individual hotkey?
Replies: 2
Views: 83

Re: How do I set a hotkey combination to not affect individual hotkey?

Where is your code? I have no such problem.

Code: [Select all]GeSHi © Codebox Plus

Rbutton & Lbutton::ToolTip 1
Rbutton UP::ToolTip % A_PriorKey
Esc::ExitApp
Anyway, you can use Suspend or #If. Just make variable and set it in Rbutton & Lbutton hotkey until Rbutton realesed (KeyWait).
by stealzy
21 Feb 2018, 13:10
Forum: Ask For Help
Topic: Stop a specific loop Topic is solved
Replies: 3
Views: 106

Re: Stop a specific loop Topic is solved

Use SetTimer instead.

Code: [Select all] [Expand]GeSHi © Codebox Plus

by stealzy
13 Feb 2018, 16:51
Forum: Scripts and Functions
Topic: convert coordinates between Client/Screen/Window modes
Replies: 8
Views: 972

Re: convert coordinates between Client/Screen/Window modes

Do not need convert, if you get all coordinate at once: p := WinGetP(WinActive("A")) MsgBox % p.x " | " p.ClientScr.x " | " p.ClientWin.x WinGetP(hwnd) { WinGetPos, x, y, w, h, ahk_id %hwnd% WinP := {x:x, y:y, w:w, h:h} VarSetCapacity(pt, 16) NumPut(x, pt, 0) || NumPut(...
by stealzy
06 Feb 2018, 05:35
Forum: Scripts and Functions
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 27
Views: 3612

Re: [CLASS] Lyt - Keyboard layout (language) operation

Hi all! @formicant , you're right, thanks, fix all my codeboxes :facepalm:. I think you need hook on window message to monitor the layout changing. Also, hook on window activate and creating, such every window has it's own layout. @Drugwash , thanks for fix my hardcode :thumbup:! Update top post jus...
by stealzy
22 Jan 2018, 10:38
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 441
Views: 79406

Re: Suggestions on documentation improvements

Btw, new help file process get 55 Mb - up to 100 Mb memory. Previous classic help get 20-25 Mb (working set).
joefiesta wrote:Is this WHITE hardcoded somewhere?

Yes, it is. Compare with Putty help:
Image
by stealzy
21 Jan 2018, 17:18
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 441
Views: 79406

Re: Suggestions on documentation improvements

@Ragnar, thank you, it works perfectly :thumbup:!
Now I'll try figure out how to make a button for dark(night) style:
☰ ◀ ▶ Z P N
by stealzy
21 Jan 2018, 07:37
Forum: Ask For Help
Topic: Anybody using Menu, Tray, Icon, HICON:%hIcon% ? Topic is solved
Replies: 10
Views: 887

Re: Anybody using Menu, Tray, Icon, HICON:%hIcon% ? Topic is solved

Fixed in last versions: BattleCityPNG_base64 := "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF+Nh4/6BErHwA////Jm4jCgAAAAR0Uk5T////AEAqqfQAAACXSURBVHja7JZBDoAwCARb/P+f1caApQvBxIvCnKqFOXRNpW0u7cSvKEEJXhEMOhMQzB0lOATEmMXqHU2U4OpqEog657GSah...
by stealzy
20 Jan 2018, 07:44
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 441
Views: 79406

Re: Suggestions on documentation improvements

Help file use system font color, but not use system background color. I see it with dark windows theme: https://s8.hostingkartinok.com/uploads/images/2018/01/527d9e3ad1309a0e98ed0e27fbf292a6.png Please specify text color as black or use system background color instead white. If first input letter is...
by stealzy
15 Jan 2018, 02:21
Forum: Scripts and Functions
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 449

Re: Keyboard layout switcher (Left shift = En, Right shift = Ru)

#Include Lyt.ahk ~LShift Up::(A_PriorKey = "LShift") ? Lyt.Set("en") ~RShift Up::(A_PriorKey = "RShift") ? Lyt.Set("ru") ; ~LShift Up::Lyt.Set("en") ; ~RShift Up::Lyt.Set("ru") Does it work?
by stealzy
14 Jan 2018, 15:09
Forum: Scripts and Functions
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 449

Re: Keyboard layout switcher (Left shift = En, Right shift = Ru)

GetKeyboardLayout seems to be only working once for a process You are mistaken, it's something about your code. Class Lyt: #Include Lyt.ahk ~LShift Up::(A_PriorKey = "LShift") ? Lyt.Set("en") ~RShift Up::(A_PriorKey = "RShift") ? Lyt.Set("-en") ; Lyt.Set(&quo...
by stealzy
13 Jan 2018, 04:39
Forum: Wish List
Topic: Hotkey control and foreign language keyboards
Replies: 9
Views: 552

Re: Hotkey control and foreign language keyboards

Oh, sorry for my mistake with Fr-Belgium :facepalm:, I must have tested it on another layout, which has Z letter with another VK-code.
What do you think about code snipped above :oops:?
by stealzy
13 Jan 2018, 01:23
Forum: Wish List
Topic: Hotkey control and foreign language keyboards
Replies: 9
Views: 552

Re: Hotkey control and foreign language keyboards

Thanks for your attention, lexikos! but my installed version of MPC-HC does not show VK codes to the user; it shows letters. Yes, they all show letters relevant to buttons vk-codes in standart US layout. I tested all software in list with 3 layouts: standart US, US Dvorak, some non-US layout. US Dvo...
by stealzy
12 Jan 2018, 14:50
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 33
Views: 5693

Re: Beginners OOP with AHK

Code: [Select all]GeSHi © Codebox Plus

this.v:=GuiCreate("-Caption")
g:=this.v
g.SetFont("s16")

Remember only limitation — you can't change this.v by assigning new object to g.

Go to advanced search