avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday May 20, 2022, 9:37 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - fafaffeldifuffle [ switch to compact view ]

Pages: [1]
Skrommel's Software / Re: LabelControl
« on: May 12, 2015, 10:52 AM »
Hi everybody,

sorry to revive this zombie thread, but I've been experiencing annoying problems with the otherwise wonderful LabelControl application for a long time and now I just wanted to share my solutions with other users.

Problem: German keyboards (and likely some others) come with an AltGr key. AltGr is always interpreted by the OS / by AHK as Ctrl+Alt, so LabelControl always pops up and interferes even if you just want to type for example the the "[" symbol, which is on AltGr+8 on a German keyboard (the non-numpad 8, that is) . Sometimes LabelControl's labels are stuck on the screen after that, too.

Solution: I added another GetKeyState check for the Alt key state into the loop that starts around line 203/204:
Code: Autohotkey [Select]
  1. ;----- Input the number
  2. number=
  3. {
  4.   Sleep,0
  5.   digit=0
  6.   Loop,10
  7.   {
  8.     Sleep,0
  9.     GetKeyState,state,%digit%,P
  10.     GetKeyState,numpadstate,Numpad%digit%,P
  11.     GetKeyState,altstate,Alt,P
  12.     If (altstate="U") {
  13.       If (state="D" Or numpadstate="D" )
  14.       {
  15.         number=%number%%digit%
  16.         If (StrLen(number)>StrLen(counter))
  17.           number=
  18.         ToolTip,%number%
  19.         Sleep,200
  20.       }
  21.       digit+=1
  22.     }
  23.   }
  24.   GetKeyState,state,LCtrl,P
  25.   If state=U
  26.     Break
  27. }
  28. Return

Now if I hold the AltGr key to type a special char, LabelControl's labels pop up, but since the Alt key is down, LabelControl ignores the number being typed and the desired char is typed.

Let me know if this is of any help to anybody  :D :Thmbsup:

Oh and I added another quick'n'dirty hack to prevent IE9+ from crashing, see this other thread (by disabling LabelControl in IE windows).

Skrommel, thank you for this wonderful tool!



Hey Claudio,

funny thing, I'm just working on this issue as well :-)

Your approach to exluding IE windows from LabelControl is quite correct, you just forgot the "not". And I'd move the line from the beginning of the script to around line 24:

Code: Autohotkey [Select]
  1. #IfWinNotActive ahk_class IEFrame
  2. ~LCtrl::
  3. If down=1
  4.   Return
  5. down=1

and then once more around line 215:
Code: Autohotkey [Select]
  1. #IfWinNotActive ahk_class IEFrame
  2. ~LCtrl Up::
  3. ...

works for me :-) Does this help you?

Now if anyone managed to change the modifier key and tell me his/her solution...



Pages: [1]