AutoHotkey Community

It is currently May 25th, 2012, 9:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: prevent char stress
PostPosted: July 7th, 2007, 7:02 am 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2007, 2:46 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
:(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2007, 5:40 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2007, 5:57 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
Haven't you tried remapping?

Code:
+;:::

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2007, 6:55 pm 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2007, 10:49 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2007, 1:56 pm 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2007, 2:11 pm 
Offline

Joined: November 25th, 2007, 6:47 pm
Posts: 8
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..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2007, 6:23 pm 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
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... :?

_________________
help to be helped


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2007, 2:20 pm 
Offline

Joined: November 25th, 2007, 6:47 pm
Posts: 8
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?
:(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2007, 6:01 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
that should not be much of a burden at all. What is the CPU usage of each program that has issues?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2007, 10:59 am 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2007, 12:18 pm 
Offline

Joined: November 25th, 2007, 6:47 pm
Posts: 8
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 7th, 2007, 7:22 pm 
Offline

Joined: November 25th, 2007, 6:47 pm
Posts: 8
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?!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2008, 11:28 pm 
Offline

Joined: November 25th, 2007, 6:47 pm
Posts: 8
update!
this only happens when i have hotstrings in my scripts!!
(greek or english, doesn't matter)
Could this be a bug?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Azevedo, BrandonHotkey, LazyMan, rbrtryn, tomL, vsub, Yahoo [Bot] and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group