Jump to content

behdadsoft

Active Members
  • Posts

    169
  • Joined

  • Last visited

Recent Profile Visitors

486 profile views

behdadsoft's Achievements

  1. Hi. I tried to get text from textbox in setup file using ControlGetText(). it work fine, but when I click on Next Button and then click on Back Button, ControlGetText() don't read text from textbox anymore. Local $title = "Window" if WinExists(title) Then WinWaitActive($title, "") $readtext = ControlGetText($title, "", "[CLASS:TEdit; INSTANCE:1]") Msgbox(0, "", readtext) Endif
  2. Hi. I run a setup file and want when progress percentage is equal to 50, show me a message. I searched in forum and found some code that didn't work. I wrote this code and my problem is GUICtrlRead() only work with autoit controls. I need a solution for read value form outside controls. dose anyone know how can fix this problem? #RequireAdmin #NoTrayIcon ;local variables Local Const $title = "Setup" Local $setup = @ScriptDir & "\mysetup.exe" ; run Setup file Run($setup, "", @SW_HIDE) While 1 local $hwnd = WinWaitActive($title) local $gethandle = ControlGetHandle($hwnd, "", "[CLASS:ProgressBar; INSTANCE:1]") local $precent = GUICtrlRead($gethandle) ConsoleWrite("Precent is: " & $precent & @CRLF) WEnd Exit
  3. When i use #RequireAdmin in my code and then run , it doesn't make Drive Map. while when i want to Write a reg key in windows, i should be use #RequireAdmin in my code. so if i use #RequireAdmin, Drive map will be not create. and if i don't use #RequireAdmin, reg key can't create. are there any solution for this problem?
  4. I found what is the problem. problem is relate to this part of my code: #RequireAdmin when i removed it, my code work very well. According to Help: thank you for your helps. +1
  5. i don't know what happen. now it work fine and made a Map Drive. but i don't know why @error is 0. this result is same on both PCs.
  6. The system cannot find the path specified.
  7. it make different drives. first MsgBox give me @error, and second MsgBox give me return drive map. $Map = DriveMapAdd("*", "\\" & @ComputerName & "\Shared") MsgBox(0,"",@error) MsgBox(0,"",$Map)
  8. Now after changed "*" to "Z:", it give me an error 0 and made Different Map drives, but they don't show in My Computer. I test this code on two PC with Windows 10 X64, but both have same result.
  9. Return 0 and 0. but when i run it again, error code is 3 and return 0. while there is no Map Drives. I do that, but nothing changed.
  10. Yes. Yes. I use Windows 10 x64.
  11. It return Empty String.
  12. There is my shared folder in "Shares" list. so for permissions, do you have any idea?
  13. Hi. I want create a Map drive by autoit, but it always return @error = 0 and can't create Map Drive. At the first, I shared my drive and then with below code i tried to Add Map Drive. but it can't create. DriveMapAdd("*", "\\" & @ComputerName & "\shared") NOTE: I used Windows 10.
×
×
  • Create New...