
charvi
Active Members-
Posts
150 -
Joined
-
Last visited
Profile Information
-
Location
Belgium & Luxembourg
charvi's Achievements

Prodigy (4/7)
0
Reputation
-
Here: http://dundats.mvps.org/help/ It's also new to me. Until now I only used the Help file found when hitting the [F1] key in the SciTE Editor. Only a pity that the examples are hard to read (too small).
-
JamesBrooks, Together with your Avatar I could not miss the Help File
-
Cryoma, The symbol for comments is the semi-colon ( ; )
-
I agree 100%! But it's just for nostalgia reasons... Ah, there we see the good old DOS prompt!
-
Estrazione valori da una stringa
charvi replied to Roby123's topic in AutoIt General Help and Support
Hmm, my idea is that you might try to write a kind of OCR (Optical Character Recognition) program by scanning the pixels on the screen... -
Hello everybody, This is my attempt to create an universal DOS alike Input Editor, a program I started to write end 2008. It is working well, but I have a problem with the speed settings. If typing slowly, it works well, but some people can type very fast, and then problems arise, because a key is still pressed (= not yet released) while a finger of the other hand is already pressing another key... The result is that some characters are missing. At the other side, if the speed is too high (variable $i_StdChrSpeed) repetition of characters is possible. Normally, when a key is pressed, say 'K', then another say 'E', the first key 'K' is still being captured. This means that when holding K and E pressed together a long time, you get KEKEKEKEKEK.... To solve this problem, it is necessary to be able to verify if the key K is released or not, before re-capturing it. Because the listing is very long, I have linked three files for you to download: File iops.au3 : http://www.charvi.com/au3/iops.au3 File iopsTest.au3 : http://www.charvi.com/au3/iopsTest.au3 File DOSLIKE.FON : http://www.charvi.com/au3/DOSLIKE.FON After downloading the three files, please install the DOSLIKE.FON bitmap font. Then, test iopsTest.au3, and I would like to hear suggestions from you... Thank you in advance and have fun! PS: note that NOT all characters are working, just the letters, left and right arrows, and Backspace.
-
Fascinating... These are those small things put together that make AutoIt so powerful. I also appreciate the caret change when toggling the Insert mode. However, the underscore's caret is an "upperscore"... I have no clue how to put it lower at this time. Perhaps like Yashied demonstrated a while ago, with a (blinking) bitmap? It must be possible anyway, because the SciTE itself does it... I'm almost ready for the 'DOS alike Input Editor'. It will be a very long code, and rather primitive, that's why I'm asking all those questions...
-
MrCreatoR, Thank you for your understandable explanations, and for the remark in the line GUICtrlSendMsg($input1, $EM_SETSEL, 4, 4) ;first parameter (4) is the end of selection position, and the second is the start of selection position as well for the additions about {Right 4}. I will try to use GUICtrlSendMsg() instead of Send() from now on. As you perhaps have seen in my parallel posting http://www.autoitscript.com/forum/index.php?showtopic=95809 I still have a problem with Insert/Overwrite toggle method. Thanubis said there that it is not possible to get this behavior in a standard input field. Is there a workaround with GUICtrlSendMsg() or with a DLL call? Jos' example worked there because the SciTE Editor supports this toggle mode. Beside that, I also need to know in which position the Ins/Ovw is toggled (result as a Boolean value). And in an hour or three, I will post a new topic 'DOS alike Input Editor' with code that I was trying to write during the first days of this year... but abandoned because of typing problems. But it will show what I would like to obtain as a final Function.
-
Fascinating... You are right, I could not toggle in any program except in Word, Excel, the Command Prompt and.... the SciTE Editor!!! Perhaps this might be possible with a DLL call, but this is beyond my knowledge too. Tomorrow I will post in this forum an input editor I was trying to write in January, but gave up because of typing speed problems. If anyone is interested, please watch for the title 'DOS alike Input Editor'
-
Thanubis, Your idea is excellent (and approved!), but my code was just an imagined example for the Toggle Insert/Overwrite problem. That's right, DOSLike is not a standard font, and I forgot to remove it when I posted it here. Anyway, if you do not have that font, it will be ignored and I believe that "MS Sans Serif" will be used instead, which does not affect the Toggle problem (which is at this time not yet solved...).
-
Jos, Indeed, your example works fine, but it does not work in my script, where I would like to place the caret at the fifth position, then prompt for a number that will replace the 123-456 in the example below. Even manually hitting the Insert key seems to have no effect! (strange...) #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <WinAPI.au3> $hWnd = GUICreate("Input with caret at desired position", 350, 130) GUISetFont(14, 400, 1, "DOSLike") $btnOK = GUICtrlCreateButton("&OK", 218, 70, 80, 30, 0) GUICtrlCreateLabel("Number: ", 20, 24, 200, 20) $input1 = GUICtrlCreateInput("555-123-456", 100, 22, 200, 24) GUISetState() GUICtrlSetState($input1, $GUI_FOCUS) Send("{Home}{Right}{Right}{Right}{Right}{Ins}") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case -3, $GUI_EVENT_CLOSE, $btnOK Exit EndSwitch WEnd
-
Thank you for your reply MrCreatoR, this is indeed a good thing to know too. But what is the real difference/advantage with the use of GUICtrlSendMsg() against Send()? Your example also works with the more human-readable Send("{End}"). You told it's more reliable, does this mean that Send() is not reliable enough in some circumstances? For example, when I make an input where I'm giving the user a typing facility by locating the caret at the 5th position, I'm using the Melba23 idea (in the case a number for 95% should begin with '555-'): #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <WinAPI.au3> $hWnd = GUICreate("Input with caret at desired position", 350, 130) GUISetFont(14, 400, 1, "DOSLike") $btnOK = GUICtrlCreateButton("&OK", 218, 70, 80, 30, 0) GUICtrlCreateLabel("Number: ", 20, 24, 200, 20) $input1 = GUICtrlCreateInput("555-123-456", 100, 22, 200, 24) GUISetState() GUICtrlSetState($input1, $GUI_FOCUS) Send("{Home}{Right}{Right}{Right}{Right}") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case -3, $GUI_EVENT_CLOSE, $btnOK Exit EndSwitch WEnd
-
How do I toggle keyboard Insert and Overwrite modes? I tried the below code with no success. It always inserts characters. Send ("{Ins}") The Help seems not to provide an {Overwrite} option.... ?
-
Thank you Melba23 for your fast and correct answer!
-
When an input contains a default value, and the program focuses on that input, the value is automatically selected, so when the user begins to type, it is cleared. My question: how to remove the auto-selection? Here a simple code #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <WinAPI.au3> $hWnd = GUICreate("Input without preselected input", 400, 300) GUISetFont(14, 400, 1, "DOSLike") $btnOK = GUICtrlCreateButton("&OK", 260, 248, 80, 30, 0) $input1 = GUICtrlCreateInput("Value1", 20, 24, 200, 24) $input2 = GUICtrlCreateInput("Value2", 20, 80, 200, 24) GUISetState() GUICtrlSetState($input2, $GUI_FOCUS) ; here we focus to the second input While 1 $nMsg = GUIGetMsg() Switch $nMsg Case -3, $GUI_EVENT_CLOSE, $btnOK Exit EndSwitch WEnd