
hennenzac
Members-
Posts
12 -
Joined
-
Last visited
hennenzac's Achievements
-
Ways to click something on a website
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
Both those UDFs look quite deep, like you said. I'll have to really work through learning these. Thank you. -
I have read through quite a few forums on ways to select something, mainly mouse click, on a website running on chrome. I am working with Microsoft dynamics 365. Which for the client side it's just a website running on chrome. I want to select a menu in this website. I know mouse click is the last resort, and I tried a mouse click relative to the window. Here are the list of alternatives I know: - pixel search , if unique color - image search, never used before - tabbing and arrow keys , not reliable in my situation since the user can show/hide the ribbon which changes the number of tabs. Anything else I'm missing?
-
hennenzac reacted to a post in a topic: Create a context menu without a right click
-
Create a context menu without a right click
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
@Nine Thank you for the answer. I looked through the code and I saw you did things slightly different and I was wondering the "why" from your perspective. You answered my question. That's interesting on the "Static" controls. I did not know that was a thing. Thank you. -
Create a context menu without a right click
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
@Nine Can you briefly describe what you did different than the first post? -
ioa747 reacted to a post in a topic: Create a context menu without a right click
-
Create a context menu without a right click
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
@ioa747 Thank you very much for this. It does everything I wanted. I was just expecting how to initiate the context menu, but you have my hotkey and everything. Reading through this, It looks like you basically create a transparent gui that you right click on which initiates the context menu. Clever! -
hennenzac reacted to a post in a topic: Create a context menu without a right click
-
Hello, I would like a context menu to pop up at my mouse when I press a hotkey like F3. Then I would select something within that menu to do additional actions. I really like the look of a context menu instead of making a GUI. Everything I've seen so far, like in the examples, is right clicking on a custom GUI that allows a custom context menu. I just want to be able to trigger this context menu with a hotkey no matter what program or window is active. If this is not possible, then I guess I'd have to create a gui to mimic how a context menu looks. Just hoping there was a better way. Thanks!
-
I have a table that'd I'd like to lookup things in my script based on the input. Searching this forum I found some old posts about _ExcelReadSheetToArray(). After not getting it to work, I realized that is no longer in the UDF and _Excel_Range_Read is to be used instead. I also read the _Excel_RangeFind is another method to lookup data in a table. This method seems to use Excel to run these functions, whereas _Excel_Range_Read loads the entire range as an array and autoit does the work. I'm looking at loading a 30k row csv with 3 columns. Does anyone know if either this methods are better with this amount of data? Pros/cons? I'm leaning towards the _Excel_RangeFind so Excel can just run in the background and be the "database" vs. my script holding all that data in a massive array. Or maybe there's a completely different method? Let me know your thoughts!
-
Hello, I have an idea for a script, but I want to know if something already exists and/or what is the best method to write this script. Idea: At my job we use part numbers for all our products. We use these numbers in communications with each other. The annoying thing is I have to look up every number to know what they are talking about. It's tedious and slow. In my head, I'm wishing that anytime I see a part number, I wish I could just hover over it for the description/name of that part. Then I thought of AutoIt and a rough path to get what I wanted. Steps on how it'd work: 1. Highlight the text 2. Quick key to run the macro that would copy the text so my script has the part number input 3. Script will look up the name in a table 4. A tool tip by my mouse or small unobtrusive message box will pop up with the description. Is there a program in Windows that can already do this kind of thing? Or is this worth developing? I did some google searches but it's no easy to word, and nothing but spell check lookups are coming up. Thanks!
-
Window passes WinWaitActive before visible
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
I added a loop to keep trying to move the window until it's in 0,0 position. Probably the more brute force way, but it appears to be working. I added a counter so it can "timeout" and not be stuck infinitely. Not super clean but should work. Any other ideas or feedback is welcome. ;waits for explorer window to show and positions it to 0,0 $hcheckwin= WinWaitActive("Check out project") ConsoleWrite("Window found: "& $hcheckwin & @CRLF) Sleep(1500) $counter = 0 Do WinMove($hcheckwin,"",0,0) Sleep(250) $winPos = WinGetPos($hcheckwin) $counter = $counter+1 If $counter >20 Then Exit Until $winPos[0] = 0 AND $winPos[1] = 0 -
Window passes WinWaitActive before visible
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
I understand what you are saying an I agree that's how I interpreted how it works, but the window does not move even after passing the WinWaitActive. The mouse loading icon is going on loading the windows explorer and the script moves on before the window is visible. Thanks for the reply. -
Window passes WinWaitActive before visible
hennenzac replied to hennenzac's topic in AutoIt General Help and Support
It looks you cleaned up what I had written but with an if statement. This code will still have the problem of moving on in the script because the $hcheckwin will still be true before it shows up on the screen. I need it to delay 3 seconds after its detected in order for the move to work. Thank you for the reply. Good point on the example script in the help file. To verify the handle, I console write it so I can see the name in the console. Before the script continues, I stop the script then check the handle with the AutoIt Window Info tool and they matched. In short, what I'm doing is loading a file into a program. When I click the "Check Out" button in my program, it opens a file explorer window to navigate to the file to open. The tricky thing is this is in our PDM system and it changes how the explorer works/looks vs. native windows explorer. Thus, I have to "click" on the address bar to select and input the address to navigate to the folder where the file is, and then "double click" the file in the folder (it's the only one all the time) to open it. No amount of TAB will get me to the file. Thanks for the reply. -
Hello, Running into an issue with WinWaitActive. I use this to detect a certain window is active by using it's handle which I confirmed its detecting the correct window. Once active, I move the window to 0,0 position so I can mouse click things within that window. This was working for some time but, for some reason, my computer is getting slow or what, but the script continues on and gets off track because it does not move the window to 0,0 but continues the script so the clicks are off. I looked in the help file and in the example for WinWaitActive, they even have a delay for waiting 2 sec for the window to display. I rather avoid timing delays for reliability. Is there a way to avoid this delay? I looked at all the other window wait functions and nothing really helps if it already thinks it's active. Maybe loop until window is at position 0,0? Haven't tried that yet. Thanks. ;waits for explorer window to show and positions it to 0,0 $hcheckwin= WinWaitActive("Check out project") ConsoleWrite("Window found: "& $hcheckwin & @CRLF) Sleep(3000) WinMove($hcheckwin,"",0,0)