
kmps
Active Members-
Posts
45 -
Joined
-
Last visited
Everything posted by kmps
-
is there Text2BMP function in autoit3?
kmps replied to kmps's topic in AutoIt General Help and Support
Yes,I want a bmp where I can "see" the text written.I just want to transfer a .txt file into .bmp file and people can see the text on the bmp file just like they see .txt file. -
Can any guy tell me how to write text to a BMP image file with Autoit 3? thanks a lot
-
About Windows user password verification problem
kmps replied to kmps's topic in AutoIt General Help and Support
no one can help me??? -
About Windows user password verification problem
kmps replied to kmps's topic in AutoIt General Help and Support
sorry,maybe my explain is not so clear.my question is :if there's a function which can be used to verify the local account's password (not AD's account) after the PC is add to a Domain. I had tried to use the following function under my XP Pro SP2,but unfortunately,for my script run as the system service using system account not the normal user account,this function can not work probably.And under my Windows 2000 Pro or even my Windows XP Pro SP1,this function can work well. Func _CheckUserPass($sUsername, $sPassword, $sComputerName) Local $iCheck = True Opt("RunErrorsFatal", 0) RunAsSet($sUsername, $sComputerName, $sPassword, 0) Run(@ComSpec & " /c echo checking password...", @TempDir, @SW_HIDE) If @error Then $iCheck = False RunAsSet() Opt("RunErrorsFatal", 1) Return $iCheck EndFunc And the below function,under my XP PRO SP2,before I add my PC into a domain,it can work well.but after into domain,it failed to complete the password verification Func CheckPassword($userid, $passwordbak) Local $useridobjhd $useridobjhd = ObjGet("WinNT://" & @ComputerName & "/" & $userid) $useridobjhd.ChangePassword ($passwordbak, $passwordbak) Return @error EndFunc ;==>CheckPassword -
About Windows user password verification problem
kmps replied to kmps's topic in AutoIt General Help and Support
Hello,would u please tell me how to use your function: UserValidate()? for example:On my Windows XP sp2,there's a local user account named "normaluser",and my computername is "CHPC",how to call your function to judge this account's password is correct or not? UserValidate(@computername???,"normalouser",$password,???) and what's a group??? Anyway,thanks a lot -
Hello, I met a strange problem when using the below function to check the windows user password is correct or not. before I joined the PC into Domain,I can use it to verify local account user's password correct or not if @error<>0 then password is not correct else correct endif but after I joined the PC into Domain,even I input the correct password,it returned @error<>0 Func CheckPassword($userid, $passwordbak) Local $useridobjhd $useridobjhd = ObjGet("WinNT://" & @ComputerName & "/" & $userid) $useridobjhd.ChangePassword ($passwordbak, $passwordbak) Return @error EndFunc ;==>CheckPassword
-
RunAsSet on PC and on notebook with XP SP2
kmps replied to toomaya's topic in AutoIt General Help and Support
Please make sure your service "secondary logon" running on your notebook. -
how to verify the weak password in Autoit 3
kmps replied to kmps's topic in AutoIt General Help and Support
sorry,maybe I hadn't explain clearly what I wants. The password I wants to verify is the Windows account passwords,and in this process,all should be automatic and no input dialog needed. anyway thank you! -
Hello, I am trying to write a script to make sure the users NT account password is not blank or something like "abc","123"... If any good man can tell me,how to do that? On Error Resume Next Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName strPassword = "password" Set colAccounts = GetObject("WinNT://" & strComputer & "") colAccounts.Filter = Array("user") For Each objUser In colAccounts objUser.ChangePassword strPassword, strPassword If Err = 0 or Err = -2147023569 Then Wscript.Echo objUser.Name & " is using the password " & _ strpassword & "." End If Err.Clear Next just like above but with Autoit 3 not Windows Script language thx a lot!
-
Hello, I am trying to write a script to make sure the users NT account password is not blank or something like "abc","123"... If any good man can tell me,how to do that? On Error Resume Next Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName strPassword = "password" Set colAccounts = GetObject("WinNT://" & strComputer & "") colAccounts.Filter = Array("user") For Each objUser In colAccounts objUser.ChangePassword strPassword, strPassword If Err = 0 or Err = -2147023569 Then Wscript.Echo objUser.Name & " is using the password " & _ strpassword & "." End If Err.Clear Next just like above but with Autoit 3 not Windows Script language thx a lot!
-
Hello, I am now trying to write a script to set NTFS rights automatically,any good man can tell me how I can deal with it without using GUI? thanks a lot!
-
hello, I want to write a GINA dll to replace the Microsoft's GINA msgina.dll,is it possible with AUTOIT?
-
How To Pause The Reboot Or Shutdown Of Windows
kmps replied to kmps's topic in AutoIt General Help and Support
thank you,but there's still another problem,how to judge it's a reboot(not Power off) or a shutdown(Power off)? and Further more,for Windows 2000 users,there's no command "shutdown" to use either. Can Autoit get some system message when the Windows is going to shutdown and reboot? -
How To Pause The Reboot Or Shutdown Of Windows
kmps replied to kmps's topic in AutoIt General Help and Support
but I don't know how to judge when to run this command to pause the reboot of Windows. such as If Windowsreboot()=1 or Windowsshutdown=1 then run("shutdown -a") EndIf -
thanks a lot!
-
I'm now trying to make a Input dialog GUI script of myself: $InputDialogHd=GUICreate($caption,200,85,-1,-1,$WS_DLGFRAME) $EditPassWordHd=GUICtrlCreateInput("",10,12,179,20,BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD)) $ButtonOkHd=GUICtrlCreateButton("ok",15,38,50,23) $ButtonCancelHd=GUICtrlCreateButton("cancel",136,38,50,23) GUISetState() While 1 ... WEnd And I want the above dialog can act like this:once I had finished input my password and press "ENTER" key the button "ok" will be clicked by default just the same happend as I use the function InputBox() please tell me how I can get that act,thank you!
-
How Can I Get The Timer Event When The Trayoneventmode Is Enabled
kmps replied to kmps's topic in AutoIt GUI Help and Support
hello,thank you very much.the Sleep solved my problem. -
Hello, I am now writing a script running backgroud as a windows service,and now I disables the TrayOnEventMode and just uses the function traygetmsg() to deal with the things every 5 mins but I found in this model my script's CPU's utilization will get too much sometimes,any good man can tell me if I switch to enable the TrayOnEventMode will solve the problem?and How to define the timer event function in this mode? thanks a lot!
-
How To Disable And Enable Network Connection With Autoit
kmps replied to kmps's topic in AutoIt General Help and Support
I found this command couldn't run correctly under Windows XP.and I solved it by run Microsoft's DEVCON.EXE (Google can find it and download it) devcon.exe disable =net pci\* devcon.exe enable =net pci\* -
solved,thank you so much!