Jump to content

Search the Community

Showing results for tags 'External'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 7 results

  1. Hello i have searched a lot about how to run external programs with the administrator privileges without the script running with administrator privileges using autoit But all my attempts failed Finally, today I found the VBS function doing this task I immediately transferred it to our beloved language (autoit) and i decided to share it with you i hope you like it This is a simple example about how to use the function runAsAdmin("cmd.exe", "/c @echo off & cls & echo test & pause", "c:\", @sw_show) this is the function func runAsAdmin($program, $parameters = "", $workingDir = @workingDir, $show = "") local $oShell = OBJCreate("Shell.Application") if isOBJ($oShell) then local $result = $oShell.ShellExecute($program, $parameters, $workingDir, "runas", $show) else $result = false endIf return $result endFunc
  2. Good morning guys I was trying to not open another post, writing here my little issue, but seems that no one cares about, and so, I'm opening another post What I'm trying to do, is detect the event close sent from the virtual keyboard. Why? Because, I have an application which, when I set the focus on a textbox, if the virtual keyboard does not exist, then it is created, else, it's not created But, everytime I try to close the virtual keyboard, the focus remains on the textbox, and another $EN_FOCUS event it's launched and detected from my WM_COMMAND, and so, the virtual keyboard is opened again. How can I solve this little "issue"? I was trying to detect the event sent from the virtual keyboard, storing the handle of it in a variable, and setting: GUISetOnEvent($GUI_EVENT_CLOSE, "CloseVK", $hVirtualKeyboard) without any result. Can someone please help me? Thanks EDIT: Here I'd like to see @Melba23, @water, @Danyfirex...
  3. Hello, I am trying to figure out how to have autoit automatically check a radio button on a external application I have tried the following without any success. Opt("WinTitleMatchMode", 1) while true $win = winwaitactive("Night Utilities Setup") if $win <> "" Then ; msgbox(0,"","found") endif ;ControlClick($win, "Sunday", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d:rbtnSunday]", "left", 1, 48, 13) ControlCommand($win, "Sunday", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d:rbtnSunday]", "Check") wendHere is the window info >>>> Window <<<< Title:    Night Utilities Setup Class:    WindowsForms10.Window.8.app.0.33c0d9d Position:    110, 103 Size:    790, 547 Style:    0x16CB0000 ExStyle:    0x00050180 Handle:    0x0012020C >>>> Control <<<< Class: WindowsForms10.BUTTON.app.0.33c0d9d Instance: 38 ClassnameNN: WindowsForms10.BUTTON.app.0.33c0d9d38 Name: rbtnSunday Advanced (Class): [NAME:rbtnSunday] ID: 1049020 Text: Sunday Position: 63, 119 Size: 104, 16 ControlClick Coords: 48, 13 Style: 0x5600000B ExStyle: 0x00000000 Handle: 0x001001BC >>>> Mouse <<<< Position: 114, 170 Cursor ID: 0 Color: 0x2B2F37 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< &Run Now &Apply &Cancel &OK Programs To Run One Agency All Agencies Validate Cash Balances To Range All Clients Rename Codes Rebuild Sections 11:45:00 PM Saturday Use Customized Time For Batch Update From Files Delete All Files in AS_TEMP and AS_LOCK Batch Change Activity File Change Request Updates Real-Time Alerts IVANS Transmission Run Pseudo Post Prepare Company Reconciliations Validate Receivables Validate Client Balances Maintenance Options Dequeue Reports Database Maintenance Processing Mode Distributed Stand Alone File Selection FIM Only TAM Only All Files Maintenance Operations * You cannot scan with delete and pack Smaller Than Backup Data Files Before Pack Pack Data Files * Reindex Data Files Delete Unfixed Records * Fix Corrupt Records Print Scan Results Scan for Corrupt Records Day and Time 11:45:00 PM Sunday Saturday Friday Thursday Wednesday Tuesday Monday >>>> Hidden Text <<<< any help would be appreciated.
  4. I don't know why there are many external files that are not existed on the pre-written functions of AutoIt software.. The examples in this page are telling to include "MsgBoxConstants.au3" but I doesn't have one: http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm Where can I download the TRUSTED and the official "MsgBoxConstants.au3" file?
  5. Hey peeps... I've been searching for any documentation on how to get progress information from a running process and haven't been able to find anything that I can use to learn how to get it done... What am I looking for? Something that will allow me to run an external program, such as defrag or imagex from within a GUI and that will allow the progress of that program to show within the GUI I have created. Sort of like how GimageX displays the progress while it's running. Why am I looking for it? I've spent quite some time trying to find some code that I can learn from which will help me. At my last company I was trying to create a more streamlined, custom GimageX. I have also in the past had need to create a GUI for things like Defrag to simplify the process for end users (even simple can be too complex) and I'd just like to get my head around the process. Does this even exist? This is a question I'd like answering first I guess, is the reason I can't find out how to do it because you can't do it? I imagine that this may not be possible for running executables, but instead through running procedures within a DLL... Which is something else I need to get my head around. So... Can anyone point me in the right direction for tutorials (internal or external) or with some source code which I can play with to get my head around it all? Yours Gratefully.... Mallie x
  6. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=internet-explorer.ico #AutoIt3Wrapper_Outfile=IP.exe #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_SaveSource=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.9.4 (beta) Author: Decipher Script Function: Simple CLI Tool to retrieve External IP from Remote Server API #ce ---------------------------------------------------------------------------- _RetrievePublicInfo() Func _RetrievePublicInfo($iRefresh = 0) ConsoleWrite(@CRLF & "IP: " & BinaryToString(InetRead('http://api.externalip.net/ip/', $iRefresh), 4) & @CRLF & @CRLF & _ "Hostname: " & BinaryToString(InetRead('http://api.externalip.net/hostname/', $iRefresh), 4) & @CRLF) EndFunc
  7. Well my friends i know that we can embed notepad,cmd,regedit etc.in a Gui. But how we can make a portable app i.e. sumatra pdf to be embeded in a gui ( you know, to run inside the gui ) Is that possible for an external app to run in this way.. After google a bit i found in a forum about a guy that embeded an app in a Autoit Gui ( the app is DX studio ) has a link with the source but i can't be a member to this forum, probably they don't sent email confirmations any more.. Anyway if any knows something it would be great.... this is just an embed regedit example from Holger... #include <GUIConstants.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 800, 600, -1, -1, BitOr($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_CLIPCHILDREN)) $PID = Run(@WindowsDir & "\regedit.exe", "", @SW_HIDE) $hWnd = 0 $stPID = DllStructCreate("int") Do $WinList = WinList() For $i = 1 To $WinList[0][0] If $WinList[$i][0] <> "" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $WinList[$i][1], "ptr", DllStructGetPtr($stPID)) If DllStructGetData($stPID, 1) = $PID Then $hWnd = $WinList[$i][1] ExitLoop EndIf EndIf Next Sleep(100) Until $hWnd <> 0 $stPID = 0 If $hWnd <> 0 Then $nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $hWnd, "int", -20) $nExStyle = $nExStyle[0] DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", -20, "int", BitOr($nExStyle, $WS_EX_MDICHILD)) DllCall("user32.dll", "int", "SetParent", "hwnd", $hWnd, "hwnd", $hGUI) WinSetState($hWnd, "", @SW_SHOW) WinMove($hWnd, "", 0, 0, 600, 400) EndIf GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then ExitLoop WEnd
×
×
  • Create New...