Jump to content

foozoor

Active Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

156 profile views

foozoor's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. After further researches I think I will do this as it's probably the simplest solution.
  2. I tried all the code samples from the forum and internet! I tried to modified them and I have got the EDID but not for all the monitors and impossible to retrieve the info I want: Model name (if any) Manufacturer Plug and Play ID Data string (if any) Is there an EDID full parser?
  3. I tried everything and nothing works.
  4. How to retrieve monitor information like manufacturer name, product name or the data string? WMI and "Win32_" functions don't work at all on my machine. I know it's possible because madVR does it correctly: Thanks in advance for your help!
  5. Ok I found what went wrong, it seems it doesn't work with "Adjust for best performance" in performance options. Your code works great with default performance options! Thanks you!
  6. I didn't know my gui was that complex. Maybe should I use one control by line to avoid these kind of problems? I tried your code but it seems to be a little bit buggy:
  7. I have a problem with my little gui application that doesn't resize properly. Here is the current code: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> InitGui() Func InitGui() Opt("GUICoordMode", 0) GUICreate("TestApplication", 320, 268, -1, -1, $WS_SIZEBOX) GUISetBkColor(0x00E0FFFF) Local $idList = GUICtrlCreateListView("Name|Category|Action|Description", 8, 8, 304, 200) GUICtrlSetResizing($idList, $GUI_DOCKLEFT + $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKBOTTOM) Local $idProgress = GUICtrlCreateProgress(-1, 208, 220, 20) GUICtrlSetResizing($idProgress, $GUI_DOCKAUTO + $GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKHEIGHT) Local $idBtn = GUICtrlCreateButton('OK', 227, -1, 78, 20) GUICtrlSetResizing($idBtn, $GUI_DOCKAUTO + $GUI_DOCKRIGHT + $GUI_DOCKBOTTOM + $GUI_DOCKHEIGHT) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd EndFunc Here is what I get when I start the application: Here is what I get when I resize the application: As you can see there are some weird problems: First why my button is smaller than my progress bar? They have the same heigh! How to solve this? And how to keep 8px between the progress bar and my button after resize? Thank you in advance for your precious help.
  8. Thank you for this approach. Thank you, it corresponds perfectly to my problem and you solved it! What are these errors and details to check? Is there a way to improve the script? Is there a way to retrieve the filename automatically or at least its extension while downloading?
  9. What do you mean by login? I can't find a proper way to grab cookies and send/inject them to download the file with AutoIt.
  10. Sorry I forgot some piece of code in the first post. I fixed it now. I want to download files from MajorGeek, from this kind of url: http://www.majorgeeks.com/mg/getmirror/multi_commander,1.html The python script grabs cookies from: http://www.majorgeeks.com/mg/getmirror/chromium,1.html And download the file from http://www.majorgeeks.com/index.php?ct=files&action=download& by injecting the cookies. I have got this script from multiple forums and stackoverflow.
  11. How to grab cookies from a website url? And how to download a file that needs cookies? Here is a working python script but I really prefer AutoIt and I have no Python skill: import os import tempfile import requests def from_url(url, cookies=None): response = requests.get(url=url, cookies=cookies, allow_redirects=True, stream=True) filepath = tempfile.NamedTemporaryFile().name with open(filepath, 'wb') as f: for chunk in response.iter_content(chunk_size=1024): if chunk: f.write(chunk) f.flush() return filepath def from_majorgeek(root): # Start a new requests session. session = requests.Session() # Get the root page cookies. response = session.get(root) cookies = session.cookies # Download the file. filepath = from_url('http://www.majorgeeks.com/index.php?ct=files&action=download&', cookies) # Return the downloaded file path. return filepath if __name__ == '__main__': f = from_majorgeek('http://www.majorgeeks.com/mg/getmirror/chromium,1.html') print(f) Thanks in advance for your help!
  12. Thank you so much for the update! Will you host this on github?
  13. Everything works great. I was wondering if development was still active (https://github.com/jvanegmond/au3_uiautomation) and what are the new features?
  14. Are you still working on the next (0.6) version? Any release date?
×
×
  • Create New...