Jump to content

jpujut

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by jpujut

  1. Thanks for the quick response! Also that seems to have done it! So thanks a lot, I really appreciate it! As a newbie I tried to get similar effect with Sleep(), but couldn't get it to work. Didn't know about AdlibRegister until now, so thanks for that, too! Tho is it possible to have the same effect with just a function of my own (using a flag and a timer like you did) and how exactly does Adlib -functions differ from any other function? Tried googling and function reference, but still didn't quite get it. If you can explain or point me to a good reference, I'd be a bit wiser still! Thanks!
  2. I have a script that gets a list of visible windows and makes a tray item of each in the tray menu. I'd also want it to update every time I want to access that menu again, in case new windows have appeared or some would have been closed. I'm using TrayOnEventMode option and trying to get the update going with TraySetOnEvent($TRAY_EVENT_PRIMARYDOWN...) as in the snippet below. However, the list doesn't update until after the tray menu has been closed again. I think I could work around this by having the script update the list constantly in the background, but that feels like it'd take up unnecessary amount of resources since the script might be used rarely by the user anyway. I tried using TraySetOnEvent($TRAY_EVENT_MOUSEOVER...), and that kind of does it, but it actually still calls my function many times (since the mouse cursor moves quite a bit on the icon) before the tray menu is opened. I could put another menuitem to call the update function, but I'd much rather have just the minimal amount of user actions. Similarly I could have tray menu open with a double click (with TraySetClick()) and have the first click just call the update function, but can anyone tell me if there's a way to call the update once and then have the menu open without these gimmicks? Opt("TrayOnEventMode", 1) TraySetOnEvent($TRAY_EVENT_PRIMARYDOWN, "UpdateWindowsList")
  3. So I have MariaDB 5.5 on RedHatLinux 6.6 as a server. Can someone point me to the direction where I can find out what do I need to get a working database connection? There's Python 2.6.6. on the server, too, if needed. I'm out of my depth with the server and the support personnel aren't that supportive, so I don't know if I need something else on the server side to make it possible for my AutoIt-script on a Windows machine to access the database on the server?
×
×
  • Create New...