Leaderboard
Popular Content
Showing content with the highest reputation on 09/27/2020 in all areas
-
Hey everyone, just got back from my 2 month break from posting in this topic, LOL Before you add this project to the long list of other "AutoIt wannabe languages", let me tell you that I am still actively thinking about how to progress forward . As a matter of fact, the reason for the delay is that I got busy with another freelance project and so I haven't been able to concentrate on this project with that and all the other good stuff in life. Today I would like to break the silence by reporting on some progress I made while I was quiet. -- I have started work on the next step of parsing, which is syntactic analysis, i.e taking those tokens and building the actual code tree so that the interpreter/compiler can know what the code is trying to do. Before I could start writing code to do that, I need to get all the tokens in a neat array, so I implemented a linked list to do just that... a linked list is a kind of dynamic array, to which elements could be added/removed easily compared to traditional arrays: https://github.com/DcodingTheWeb/EasyCodeIt/commit/5c43ffd392e8a2c26d9187767298167cf2de66c2 I also modified the output code to work with the new dynamic array instead of getting the tokens one-by-one and printing them without storing anything in the memory, and I have also added a neat feature which lets the user know in advance if there are any unknown tokens in the code, which was previously not possible . Here is some sample output: ConsoleWrite("This script has an unknown token" & @CRLF) % ; Here it is !!! WARNING: Unknown token(s) encountered !!! ---### TOKEN ###--- Type: Word Data: ConsoleWrite ---### TOKEN ###--- Type: Bracket Data: ( ---### TOKEN ###--- Type: String Data: This script has an unknown token ---### TOKEN ###--- Type: Operator Data: & ---### TOKEN ###--- Type: Macro Data: CRLF ---### TOKEN ###--- Type: Bracket Data: ) ---### TOKEN ###--- Type: Unknown Data: % ---### TOKEN ###--- Type: Comment Data: Here it is2 points
-
JockoDundee, I know you are only joking, but I would take this opportunity to point you, and any other readers, to the Forum rules - particularly the "Interacting with this website" section. What you suggest has been done in the past and has not ended well for the miscreants. M231 point
-
Siwa, So the date elements are not editable? Why then did you have a date control in the original GUI? The UDF allows you to have a date control in an editable element - I will add one to show you. And I do not understand the "Month Dates" column - if you have a full date in "Dates" why do you need a further "Day of Month" indication? Colouring the element is no problem - but what is the relationship between the 2 columns? If you can provide the link logic and the required colours I can try and get them correctly displayed M231 point
-
Siwa, My GUIListViewEx UDF would seem a very good choice to use in your project as it allows you to edit all the cells of the ListView by a simple double-click. Give me a list of the columns you would want to see in the ListView and what you want displayed in them and I will set up a basic example to show you how it might work. M23 P.S. When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - I know what I wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation.1 point
-
[HELP]I Can'nt press keystroke
Earthshine reacted to JLogan3o13 for a topic
Same old, tired excuse we hear all the time. Sad that botters can't even come up with new excuses.1 point -
rules are rules, just avoid mentioning 'game' or 'games' in the future you got it1 point
-
use 'autoit window info' tool and get info of the game window and send a screenshot of that in. (is metin2.exe your game?) ; <--- use 'autoit windows info' to get class and title of your game1 point
-
First you get body element of the page and then get the text of that element. $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//body") $sText = _WD_ElementAction($sSession, $sElement, "text")1 point
-
$oItem = _OL_ItemModify ($oOutlook, $EntryID, "Default", "Categories=Blue" , "Subject=Test") needs to be $oItem = _OL_ItemModify ($oOutlook, $EntryID, Default, "Categories=Blue" , "Subject=Test") What is the value of @error and @extended after you call _OL_ItemModify?1 point
-
HotKeySet('{F1}', '_heyNotepad') HotKeySet('{ESC}', '_Exit') Local $_CLASS_TITLE_NOTEPAD = '[CLASS:Notepad]' ; Run Notepad with the window maximized. Run("notepad.exe") ; Wait 5 seconds for the Notepad window to appear. WinWait($_CLASS_TITLE_NOTEPAD, '', 5) While Sleep(10) WEnd Func _heyNotepad() If WinActive($_CLASS_TITLE_NOTEPAD) Then Send('{HOME}'&'computer: got fetch my keyboard!'& @CRLF) Else MsgBox(0, @ScriptLineNumber&': error', 'notepad is not focus') EndIf EndFunc Func _Exit() Exit EndFunc1 point
-
Your question is also very vague. If you want help from the forum, I suggest that you provide more details, ie -- What keystroke do you need to send? What application are you trying to automate? Etc1 point
-
Your question has been asked & answered NUMEROUS times. Why don't you try using the search box and type in: keystroke AND background1 point
-
[Resolved] GUICtrlCreateInput Limit Characters
PoojaKrishna reacted to jfcby for a topic
Hello, I'm trying to limit the characters in a GUICtrlCreateInput control. When I use GUICtrlSetLimit it only works when the charactes or numbers are being typed in. How can I set the character limit when I use GUICtrlSetData to change the input text? #include <GUIConstantsEx.au3> Example() Func Example() Local $msg GUICreate("My GUI limit input 3 chars") ; will create a dialog box that when displayed is centered GUICtrlCreateInput("", 10, 20) GUICtrlSetLimit(-1, 3) ; to limit the entry to 3 chars GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example Thank you for your help, jfcby1 point -
straight from help "HotKeySet" AT THE BOTTOM of the page are great examples ; Press Esc to terminate script, [color="#ffffff"]Pause[/color]/Break to "[color="#ffffff"]pause[/color]" Global $Paused HotKeySet("{[color="#ffffff"]PAUSE[/color]}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc 8)1 point