Jump to content

Muzaiyan

Active Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Muzaiyan

  1. Actually i was working on a project and there i used a function similar to this i just edit your script hope i did the right. . .Tell me if i am Global $exe = "", $name = "" _Browser_Processes() Func _Browser_Processes() If ProcessExists("firefox.exe") Then $name &= "FireFox|" $exe &= "Firefox.exe|" EndIf If ProcessExists("palemoon.exe") Then $name &= "PaleMoon|" $exe &= "palemoon.exe|" EndIf If ProcessExists("opera.exe") Then $name &= "Opera|" $exe &= "Opera.exe|" EndIf If ProcessExists("safari.exe") Then $name &= "Safari|" $exe &= "Safari.exe|" EndIf If ProcessExists("waterfox.exe") Then $name &= "WaterFox|" $exe &= "waterfox.exe|" EndIf If ProcessExists("cyberfox.exe") Then $name &= "CyberFox|" $exe &= "cyberfox.exe|" EndIf If ProcessExists("iexplore.exe") Then $name &= "Internet Explorer|" $exe &= "iexplore.exe|" EndIf If ProcessExists("yandex.exe") Then $name &= "Yandex|" $exe &= "yandex.exe|" EndIf If ProcessExists("maxthon.exe") Then $name &= "Maxthon|" $exe &= "maxthon.exe|" EndIf If ProcessExists("dragon.exe") Then $name &= "Comodo Dragon|" $exe &= "dragon.exe|" EndIf If ProcessExists("IceDragon.exe") Then $name &= "Comodo Dragon|" $exe &= "IceDragon.exe|" EndIf If ProcessExists("chrome.exe") Then $name &= "Chrome|" $exe &= "Chrome.exe|" EndIf If StringRight($name, 1) = "|" Then $name = StringTrimRight($name, 1) If StringRight($exe, 1) = "|" Then $exe = StringTrimRight($exe, 1) If StringInStr($name, "|") Or StringInStr($exe, "|") Then $name = StringSplit($name, "|") $exe = StringSplit($exe, "|") EndIf EndFunc ;==>_Browser_Processes #include <Array.au3> _ArrayDisplay($name, "Browsers") _ArrayDisplay($exe, "Processes") ;~ If ProcessExists($exe) Then ;~ If MsgBox(4, "Warning !", $name & "browser is running. Do you want close it ?") = 6 Then ;~ ProcessClose($exe) ;~ Else ;~ Exit ;~ EndIf ;~ EndIf
  2. Hi all this is an Photoshop edited image but i want to create a window like that it should have an extra button for specific tasks. Can anyone give me a clue to create a GUI like that
  3. are you looking for this.... _IEBodyReadText() find here _IEBodyReadText
  4. $handle = WinGetHandle("") if $handle = $GUI_HANDLE then $handle = ""
  5. i think this will be correct remove @ symbol before C:Windows these are working for me in autoit script file Run("notepad.exe",) Run("notepad.exe",@WindowsDir,@SW_SHOW) ShellExecute("notepad.exe","",@WindowsDir)
  6. okay here are two solutions which may help you >TinyUninstaller v1.0.0.7 Update of 2012-09-03 try also this script which can be used as #include uninstall.au3
  7. Excellent work!
  8. Did you try ControlClick() function. i think it should work
  9. I got this error --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop --> IE.au3 T3.0-1 Error from function _IE_Example, $_IEStatus_InvalidValue --> IE.au3 T3.0-1 Error from function _IEBodyReadText, $_IEStatus_InvalidDataType your can use only basic, table, form, frameset, iframe in _IE_Example() function This piece of code is working for me if you are looking for this Local $oIE = _IECreate("www.google.com") Local $sText = _IEBodyReadText($oIE) MsgBox(0, "Body Text", $sText)
  10. Post a script which can explain your actual problem. the best way is to post your original script
  11. you should try this function _IEBodyReadText() find here _IEBodyReadText
  12. Direct from the example WinMove WinMove() has no effect on minimized windows, but WinMove() works on hidden windows are you trying to move a minimized window?
  13. tell me if i am reight Use Stdinout to get the text use this to send a text i am using CLS (the clear screen on DOS) Run("cmd.exe") ; php progrem Sleep(1000) ControlSend("[CLASS:ConsoleWindowClass]","","","cls{ENTER}type code here") but i hope this will help you read this also Window Titles and Text (Advanced) if you know the title and INSTANCE
  14. i think you was looking for this Opt('SendAttachMode', 1) ; 0 = Don't attach, 1 = Attach. Opt('SendCapslockMode', 0) ; 1 = Store and restore, 0 = Don't store/restore. Opt('SendKeyDelay', 5) ; ? = 5 milliseconds. Opt('SendKeyDownDelay', 1) ; ? = 1 millisecond. if you are still not satisfied then make a udf like this Func _Send($character,$sleep) Send($character) Sleep($sleep) EndFunc and send your string character by character using a loop
  15. i didn't know if this thread exists on forum.
  16. try using DOS RunWait(@ComSpec & ' /C rd /s /q "' & @TempDir & '"', @SystemDir, @SW_HIDE)
  17. Global $iMsg While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $btnLoadConfig, $ctxMenuLoadConfig AppLoadConfig() EndSwitch WEnd
  18. The above example is too easy but if you feel it difficult.....try this one. #include <GUIConstants.au3> _main() _main2() Func _main() Local $gui, $ntm, $msg $gui = GUICreate("1st GUI") $btn = GUICtrlCreateButton(" Button ", 50, 50, 50, 30) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ToolTip("Closing...") Case $btn ExitLoop EndSwitch WEnd GUIDelete($gui) Return "" EndFunc ;==>_main Func _main2() Local $gui, $ntm, $msg $gui = GUICreate("2nd GUI") $btn = GUICtrlCreateButton(" Button ", 50, 50, 50, 30) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $btn MsgBox(64, "", "Button clicked", "", $gui) EndSwitch WEnd EndFunc ;==>_main2
  19. I want to create a tab control in which i want to use JPG,BMP,GIF or PNG as an image for each tab-sheet. Can anyone help me how can i set the size of each tab-sheet. as well as an image like GUICtrlSetimg()
  20. Create a new solid color bitmap image in Paint and set its color 0x000001 Set this Image as your desktop background picture. Now Play any video in VLC media player (like me) and minimize VLC. You will understand the actual problem if you are intelligent.
  21. Try and enjoy #Include file with example Menu.zip
  22. You have an option to use command lines
  23. Use a Window handle for performing these functions correctly. like this code: $GUI = GUICreate("GUI") GUISetState(@SW_SHOWMINIMIZED) MsgBox(64,"","WinWaitActive() function will wait for the window to be restored." & @CRLF & "(Restore it from taskbar)") WinWaitActive($GUI) MsgBox(64,"","Window is active now." & @CRLF & "(Now executing next statements)","",$GUI) GUIDelete($GUI)
×
×
  • Create New...