ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Skrommel's Software

LabelControl

<< < (5/5)

fafaffeldifuffle:
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 ---;----- Input the numbernumber=Loop{  Sleep,0  digit=0  Loop,10  {    Sleep,0    GetKeyState,state,%digit%,P    GetKeyState,numpadstate,Numpad%digit%,P    GetKeyState,altstate,Alt,P    If (altstate="U") {      If (state="D" Or numpadstate="D" )      {        number=%number%%digit%        If (StrLen(number)>StrLen(counter))          number=        ToolTip,%number%        Sleep,200      }      digit+=1    }  }  GetKeyState,state,LCtrl,P  If state=U    Break}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!

Cheers

Phil

Navigation

[0] Message Index

[*] Previous page

Go to full version