Jump to content

Muzaiyan

Active Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Muzaiyan

  1. Muzaiyan

    Pic2Vector

  2. you have an option to use Label or Edit control to show script try this piece of code: $control = GUICtrlCreateEdit("",10,10,200,200) $data = FileRead("Install.vbs") ; read whole file GUICtrlSetData($control,$data)
  3. good always search on the forum before posting a question if you want to use default width, height and style just use GuiCreate("")
  4. you will need many loops according to your requirement 1 to find for files 1 to read section names 1 to compare/replace values e.t.c Your practice is very important than our help
  5. use AutoIt info tool to get the info about control check if window exists check value of @error after ControlGetText() check the value of $x3 after function call ControlGetText()
  6. as i said an idea came to my mind that there may be some difference betweed WinFlash() and _WinAPI_FlashWindow() so i used "i think"
  7. you are right JohnOne i think WinFlash() and _WinAPI_FlashWindow() both can be used
  8. replace $hwnd with the window handle or window title $x3 = ControlGetText($hwnd,"","[CLASS:TEdit;INSTANCE:1]")
  9. Use IniRead() in file management help section to manage your INI Files. Use StringReplace() function to made string replacements. start it by your self it is not too difficult and don't be too lazy. I hope we will see you with a piece of code soon.
  10. oh it was a mistake not an error which is corrected now. but thanks for pointing.
  11. did your script follows the Forum Rules ?
  12. replace "New Text Document.txt" with your file name in the above script
  13. what do you want to do with script?
  14. is this piece of code seems useful #include <WindowsConstants.au3> #include <GUIConstants.au3> #include <File.au3> Global $GUI, $msg, $GUI_WIDTH = 700, $GUI_HEIGHT = 500, $Edit_Control Global $file = "New Text Document.txt" Global $data = "", $font_size Global $GUI = GUICreate("", $GUI_WIDTH, $GUI_HEIGHT, -1, -1, $WS_SYSMENU) $font_size = FileReadLine($file, _FileCountLines($file)) GUICtrlCreateEdit($data, 0, 0, $GUI_WIDTH, $GUI_HEIGHT) GUICtrlSetFont(-1, $font_size) For $i = 1 To $font_size GUICtrlSetData(-1, FileReadLine($file, $i) & @CRLF, 1) Next GUISetState() While True $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  15. Salam, Hello, Hi Today i am showing you some new styles of progress bar i don't know if anyone posted a thing like this on thins forum _GUICtrlCreateProgress This UDF allows you to create new style progress bar Colors, Values can be changed by using native functions of autoit i created this script years ago while i was not on this forum now i think it should be shared on this forum check this out if anyone is interested any help is greatly appreciated NEW $PBSC_LINE_LEFT_TO_TIGHT changed to $PBSC_LINE_LEFT_TO_RIGHT New Style Progressbar.rar old New Style Progressbar.rar
  16. Use >Koda Form Designer to design a GUI and buttons I think ShellExecute() function can b used to execute VB scripts See GUIGetmsg() function to perform action on button clicking.
  17. are you looking for this...? #include <Array.au3> ; Only required to display the arrays #include <File.au3> Local $imgArray = _FileListToArray("C:\images\", "*.jpg", 1) $output = "" For $a = 1 To UBound($imgArray) - 1 Step 4 ConsoleWrite("<TR> " & @CRLF) ConsoleWrite(" <TD> " & @CRLF) $output &= "<TR> " & @CRLF & " <TD> " & @CRLF For $b = $a To $a + 3 ConsoleWrite(" " & $imgArray[$b] & @CRLF) ;here!!! $output &= " " & $imgArray[$b] & @CRLF Next ConsoleWrite(" </TD> " & @CRLF) ConsoleWrite("</TR> " & @CRLF & @CRLF) $output &= " </TD> " & @CRLF & "</TR> " & @CRLF Next MsgBox(64, "now you can use this variable", $output)
  18. try this Local $str = "aaa:bbb|ccc:{key1:value1}|ddd:{key2:{key3:value3,key4,value4}}|eee:{key5,value5}" $output = StringReplace($str,"|" , @CRLF) MsgBox(64,"",$str & @CRLF & @CRLF & $output)
  19. this code works fine but you should try this one: Local $Program = "bitlockerwizardelev.exe" Local $parms = '\ U' Local $sUserName = "" Local $sPassword = "" ; try all flags one by one Local $flags = 0 ;~ $flags = 1 ;~ $flags = 2 ;~ $flags = 4 If Not FileExists(@SystemDir & "\" & $Program) Then MsgBox(16, "(File Not Found)", "Please Check The Existance of file.") Local $iPID = RunAs($sUserName, @ComputerName, $sPassword, $flags, @ComSpec & " /C " & $Program & " " & $parms, @SystemDir, @SW_SHOWMAXIMIZED) If @error Then MsgBox(16, "ERROR: " & @error, "Process failed") If StringRight($Program, 4) <> ".exe" Then MsgBox(16, "", "Please make sure that file is an executable or use ShellExecute() function") EndIf
  20. try also _RunDos() direct from example: #include <Process.au3> Local $rc = _RunDos("start Http://www.autoitscript.com") run your program on DOS prompt
  21. did you try that #RequireAdmin direct from example #include <MsgBoxConstants.au3> #RequireAdmin If IsAdmin() Then MsgBox($MB_SYSTEMMODAL, "", "The script is running with admin rights.") build .exe of your program and run your C:windowssystem32????? with u parameter or what ever.
  22. take a look at this topic and always search on the forum before posting. '?do=embed' frameborder='0' data-embedContent>>
  23. try running this: REG EXPORT "HKLM\Software\Microsoft\Windows NT" Registry.reg may be it work for you
×
×
  • Create New...