Search found 91 matches

by stealzy
29 Apr 2018, 15:38
Forum: Scripts and Functions (v1)
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 29
Views: 13430

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 renaming file on desktop. Anton, coul...
by stealzy
29 Apr 2018, 10:03
Forum: Scripts and Functions (v1)
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 29
Views: 13430

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 (v1)
Topic: WinWaitClose with Chrome tabs
Replies: 4
Views: 1246

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 (v1)
Topic: How do I set a hotkey combination to not affect individual hotkey?
Replies: 2
Views: 804

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

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 (v1)
Topic: Stop a specific loop Topic is solved
Replies: 3
Views: 1136

Re: Stop a specific loop Topic is solved

Use SetTimer instead.

Code: Select all

#Persistent
Global Stop_f_loop := false
SetTimer f, -1
Return

F1::Stop_f_loop := true

F2::
Stop_f_loop := false
SetTimer f, -1
Return

f() {
	static i := 0
	MsgBox % ++i
	If Not Stop_f_loop
		SetTimer f, -1
}
by stealzy
13 Feb 2018, 16:51
Forum: Scripts and Functions (v1)
Topic: convert coordinates between Client/Screen/Window modes
Replies: 10
Views: 8539

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(y, pt, 4) || NumPut(w, pt, 8) ...
by stealzy
06 Feb 2018, 05:35
Forum: Scripts and Functions (v1)
Topic: [CLASS] Lyt - Keyboard layout (language) operation
Replies: 29
Views: 13430

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: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289011

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: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289011

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 (v1)
Topic: Anybody using Menu, Tray, Icon, HICON:%hIcon% ? Topic is solved
Replies: 10
Views: 3842

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

Fixed in last versions: BattleCityPNG_base64 := "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF+Nh4/6BErHwA////Jm4jCgAAAAR0Uk5T////AEAqqfQAAACXSURBVHja7JZBDoAwCARb/P+f1caApQvBxIvCnKqFOXRNpW0u7cSvKEEJXhEMOhMQzB0lOATEmMXqHU2U4OpqEog657GSahGgGPM...
by stealzy
20 Jan 2018, 07:44
Forum: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289011

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 (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2270

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

Code: Select all

#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 (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2270

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("ru") Lyt.Set(1) Lyt.Set(2) Lyt.Set("Switch"...
by stealzy
13 Jan 2018, 04:39
Forum: Wish List
Topic: Hotkey control and foreign language keyboards
Replies: 9
Views: 3812

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: 3812

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 (v1)
Topic: Beginners OOP with AHK
Replies: 49
Views: 46717

Re: Beginners OOP with AHK

Code: Select all

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.
by stealzy
12 Jan 2018, 10:10
Forum: Scripts and Functions (v1)
Topic: Cross Reference List (XRef)
Replies: 52
Views: 21804

Re: Cross Reference List (XRef)

Great obfuscation, it looks crazy ;) ! Just a small piece of your script if you don't mind: Loop Read,%fi% { If (ex="c") { L:="",z:=A_LoopReadLine,x=1,c1:=z~="^[^\s#]" IfEqual true,% !(z~="/\*|\*/|//")&&cm!=2,SetEnv L,%z% else while x<=StrLen(z) { y:=SubStr(z,x,2),(cm=2&&y="*/")?(cm:=0,L.=" ",x++) :...
by stealzy
10 Jan 2018, 14:30
Forum: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289011

Re: Suggestions on documentation improvements

I have discover what GetKeyVK() and GetKeySC() search letter in autohotkey gui layout at the moment and return code of letter in this layout . If character not exist in current ahk thread layout, 0 is returned. Character can return diferent code, depends on layout, if it is present in both. This imp...
by stealzy
10 Jan 2018, 12:14
Forum: Wish List
Topic: Hotkey control and foreign language keyboards
Replies: 9
Views: 3812

Re: Hotkey control and foreign language keyboards

++1 It is very frustrating that all other software use vk-codes in their Hotkey-alike controls, but AutoHotkey has its own bizarre method. I've NEVER met program, which use letters instead vk-codes for shortcuts. Below is the list has tested by me: Opera Firefox (keyconfig) uTorrent MS Office 2003 D...

Go to advanced search