
ddeerr
Active Members-
Posts
109 -
Joined
-
Last visited
Profile Information
-
Location
alive
ddeerr's Achievements
-
Settings run as administrator on a shortcut (windows 10)
ddeerr replied to ddeerr's topic in AutoIt General Help and Support
Ah yes sorry. But i need to do it on a link. i search more thanks. -
Settings run as administrator on a shortcut (windows 10)
ddeerr replied to ddeerr's topic in AutoIt General Help and Support
the expected result -
Settings run as administrator on a shortcut (windows 10)
ddeerr replied to ddeerr's topic in AutoIt General Help and Support
It is a x64, i tried both x32 and x64 compilation with autoit3.exe (the default one with scite ? 3.3.14.2) but it is the same. I even try to create manually the registry entries (in HKCU and HKLM) in windows, but it stll doesn't work. Personnal reflexion : maybe i can try to make aregistry comparison after changin it manually, to see where the change applies, i had a software for that before i need to find it. -
Hello, I'm trying to set automatically on a shortcut, the option run as administrator. I found this topic : and i tried to create the registry Key RegWrite('HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', 'C:\Users\dsa\Desktop\autoitDSA\toto.lnk', "REG_SZ", "RUNASADMIN") RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', 'C:\Users\dsa\Desktop\autoitDSA\toto.lnk', "REG_SZ", "RUNASADMIN" but it doesn't work. I'm on Windows 10 maybe that's the point ? Anyway, does someone have something to help me please ? otherwise i think i'll try to do it with some mouse actions. Thanks
-
Open File - Security Warning Screen
ddeerr replied to Semineer's topic in AutoIt General Help and Support
hello, maybe it can help ? i make a workaround to "automatize" the validation for windows security alert, it's not clean but it works : Ex script : #Include <File.au3> $OSW_file = _TempFile(@TempDir, "OSW_Click", ".dsa") FileInstall("valideOpenSecurityWarning.exe", $OSW_file) Run($OSW_file) $processID = ShellExecute("mycommand.cmd", "", "H:\strangePrograms\") If $processID <> 0 Then FileDelete($OSW_file) ; etc...............; EndIf compiled script include thru fileinstall : #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=OWS_validation.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Description=valide automatiquement la fenetre Windows Security Alert #AutoIt3Wrapper_Res_Fileversion=1 #AutoIt3Wrapper_Res_LegalCopyright=D.S.A A.K.A dasai #AutoIt3Wrapper_Res_Language=1036 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Opt('MustDeclareVars', 1) Opt("WinTitleMatchMode", 4) Global $win_secu, $btn_run $win_secu = "[TITLE:Open File - Security Warning;CLASS:#32770]" $btn_run = "[CLASS:Button;INSTANCE:1]" If WinWait($win_secu, "", 5) Then ControlClick($win_secu, "", $btn_run, "primary", 1) Sleep(500) ControlClick($win_secu, "", $btn_run, "primary", 1) EndIf -
Thanks, exactly what i need. The result look to list all handles for all objects inside the specified process, i have a question is it possible to isolate and get only the handle of the principal window ? e.g : with firefox.exe the class of the principal window is MozillaUIWindowClass Maybe it is already available in you library but i don't understand Dll* fonctions i simply use basics function. I make it work like that : #Include <Array.au3> #include "U:\_DSA\AutoIt\devs\zzzz_DEV_ssss cipe 18.08.09\zzz_shared_libs_sss\WinAPIEx\WinAPIEx.au3" Opt("WinTitleMatchMode", 4) Global $processName = "notepad.exe", $winClass = "Notepad", $result Global $aWnd = _WinAPI_EnumProcessWindows($processName) If IsArray($aWnd) Then $result = _ArraySearch($aWnd, $winClass, 0,0,0,1,0,1) $result = $aWnd[$result][0] MsgBox(0,"Text",WinGetText($result)) EndIf
-
Beginner question about Security Management
ddeerr replied to ddeerr's topic in AutoIt General Help and Support
Thanks for your reply. -
Beginner question about Security Management
ddeerr posted a topic in AutoIt General Help and Support
Hi all, It seems that in the security functions it is possible to edit Permissions on registry Keys, i said "it seems" because i cannot test most of them due to a lack of uderstanding. For example : _Security__AdjustTokenPrivileges($hToken, $fDisableAll, $pNewState, $iBufferLen[, $pPrevState = 0[, $pRequired = 0]]) I don't understand where to get $hToken and $tagtagTOKEN_PRIVILEGES ($pNewState in definition) and i know that's because i don't know what is it, i suppose it's some kind of link to registry, or system access ? Same in _Security__LookupPrivilegeValue($sSystem, $sName) as i don't know exactly what is it it tried : _Security__LookupPrivilegeValue("", "Full Control"); for registry on default system ?or _Security__LookupPrivilegeValue("", "Read"); for file(s) on default system ?i know it's incorrect because it's always 0 for result. I found no help in forum or AutoIt help about that, is there someone that can quickly explain to me about that ? thanks -
Ok, If it can help someone i found the solution With Windows 2000 you can use the class name as displayed with Au3info "[CLASS:#32770]" with the # Run("regedit.exe") WinWait("[CLASS:RegEdit_RegEdit]", "", 5) $handle_regedit = WinGetHandle("[CLASS:RegEdit_RegEdit]", "") ControlSend($handle_regedit, "", 2, "^f") $handle_regedit2 = WinGetHandle("[CLASS:#32770]", "") ; 2K WinSetState($handle_regedit2, "", @SW_HIDE) oÝ÷ Ùhsò¢èZ½ëh騽ëay«¢+Ø)mÕѽ¥Ñt)IÕ¸ ÅÕ½ÐíɥйáÅÕ½Ðì¤)]¥¹]¥Ð ÅÕ½Ðím 1MLéI¥Ñ}I¥ÑtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°Ô¤(ÀÌØí¡¹±}É¥Ðô]¥¹Ñ!¹± ÅÕ½Ðím 1MLéI¥Ñ}I¥ÑtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤) ½¹Ñɽ±M¹ ÀÌØí¡¹±}ɥаÅÕ½ÐìÅÕ½Ðì°È°ÅÕ½ÐíyÅÕ½Ðì¤(ÀÌØí¡¹±}É¥ÐÈô]¥¹Ñ!¹± ÅÕ½Ðím 1MLèÌÈÜÜÁtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤ìa@)]¥¹MÑMÑÑ ÀÌØí¡¹±}É¥ÐȰÅÕ½ÐìÅÕ½Ðì°M]}!%¤
-
I test the code on Windows2000 (my first step was on XP) and it works ? Probably i have a problem with my XP (strange but...)
-
Reading and Using a Combo Box
ddeerr replied to FreedomSystems's topic in AutoIt General Help and Support
For this you can use _GUICtrlComboGetCount (see docs in user definded functions) #Include <GuiCombo.au3> Dim $AllValueInString $total = _GUICtrlComboGetCount($mycombo) oÝ÷ Ú«¨µéÚ -
Hi, I'm asking myself a question that i can't reponse, it is is it possible to make a control send with the option @SW_HIDE include ? I mean like when you run for, example like : $processID_regedit = Run("regedit.exe", "", @SW_HIDE) oÝ÷ Ø-êÞ²¶§Ú")à)¶¬jëh×6 ControlSend($handle_regedit, "", 2, "^f", @SW_HIDE) ; ^^ oÝ÷ Ùhbë^²Ø§+ljeÊÇËajÔÄv¬mÂä¢{j·!è"²ÚòÂ)Ý£®¶s`£·FW7B6öFP ¥'VâgV÷C·&VvVFBæWRgV÷C²¥våvBgV÷Cµ´4Ä53¥&VtVFEõ&VtVFEÒgV÷C²ÂgV÷C²gV÷C²ÂR¢b33c¶æFÆU÷&VvVFBÒvävWDæFÆRgV÷Cµ´4Ä53¥&VtVFEõ&VtVFEÒgV÷C²ÂgV÷C²gV÷C²¤6öçG&öÅ6VæBb33c¶æFÆU÷&VvVFBÂgV÷C²gV÷C²Â"ÂgV÷CµæbgV÷C²¢b33c¶æFÆU÷&VvVFC"ÒvävWDæFÆRgV÷Cµ´4Ä53¢33#ssÒgV÷C²ÂgV÷C²gV÷C²¥vå6WE7FFRb33c¶æFÆU÷&VvVFC"ÂgV÷C²gV÷C²Â5uôDR Do you know why ?
-
Hi, tx for this tools but i think about probably 2 problems taht i don't see when i launch the program : 1 - Is there something about the administrator account to uninstall on remote computer ? 2 - I guess the remote registry service have to be running, does the program do that ? Usually i test but here i'm at home and i have no network ^^
-
EzSkin_1-2-3 (exe) 1,000+ Skin & Button Choices
ddeerr replied to Valuater's topic in AutoIt Example Scripts
True i tried to mix EzSkin with Xskin and it doesn't work well i guess i will do only xSkin for to skin at max my little window ^^ -
Great work PaulIA since last time there now a documentation with your very helpful library TX