Again I say "If it is so, then it is so"
I assume DELHPI is using its own controls that allows much more
control over the controls and there events.
Sorry, but I again and again try to improve AHK, and I only know what
I can do with DELPHI (this is my programming-background).
It was really easy for me to program any formatted or masked input
in Delphi by reacting on input before it is shown, and so I thought
this would really be useful for AHK, because it would be easy to do
nearly every Input-Thing a User might want to implement.
Your code-snippet
Code:
EditChanged:
GuiControlGet, MyEdit
StringReplace, MyEdit, MyEdit, +,, UseErrorLevel
if ErrorLevel
SoundBeep
; ... etc.
GuiControl, , MyEdit, %MyEdit%
return
is not much help to detect if a plus or minus is input at the right place.
I tried some walkarounds that works better but I always get
some sort of flicker (+ placed wrong, remove from edit-text, send
changed edit-text back to edit-control).
I also tried to define a lot of Hotkeys (+-.0123456789) and react on
them. Maybe if I now succeed in getting the current cursor-position
in the edit-field I can do a flickerfree walkaround.
You have written:
Use ControlGet to get the row/column of the caret as well as the selected text in an Edit. If you have time please give me a little precise script-example, on how to
get the current cursor-position in the editfield. I know you now say "Can
this idiot not read the Helpfile", but the helpfile is a mess (to be somewhat
hard). Should a USER be forced to read each line of the help-File or do
a hour-lasting search on the forum [often without success] to solve a
little problem. Of course anybody can post a question to the forum and
get an answer, but shouldn't it be, that the normal helpfile should
answer MOST questions. Wouldn't you be happy if the SCRIPT-Section
of your AHK-Page would be much bigger than the HELP/Support-Section?
Thats, why I started my AHK-Howto (and stopped it because of lacking
interest, at least that was my feeling).
AGU was the only that gave
me some encourage to go on with it.
There really should be a Forum-Wide discussion where AHK is going.
Adding a DLL-Call is fun, but the average User does not even know
how to handle this ("I know DLL's, but what DLL do I need, and what
functions can I call, and how do I call them, and how do I receive result").
On the other hand you said in some post "the average user will not use
this or that, so it is low priority". Is it low priority that a user (like me)
is not able to allow the script-user to enter a float, without flicker. Is
it low priority that GUI,Color is not working bugfree with sliders? Is it
low priority that placing controls precise on a Tab-Control is not
possible?
What is the priority of a program? That the User can easily understand
and use the implemented functions, or that he is forced to find
workarounds to get the program do what he wants?
I only wanted to write a GUI for my BigInteger-Script (I wanted to
update it for Big-Floats) so the user can enter a float. It is not possible.
Do I want to much? I have looked at some AHK-reviews and some
threads about AHK on other forums. Often you find the advice
"Only for advanced users!". Why?
Doing a
Code:
#n::
Run Notepad
return
is easy, but if you want a little more you are trapped.
All ideas I posted have been simple ideas, and everytime the answer
was "Low priority" or "Hard to do" or "use DLL-Call" or "will break
existing scripts". Some day you will be forced to go to BETA-State
and BREAK existing scripts.
I know it, you know it.
Is it better to think about things now, clear up things, define a direction
where AHK will go, what it will be. Thinking about this now, or be like a
lemming, some day standing before a high cliff not knowing what to do?
Sorry, but I am a little upset now (I will calm down again)
and there is a great chance that I am wrong, but I think there are a lot
things going wrong with AHK.