Jump to content

Zohar

Active Members
  • Posts

    852
  • Joined

  • Last visited

Recent Profile Visitors

1,458 profile views

Zohar's Achievements

Universalist

Universalist (7/7)

7

Reputation

  1. Thank you very much Nine. Do you know how this UDF makes Firefox navigate to a URL? After all, If we use AutoIt Window Info Tool on Firefox, we cannot see any controls, since Firefox is using some custom drawing library of their own..
  2. KaFu: Thank you very much. I indeed considered using the Command Line, but knew that it will open a new tab each time, and for that reason didn't go that way. I need to re-use the existing tab.. Nine: Thank you for this solution. Does UIAutomation require any addon to be installed on Firefox, for communicating with the browser?
  3. Thank you ioa747 That's actually what I currently use (or to be more accurate, I use Ctrl-L instead of F6, since it's more reliable) Yet this way is problematic: If the page is slow, it affects the time it takes the F6/Ctrl-L focus to happen. That's why I wish to use the "Paste and Go" menuItem, but hopefully, without opening it and selecting the MenuItem, and instead, activating it via a SendMessage().. (if one exists.. and that's where I need help)
  4. Hi all Imagine this scenario: Firefox is running and is the active window, the clipboard has a URL that we wish the browser to navigate to, and now we need Firefox to initiate the "Paste and Go" MenuItem - which will do that. Instead of sending a RightClick, and then moving with the Arrow Keys to appropriate MenuItem, and then simulating en [Enter], maybe there's a way to spare this part, and initiate that MenuItem via a Windows Message? I tried using Spy++ to find such a message, but couldn't. There are 2 possibilities here: 1) There isn't such a Windows Message that is Sent for that MenuItem 2) There is a Windows Message that is Sent for that MenuItem, but I am just not finding it Can anyone please try and see if he gets any success with that? If this is not possible, might there be another way which I could make Firefox navigate to a URL (which is in the Clipboard, or in a Variable), other than the above mentioned way, and without installing a plugin? Thank you
  5. Hi Nine Actually it's the opposite of what I wanted. I am aware of that array in UDPRecv(), but I need it in UDPSend(). I am sending, and wanted to know the Source Port the message got. Also would've been useful to be able to specifically set it, for that UDPSend() operation, but I guess if the first one is not possible, then the second obviously wouldn't be..
  6. Hi all I am sending a UDP Message using UDPOpen() and UDPSend(). I am specifying the Target_IP and Target_Port, and would like to ask if AutoIt somehow enables me to get the Source_Port that was used for sending that UDP Message. Thank you
  7. Hi Gianni Your idea is fantastic. Using ControlSend("","","",$HotKey) indeed does not Trigger the registered HotKey, and instead successfully passes it to the current window. Thank you so much for it, I am using it now as the better method for achieving this. BTW, you wrote that it works only fr current window, but out of curiosity I tried also to send it to a non-active window, and it works well there too. This is a great way to send a registered HotKey to the current program, without needing to Unset+Re-set it.
  8. Thank you very much Nine. I will stay with that solution then.
  9. Hi Nine Sure, I'll give you my exact issue. I set a Hotkey for the F9 key (and some other keys too), and indeed I use this all accross Windows, and it all works good. However, there are some specific programs, inwhich I don't want to capture this key (e.g. F9), and instead I want to pass the key to the program, so I can work with the program in a normal way, and not have some keys that are not pressable for that program, because they are taken by the hotkeys I set. An example of a program like that is PuTTY - a well known Terminal Program: In PuTTY for example I do need the F9 key to be sent to it when I press it, because there are many programs in the terminal that use F9 for various operations. (example: Midnight Commander has a bottom menu, with F1..F10 keys) So what I do in my AutoIt code is I identify the currently active window, and if it's one of the windows in my "Pass List" (which PuTTY is one such window), then I want to pass the hotkey to that program, instead of handling it and masking it from the program. As I wrote in the first post, the solution of Unset+Send+Re-set works, but I don't know if Unsetting and Setting the hotkey every time I press it is the best solution. That's why I asked it here..
  10. Hi all There are situations where you registered a Hotkey for a certain key, and you want to send that key to the currently running program. What is the best way to do it? Currently, the what I do is Unset, Send, then Re-set: Func SendARegisteredHotKey($HotKey,$HandlerFunction_Name) ;This Functions Sends a Registered HotKey via Doing: Unset+Send+Set HotKeySet($HotKey) ;Unsetting, so I can Send it Send ($HotKey) ;Sending HotKeySet($HotKey,$HandlerFunction_Name) ;Setting it Back EndFunc Is there maybe a better way than Unsetting and then Re-setting the Hotkey every time we need to send it? Thank you
  11. OK I am posting here a simple answer: Simply sending [End] many times, till the page loads everything. To stop it, stop the script. While(True) Send("{End}") Sleep(2000) WEnd
  12. Hi all If you go to any Youtube Channel, and click the "Videos" tab, then you will see a list of all videos uploaded. This list does not appear in whole right from the start, you need to scroll down more and more, for it to load more videos to the list, until, in the end, you see the full list of Videos. Do you know how can I save to a file this webpage, but its full version? Thank you
  13. You're right.. Searching for windows registry run at shutdown indeed gives relevant results. I will try it now, thank you.
  14. Thank you all. The purpose of this script it to Log. So the script does not have to run the whole Windows Session, only 1 second during Shutdown/Restart. Using OnAutoItExitRegister() indeed was an option, yet I prefer something by Windows, that happens during Shutdown, that way the script does not have to run the whole session, waiting for the Windows session to end.. That's a nice option, I might indeed use it. BTW, is there maybe a Registry option too? Similar to CurrentVersion\Run, just for Shutdown instead of Starting?
×
×
  • Create New...