Leaderboard
Popular Content
Showing content with the highest reputation on 12/02/2020 in all areas
-
Very clear. With Chrome you cannot use _IE* functions. You need to use WebDriver as you were already told. We will not spoon-feed you with the code. You will need to go thru Wiki to learn how to install WebDriver, then go thru all examples (and other materials) to understand how it is working. After creating your script, if you still have problem, please come here with your code, and we will gladly help you out.2 points
-
I am still working on the expression parser, the code is not complete but since it has almost been a week since the last update, so I thought I'd give you guys a sneak peak Here is a screenshot with the graphical representation of an expression's parse tree: The expression is pretty simple: 1 - 2 / 3 * 4 But the final result looks complex and huge because there are multiple layers of nodes for each bit of info... all thanks to C's strict type system, where you can't put anything anywhere like you usually would in a dynamically typed language like AutoIt. Here is a snippet of the code (the expression parsing function) for those are interested: There are no doubt many bugs in there, and a lot of the stuff needs to be completed, but I will try to post weekly updates to show the progress.2 points
-
EasyCodeIt A cross-platform implementation of AutoIt Introduction: EasyCodeIt is an attempt at implementing a programming language which is backward compatible with a sub-set of AutoIt which would work across multiple platforms with many aspects being agnostic to the platform-specific differences. Currently the primarily targeted platforms are Linux and Windows, more platforms may be supported in the future as per popular demand. For example it should be easy enough to port to Unix-like platforms such as BSD and Mac with the help of maintainers who are familiar with them. The main motivation behind the creation of this project is the lack of a proper easy-to-use scripting language in Linux, while there are numerous scripting languages which natively support it, none of them are as user-friendly and easy to use as AutoIt. (The "Easy" in "EasyCodeIt" reflects this) There was a previous thread in which the project was originally started, but it got too big and the discussion is too cluttered and hard to follow for any new readers, here is the thread for those who are interested in reading it: Progress: Frontend ✅ Tokenizer 🚧 Parser (work in progress) ✅ Expressions 👷♂️ Statements (current priority) Backend ⏰ Interpreter (scheduled) I am currently working on expression parsing and syntax tree building. -- This section will be updated in the future with new progress. To stay notified 🔔 follow this thread to get update notifications (by using the "Follow" button on the top-right corner of this page) and 👁️ watch the GitHub repository to get any new activity on your feed. Code: The code is available on GitHub, please 🌟 star the project if you like it and would like to show your support, it motivates me a lot! (Also don't forget to 👍 Like this post ) Chat: I created a room in Matrix (an open-source federated chat system) for EasyCodeIt, you can join it to chat with me and others who are in the room, it might be a good way to get the latest status updates from me You can preview the room without joining, and you don't need to be connected to it 24/7 like IRC. It works a bit like Slack for those who are familiar with it. Forum: I have created a dedicated forum to post more frequent updates, possibly in their own threads to better organize the discussion. Please sign-up and follow the blog section to get updates. By the way, you can also post pretty much anything there, both technical and non-technical stuff, it is intended to be a hangout for techies but not only for them. So casual discussions, funny cat videos etc. are allowed!1 point
-
Microsoft Edge - WebView2, embed web code in your native application
FrancescoDiMuro reacted to LarsJ for a topic
We're back in business. Tonight I've installed the latest version of Visual Studio, the WebView2 GitHub sample files and the WebView2 NuGet package as described in the documentation for the WebView2 getting started example. Step 1 - 3 in the documentation. After a single small error, the build process succeeded in the second attempt. The executable WebView2 file started automatically (the Bing search shown in the image in the documentation), I searched for "autoit forums" and then browsed through exactly this thread. So now we have code that works on Windows 10, we have code that can be translated into AutoIt, and we have the WebView2.h header file from the NuGet package that seems to contain all the information needed to create tag description files for ObjCreateInterface() and ObjectFromTag(). I've once again changed the priority of my projects. They are all exciting. But this is the most exciting right now. Already this weekend, I hope to be able to take the first steps in the translation task. HelloWebView.cpp and WebView2.h are contained in the 7z-file. WebView2.7z1 point -
1 point
-
Your problem is the ProcessList. @AutoItPID is unique to each process. Since you are creating 2 different processes, they have their own individual PID. Your ProcessList should look for all AutoIt3.exe and close them. But I would recommend that you close all processes except the one @AutoItPID which should be close normally with Exit. When you have While...WEnd loop, include a small sleep inside so you do not overload your CPU. And please use this tool when you post code.1 point
-
Buttons Aiming to Unintended Targets
pixelsearch reacted to Nine for a topic
One way would be to save the control ids in a MAP array that you can delete easily after usage : #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Version=Beta #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> #include <GUIConstants.au3> Create_Main_GUI() Func Create_Main_GUI() Local $mGUI[] Local $hGUI = GUICreate("Main GUI", 200, 120) Local $idMain1 = GUICtrlCreateButton("Main 1", 0, 0, 200, 40) Local $idMain2 = GUICtrlCreateButton("Main 2", 0, 40, 200, 40) Local $idMain3 = GUICtrlCreateButton("Main 3", 0, 80, 200, 40) GUISetState() Local $aPos, $nMsg, $idKill, $aKeys While True $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_NONE ; not truly necessary, but avoid triggering Case Else for nothing Case $GUI_EVENT_CLOSE ExitLoop Case $idMain1 If Not WinExists("Secondary Window") Then $aPos = MouseGetPos() $hWindow2 = GUICreate("Secondary Window", 160, 69, $aPos[0] - 80, $aPos[1] - 10, $WS_POPUPWINDOW) $idKill = GUICtrlCreateButton("X", 0, 0, 160, 23) $mGUI["Choice 1-1"] = GUICtrlCreateButton("Choice 1-1", 0, 23, 160, 23) $mGUI["Choice 1-2"] = GUICtrlCreateButton("Choice 1-2", 0, 46, 160, 23) WinSetOnTop($hWindow2, "", $WINDOWS_ONTOP) GUISetState(@SW_SHOW, $hWindow2) EndIf Case $idMain2 If Not WinExists("Secondary Window") Then $aPos = MouseGetPos() $hWindow2 = GUICreate("Secondary Window", 160, 69, $aPos[0] - 80, $aPos[1] - 10, $WS_POPUPWINDOW) $idKill = GUICtrlCreateButton("X", 0, 0, 160, 23) $mGUI["Choice 2-1"] = GUICtrlCreateButton("Choice 2-1", 0, 23, 160, 23) $mGUI["Choice 2-2"] = GUICtrlCreateButton("Choice 2-2", 0, 46, 160, 23) WinSetOnTop($hWindow2, "", $WINDOWS_ONTOP) GUISetState(@SW_SHOW, $hWindow2) EndIf Case $idMain3 If Not WinExists("Secondary Window") Then $aPos = MouseGetPos() $hWindow2 = GUICreate("Secondary Window", 160, 69, $aPos[0] - 80, $aPos[1] - 10, $WS_POPUPWINDOW) $idKill = GUICtrlCreateButton("X", 0, 0, 160, 23) $mGUI["Choice 3-1"] = GUICtrlCreateButton("Choice 3-1", 0, 23, 160, 23) $mGUI["Choice 3-2"] = GUICtrlCreateButton("Choice 3-2", 0, 46, 160, 23) WinSetOnTop($hWindow2, "", $WINDOWS_ONTOP) GUISetState(@SW_SHOW, $hWindow2) EndIf Case $idKill GUIDelete($hWindow2) Local $mGUI[] Case Else $aKeys = MapKeys($mGUI) For $i = 0 to UBound($aKeys)-1 If $mGUI[$aKeys[$i]] = $nMsg Then MsgBox ($MB_SYSTEMMODAL,"Info", "Button " & $aKeys[$i] & " was pressed !") Next EndSwitch WEnd EndFunc Sorry I had to rewrite much of it as I cannot stand very long var names ps. I could have streamlined $idMain1 to $idMain3 as only a few numbers differs , but I will leave it to you if you want.1 point -
Hi, There have been far too many occasions recently where the Mod team have been trying to determine whether a particular thread is legal and a member has posted offering help to the OP. If the Mods are concerned about a thread, please refrain from posting within it - and certainly do not offer anything at all useful - until the all-clear has been given. After this announcement has been posted, we will regard any future instances as unfriendly acts and the poster can expect to be sanctioned - you have been warned. M231 point
-
Posting when Mods are working in a thread
JLogan3o13 reacted to Melba23 for a topic
It seems the message has still not got through - the 2 eager beavers who posted in this thread got a week off: And a word to the wise - the next one gets a month. M231 point -
Unset a Hotkey ?
AndrewSchultz reacted to Alexxander for a topic
Hi all i have this HotKeySet("q", "q") HotKeySet("ض", "da") Func q() MsgBox(0,"","q") EndFunc Func da() MsgBox(0,"","da") EndFunc While 1 Sleep(10) WEnd look at the upper left of your keyboard for letter "q" lets call that key "key1" if you have an English keyboard you will see "q" written on "key1" if you have an Arabic keyboard you will see "ض" written on "key1" when i run the script if my keyboard style was Arabic ill get "ض" if it was English ill get "q" but when i switch the keyboard language while the script is running i'll get the old msg box example: i ran the script with the English keyboard language then i pressed "q" i got "q" when i switch the keyboard language to Arabic (while the script is running) then i press q another time ill still get "q" and the same thing for Arabic i still get "ش" when i switch the keyboard lang while the script is running so i have to restart the script so Autoit can detect what is pressed exactly my question is can i unset a hotkey with the script is running or maybe reset hotkey while the script is running ? maybe it will detect what is processed correctly ? any ideas ?1 point -
1 point