Search found 271 matches

by MIRKOSOFT
01 Jul 2019, 17:13
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

Re: How to get Kana toggle key state? Topic is solved

Now it is solved! I forgot that condition must be defined by other way. At script start: Gosub, KanaTimer Timer activation: KanaTimer: GetKeyState, kanaold, vk15sc15B, T GetKeyState, kanastate, vk15sc15B, T SetTimer, Kana, 50 return and keycheck: ;vk15sc15B:: ; 𝗞𝗮𝗻𝗮 𝗟𝗼𝗰𝗸 Kana: GetKeyState, kanastate...
by MIRKOSOFT
01 Jul 2019, 13:54
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

Re: How to get Kana toggle key state? Topic is solved

I created Timer handling starting sub-routine: KanaTimer: GetKeyState, kanaold, vk15sc15B, T GetKeyState, kanastate, vk15sc15B, T SetTimer, Kana, 50 return And here's Timer: Kana: GetKeyState, kanastate, vk15sc15B, T if kanastate <> %kanaold% and kanastate = D { SoundBeep 1900, 250 KeyboardLED(1, "o...
by MIRKOSOFT
01 Jul 2019, 13:22
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

Re: How to get Kana toggle key state? Topic is solved

Hi! Now it works: vk15sc15B:: ; 𝗞𝗮𝗻𝗮 𝗟𝗼𝗰𝗸 GetKeyState, kanastate, vk15sc15B, T if kanastate = D { SoundBeep 1900, 250 KeyboardLED(1, "on", 0) ; ScrollLED } Else { SoundBeep 900, 250 KeyboardLED(1, "off", 0) ; ScrollLED } return at Kana press it checks state and set LED on/off and produces notificati...
by MIRKOSOFT
29 Jun 2019, 17:34
Forum: Ask For Help
Topic: How to move window after open / code aread definition by condition
Replies: 7
Views: 383

Re: How to move window after open / code aread definition by condition

Ok, now I must respect this 'cause I know not any optional solution or alternative code.

Miro
by MIRKOSOFT
29 Jun 2019, 15:59
Forum: Ask For Help
Topic: How to move window after open / code aread definition by condition
Replies: 7
Views: 383

Re: How to move window after open / code aread definition by condition

That code works not. I placed it on script beginning without conditions to avoid any possible affected code. PSMenu is portable, so it needs not install. I'm using 6 alternatives of original Start menu. Even use original Windows 10 start menu - for simple purpose only: perfect separate apps/tools by...
by MIRKOSOFT
29 Jun 2019, 15:15
Forum: Ask For Help
Topic: How to move window after open / code aread definition by condition
Replies: 7
Views: 383

Re: How to move window after open / code aread definition by condition

I found the condition limit option:

Code: Select all

always available code
#If A = 1
condition limited code
#If
always available code
It needs only write #If or #IfWin to end condition application.

Moving still don't know.

Miro
by MIRKOSOFT
29 Jun 2019, 15:08
Forum: Ask For Help
Topic: How to move window after open / code aread definition by condition
Replies: 7
Views: 383

Re: How to move window after open / code aread definition by condition

Ok, the areas working. I have Q - is possible limit area end in code? For example: always available code condition limited code always available code 'Cause I checked if it works and see that code after last condition works only if is condition true. Really to allow to place it into code everywhere....
by MIRKOSOFT
29 Jun 2019, 12:06
Forum: Ask For Help
Topic: How to move window after open / code aread definition by condition
Replies: 7
Views: 383

How to move window after open / code aread definition by condition

Hi! I tried to use this code to move window after open without any keypress: #If WinExist("ahk_exe psmenu.exe") WinActivate, ahk_exe psmenu.exe WinMove, 0,670 return But it does nothing. How to move window after open without any keypress? Even avoid multiple move until is closed? I have else other Q...
by MIRKOSOFT
28 Jun 2019, 06:38
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

Re: How to get Kana toggle key state? Topic is solved

Yes, I know that code is valid. Problem is that it works not. Same like I tried to use GetKeyState and found no one toggle key than NLk ScrLk CapsLk. My Q is if is possible to apply the code I posted into AHK script without creating external application. If I create external KeyCheck application I c...
by MIRKOSOFT
26 Jun 2019, 15:21
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

Re: How to get Kana toggle key state? Topic is solved

Works not.
I used all alternatives of GetKeyState refering to CapsLock - only replaced by Kana value.

Miro
by MIRKOSOFT
25 Jun 2019, 18:54
Forum: Ask For Help
Topic: How to get Kana toggle key state? Topic is solved
Replies: 8
Views: 589

How to get Kana toggle key state? Topic is solved

Hi! I mapped Kana key to my keyboard as togglabe. It allows me use two layouts for single keyboard on keypress. It works similar way like Caps Lock. I did it not by AHK but by KbdEdit. I was searching in AHK help how to check keystate, but found only Caps/Scroll/Num Lock keys and other keys only whe...
by MIRKOSOFT
04 May 2019, 21:06
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

Re: How to assign action for Double Click? Topic is solved

Thank you very very much!
Now I got it work.

I have new two actions which I wanted:
Double irght click
Hold right button

Miro
by MIRKOSOFT
02 May 2019, 19:05
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

Re: How to assign action for Double Click? Topic is solved

Really I know how to disable key. But in TAB and BKSP case is problem here: - if is pressed it check keyboard - if is it main keyboard or keypad - then it does action by detection: sends TAB/BKSP or calls program - problem is that before action it does default action For explaining keypad: I'm using...
by MIRKOSOFT
01 May 2019, 15:16
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

Re: How to assign action for Double Click? Topic is solved

Last Q bit off topic. I see that is possible to hide default action completely - example is code above. I'm using 1 keyboard and 1 keypad. I have on keypad two keys which I want to differ and their default action is hard to force on keyboard and hard to hide on keypad. I have code which correctly re...
by MIRKOSOFT
01 May 2019, 11:44
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

Re: How to assign action for Double Click? Topic is solved

Yes, that works perfectly. I used them both, even I have new action to right button - hold, which is in Windows default not handled or I know not about. But Q is simple: How to fix right double click? It is near not reachable... I tried to use longer time, also smaller time to handle it, nothing hel...
by MIRKOSOFT
30 Apr 2019, 17:33
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

Re: How to assign action for Double Click? Topic is solved

Thank you! The second one works great! Else one Q: I tried to map the same way right button double click. It works, but how to filter context menu display when is right button double clicked? And if it is single click, display context menu only in this case. This is only one problem. Thank you very ...
by MIRKOSOFT
30 Apr 2019, 04:55
Forum: Ask For Help
Topic: How to assign action for Double Click? Topic is solved
Replies: 14
Views: 838

How to assign action for Double Click? Topic is solved

Hi! I have program which has for me not wanted action at double click. I want to assign to mouse double click other action, anything like: DblClick::^P or DblClick:: Send, {LCtrl Down}{p 1}{LCtrl Up} return I know how to send double click: Send, {Click 2} But how to catch double click? Thank you for...
by MIRKOSOFT
23 Mar 2019, 21:39
Forum: Ask For Help
Topic: Is possible to combine window exe and class in #If WinActive?
Replies: 3
Views: 245

Re: Is possible to combine window exe and class in #If WinActive?

I found problem!

I modified next #IfWinActive.
There was one space after WinActive instead WinActive("...
Ok, I try it without space.

Now all works!
Thank you very much! Tha was my fault.

Miro
by MIRKOSOFT
23 Mar 2019, 21:16
Forum: Ask For Help
Topic: Is possible to combine window exe and class in #If WinActive?
Replies: 3
Views: 245

Re: Is possible to combine window exe and class in #If WinActive?

What it did wrong?

I entered it into script and after tested - works - but identification is wrong - it affects whole script!
Even, I reloaded script, then end and restart - whole scripting it affected even after removing!
I hope that logoff it solves.

Miro
by MIRKOSOFT
23 Mar 2019, 04:42
Forum: Ask For Help
Topic: Is possible to combine window exe and class in #If WinActive?
Replies: 3
Views: 245

Is possible to combine window exe and class in #If WinActive?

Hi! I need to identify window by Class and separate programs running this class by ahk_exe Is possible to combine them? For example: Window Class: ahk_class gdkWindowToplevel Window Exe: ahk_exe x128.exe Window title: *C128* (wilcards * are used for variable title containing not same text everytime)...

Go to advanced search