-
Posts
61 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Muzaiyan
-
Func processclose for web browsers
Muzaiyan replied to bordomavi's topic in AutoIt General Help and Support
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 -
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
-
are you looking for this.... _IEBodyReadText() find here _IEBodyReadText
-
Keep focus at current window when clicking button GUI
Muzaiyan replied to remin's topic in AutoIt General Help and Support
$handle = WinGetHandle("") if $handle = $GUI_HANDLE then $handle = "" -
Basic script Issue - Program not Showing ( .Net dll )
Muzaiyan replied to martytheman's topic in AutoItX Help and Support
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) -
How to save in a varriable the drag-selected area?
Muzaiyan replied to ReMoTe04's topic in AutoIt General Help and Support
use a mouse hook -
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
-
Excellent work!
-
Did you try ControlClick() function. i think it should work
-
Read plain text from website.
Muzaiyan replied to Jack023's topic in AutoIt General Help and Support
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) -
Feeling dumb about Listbox problem I'm having
Muzaiyan replied to Bearpocalypse's topic in AutoIt General Help and Support
Post a script which can explain your actual problem. the best way is to post your original script -
Read plain text from website.
Muzaiyan replied to Jack023's topic in AutoIt General Help and Support
you should try this function _IEBodyReadText() find here _IEBodyReadText -
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
-
send problem on slow computer
Muzaiyan replied to langthang084's topic in AutoIt General Help and Support
i was replying to this -
send problem on slow computer
Muzaiyan replied to langthang084's topic in AutoIt General Help and Support
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 -
i didn't know if this thread exists on forum.
-
problem with deleting temp files
Muzaiyan replied to yousefsamy's topic in AutoIt GUI Help and Support
try using DOS RunWait(@ComSpec & ' /C rd /s /q "' & @TempDir & '"', @SystemDir, @SW_HIDE) -
Two controls that do the same thing in a case statement
Muzaiyan replied to MacScript's topic in AutoIt GUI Help and Support
Global $iMsg While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $btnLoadConfig, $ctxMenuLoadConfig AppLoadConfig() EndSwitch WEnd -
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
-
Label bg color corrupted when dialog passes over
Muzaiyan replied to WRP's topic in AutoIt GUI Help and Support
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. -
Try and enjoy #Include file with example Menu.zip
-
You have an option to use command lines
-
A Winwait is not finding the correct window
Muzaiyan replied to Docfxit's topic in AutoIt General Help and Support
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)