-
Posts
61 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Muzaiyan
-
GUI Button to open VBS script
Muzaiyan replied to mohan93's topic in AutoIt General Help and Support
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) -
How to create a window similar to paragraph text
Muzaiyan replied to scila1996's topic in AutoIt General Help and Support
good always search on the forum before posting a question if you want to use default width, height and style just use GuiCreate("") -
string search and replace/add
Muzaiyan replied to Legion4400's topic in AutoIt General Help and Support
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 -
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()
-
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"
-
-
you are right JohnOne i think WinFlash() and _WinAPI_FlashWindow() both can be used
-
replace $hwnd with the window handle or window title $x3 = ControlGetText($hwnd,"","[CLASS:TEdit;INSTANCE:1]")
-
string search and replace/add
Muzaiyan replied to Legion4400's topic in AutoIt General Help and Support
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. -
oh it was a mistake not an error which is corrected now. but thanks for pointing.
- 4 replies
-
- GUICtrlCreateProgress
- GUICtrlSetData
- (and 2 more)
-
did your script follows the Forum Rules ?
-
How to create a window similar to paragraph text
Muzaiyan replied to scila1996's topic in AutoIt General Help and Support
replace "New Text Document.txt" with your file name in the above script -
what do you want to do with script?
-
How to create a window similar to paragraph text
Muzaiyan replied to scila1996's topic in AutoIt General Help and Support
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 -
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
- 4 replies
-
- GUICtrlCreateProgress
- GUICtrlSetData
- (and 2 more)
-
GUI Button to open VBS script
Muzaiyan replied to mohan93's topic in AutoIt General Help and Support
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. -
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)
-
Regex's Experts, somebody can help me to split it?
Muzaiyan replied to Luigi's topic in AutoIt General Help and Support
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) -
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
-
take a look at this topic and always search on the forum before posting. '?do=embed' frameborder='0' data-embedContent>>
-
try running this: REG EXPORT "HKLM\Software\Microsoft\Windows NT" Registry.reg may be it work for you