AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

prevent char stress

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
azure



Joined: 07 Jun 2007
Posts: 694

PostPosted: Sat Jul 07, 2007 6:02 am    Post subject: prevent char stress Reply with quote

hello

1)
in greek when you click the shift+; nothing happens but in the next char you ll type it will stress it like this: ι -> ϊ

how can I make shift+; to type : in greek as it does in english?

2)
and generally, how do I represent the click of a key that does nothing but it stresses the next character?

3)
how do I make hotkeys specific for a "keyboard input" ?

thanks
Back to top
View user's profile Send private message
azure



Joined: 07 Jun 2007
Posts: 694

PostPosted: Sun Jul 08, 2007 1:46 pm    Post subject: Reply with quote

Sad
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Nov 22, 2007 4:40 pm    Post subject: Reply with quote

mipws brikes kata tuxi lusi s auto to problima?? me paideuei edw kai xronia!! emena stin arxi de mou bgaze pou8ena tono ektos apo ena programma, to winedt (gia latex) ..alla twra de mou bgazei oute ekei..diladi exei tin idia sumperifora me ti dikia sou periptwsi..mia bgazei mia de bgazei..
thanks
sotiris
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Thu Nov 22, 2007 4:57 pm    Post subject: Reply with quote

Haven't you tried remapping?

Code:
+;:::

_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iason



Joined: 01 Nov 2005
Posts: 135

PostPosted: Thu Nov 22, 2007 5:55 pm    Post subject: Reply with quote

Quote:
how can I make shift+; to type : in greek as it does in english?
You have it already: Shift+Q. Anyway you can remap as said above.
Quote:
2) and generally, how do I represent the click of a key that does nothing but it stresses the next character? ... 3) how do I make hotkeys specific for a "keyboard input"?

You can check the language in your scripts. Examples:
Code:
WinGet, ActiveWinID, ID, A
tid_ActiveWinID := DllCall( "GetWindowThreadProcessId", "uint", ActiveWinID, "uint", 0 )
lang_id := DllCall( "GetKeyboardLayout", "uint", tid_ActiveWinID ) & 0xFFFF
if ( lang_id != 0x0408 ) ; english
PostMessage, 0x50, 0x1,,, A ; toggle to el
if ( lang_id != 0x0409 ) ; greek
PostMessage, 0x50, 0x1,,, A ; toggle to en

Hope it helps. Kali epityxia! Wink
_________________
help to be helped
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Nov 24, 2007 9:49 pm    Post subject: Reply with quote

iason, have you by any chance come across the same problem as me and azure? not being able to type tonous every time? I m under the impression it must have to do with too many applications/ahk scripts running at the same time...after i had closed some applications and ahk scripts, everything was ok (and i m almost sure it's not the ahk scripts themselves that produce the problem in the first place!)

sorry for typing in greek before btw..
sotiris
Back to top
iason



Joined: 01 Nov 2005
Posts: 135

PostPosted: Mon Nov 26, 2007 12:56 pm    Post subject: Reply with quote

Quote:
iason, have you by any chance come across the same problem as me and azure?
Explicitly i would not call this a "problem", since this is the way the keys are supposed to function. So if you want it otherwise, refer to standards, and remap. AHK is perfect on that..

As to the third question, just detect the keybord state beforehand and then instruct your hotkeys to act in either case.

Quote:
after i had closed some applications and ahk scripts, everything was ok
This makes me suspect that you had conflicts in your script(s). AFAIK.
_________________
help to be helped
Back to top
View user's profile Send private message
sfranky



Joined: 25 Nov 2007
Posts: 8

PostPosted: Mon Nov 26, 2007 1:11 pm    Post subject: Reply with quote

I m sorry, my post wasn't clear..I skimmed through azure's post and wrongly assumed it was about the same problem as in one of his other posts, not being able to type in accents (tonous) *every single time* .. This is what my problem is, not the other three.. I can't type accents all the time..
Back to top
View user's profile Send private message
iason



Joined: 01 Nov 2005
Posts: 135

PostPosted: Mon Nov 26, 2007 5:23 pm    Post subject: Reply with quote

Can't type accents? No 'iota me tonno', no 'omikron me tonno'? Probably this does not have to do with AHK... Are you you on windows with some sort of MUI or what? Strange... Confused
_________________
help to be helped
Back to top
View user's profile Send private message
sfranky



Joined: 25 Nov 2007
Posts: 8

PostPosted: Tue Nov 27, 2007 1:20 pm    Post subject: Reply with quote

No, no mui..i have a theory, that too many ahk scripts overload the system and it is somehow unable to deliver the tonnos every single time..
if i close some of them the tonnos is pressed more frequently!!
One of my scripts has about 100 hotkeys and 50hotstrings..maybe that could burden the system?
Sad
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Tue Nov 27, 2007 5:01 pm    Post subject: Reply with quote

that should not be much of a burden at all. What is the CPU usage of each program that has issues?
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
iason



Joined: 01 Nov 2005
Posts: 135

PostPosted: Wed Nov 28, 2007 9:59 am    Post subject: Reply with quote

I would suggest that you check all those hotkeys that interfere with keyboard, i.e. have commands like Send, Sendraw etc.
I once had this type of problem with a hot key that had to do with Left-Click and i finally resolved playing with SetKeyDelay.
_________________
help to be helped
Back to top
View user's profile Send private message
sfranky



Joined: 25 Nov 2007
Posts: 8

PostPosted: Tue Dec 04, 2007 11:18 am    Post subject: Reply with quote

thanks very much! It could be that, since I do have the lmb as a hotkey in different situations!
i will try it as soon as i can and post any results here.. thanks again!
sotiris
Back to top
View user's profile Send private message
sfranky



Joined: 25 Nov 2007
Posts: 8

PostPosted: Fri Dec 07, 2007 6:22 pm    Post subject: Reply with quote

hmm i rechecked the script, tried commenting out various sections, and guess what: it doesn't really matter which part you comment out!! i tried commenting out block by block, and momentarily each time I thought I had found the culprit, but it turns out that no specific block is responsible for the accents not printing !!!! weird or what?!
Back to top
View user's profile Send private message
sfranky



Joined: 25 Nov 2007
Posts: 8

PostPosted: Sat Jan 05, 2008 10:28 pm    Post subject: Reply with quote

update!
this only happens when i have hotstrings in my scripts!!
(greek or english, doesn't matter)
Could this be a bug?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group