-
Posts
23 -
Joined
-
Last visited
Recent Profile Visitors
125 profile views
ghost11996's Achievements
-
[SOLVED] embed IE object error - Delay problem
ghost11996 replied to ghost11996's topic in AutoIt General Help and Support
I just did some test, and found out that It was Internet speed. I need a Sleep() so there would be a time to navigate other url then it works find perfectly -
Hello, im having an issue with IE object $oIE = ObjCreate("Shell.Explorer.2") $MyGUI = GUICreate("MiniYoutube",500,500) GUICtrlCreateObj ($oIE, 0, 0, 500, 500) GUISetState($MyGUI,@SW_SHOW) $oIE.navigate("http://www.google.com") ToolTip($oIE.document.url) While 1 WEnd It will return the error as ToolTip($oIE.document^ ERROR but if the link was autoitscript.com it works fine. $oIE = ObjCreate("Shell.Explorer.2") $MyGUI = GUICreate("MiniYoutube",500,500) GUICtrlCreateObj ($oIE, 0, 0, 500, 500) GUISetState($MyGUI,@SW_SHOW) $oIE.navigate("http://www.google.com") ToolTip($oIE.document.url) While 1 WEnd I know im not using it correctly but What is the problem ? Thanks
-
@13lack13lade I added attach file. Try out Thanks for testing / using ~
-
rootx reacted to a post in a topic: Help double quote & ShellExecute
-
InunoTaishou reacted to a post in a topic: Multiple number input from user
-
Multiple number input from user
ghost11996 replied to InunoTaishou's topic in AutoIt General Help and Support
Hi InunoTaishou GUICtrlCreateInput return Success value is the controlID of the control input If you want to read the values in the GUICtrlCreateInput, You need to use a function call GUICtrlRead : https://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm $InputValue1 = GUICtrlRead($inpFirst) $InputValue2 = GUICtrlRead($inpSecond) $InputValue3 = GUICtrlRead($inpThird) $InputValue4 = GUICtrlRead($inpFourth) -
GUI background that is see-through
ghost11996 replied to MacScript's topic in AutoIt GUI Help and Support
Hello Maclotro Welcome to Autoit Forum You can use the search on forum page with "transparent gui" keyword This is what you want ? #include <WinAPI.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $st1 = $WS_POPUP $st2 = BitOR($WS_EX_LAYERED,$WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_LAYERED) $hMain = GUICreate("Transparency Window",600,400,-1,-1,$st1,$st2) $edit = GUICtrlCreateEdit("Edit",0,0,600,50) $button1 = GUICtrlCreateButton("Button1",0,50,50,50) _WinAPI_SetLayeredWindowAttributes($hMain, 0xABCDEF, 255) GUISetBkColor(0xABCDEF) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $button1 Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd -
Help double quote & ShellExecute
ghost11996 replied to rootx's topic in AutoIt General Help and Support
Hi rootx If you want put a quote Do like this : '"' ShellExecute(@SystemDir&"\cmd.exe"," convert *.jpg -pointsize 20 -gravity Southeast -draw "&'"'&"fill white text 0,0 'banner'"&'"'&' banner.jpg',"c:\","") -
Storing a "|" inside an array
ghost11996 replied to BlazerV60's topic in AutoIt General Help and Support
Hi BlazerV60 Can you post some of your script ? Maybe try check autoit wiki http://www.autoitscript.com/wiki/Arrays If im not wrong then you are using this : Local $iMax Local $data = "Element 1|Element 2|Element 3" ; The string in data will be split into an array everywhere | is encountered Local $arr = StringSplit($data, "|") If IsArray($arr) Then For $i = 1 to $arr[0] ConsoleWrite($arr[$i] & @LF) Next EndIf Try change "|" to "," and check stringsplit function : https://www.autoitscript.com/autoit3/docs/functions/StringSplit.htm Local $iMax Local $data = "Hamster | Cute,Array2 | Array2" ; The string in data will be split into an array everywhere | is encountered Local $arr = StringSplit($data, ",") If IsArray($arr) Then For $i = 1 to $arr[0] ConsoleWrite($arr[$i] & @LF) Next EndIf -
Hello I made a mini youtube player. .zip 569 KB | .exe 988 KB Download link : http://www.mediafire.com/download/d2elv7l2sjgvgdq/MiniYoutubeBETA-v1.7.3.exe MiniYoutubeBETA-v1.7.3.zip Reply if any bugs, error Require: - Windows XP,Vista,7 (best performance on win 7, didnt test on 2000) Features: - Search/Watch youtube videos - Transparent Window - Transparent Fullscreen Flash Player - Click through Window/Fullscreen Flash Player - Replay videos with infinitelooper.com - Replay videos with Youtube's player - Download youtube video (This is not included in this ) Notice : Move window by holding left mouse for 2 secs Here's the video that show what does it do: https://www.youtube.com/watch?v=diQp0BQdmLw Video is quite long if you dont want to watch, look image How did i make this : It is quite easy i just create an embedded IE then navigate it to youtube's site and resize it so its fit the window No source, you can create your own ______________________________________________ Edit : add Attach files
-
Check the parameters https://www.autoitscript.com/autoit3/docs/functions/PixelSearch.htm you can try use the Autoit Window Info in Autoit folder - Au3Info.exe to get the position's colors sleep(2000) $coord = PixelSearch(184, 149, 1315, 221, 0xFFFFFF) If Not @error Then MouseClick("left", $coord[0],$coord[1], 1, 1) EndIf PixelSearch() return arrays, $coord[0] = x;$coord[1] = y
-
IE embedded version and youtube's player
ghost11996 replied to ghost11996's topic in AutoIt General Help and Support
@debkol35 I tried the link ?do=embed' frameborder='0' data-embedContent> It shows that i use IE 9 but the fullscreen still same. #RequireAdmin RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION", "AutoIt3.exe", "REG_DWORD", "0x270F");0x2328 If @error Then MsgBox(0,"Error Couldnt write registry","Error : "&@error) EndIf #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd Help please -
@jude Tell more about your problem and show your code ? So people can help you 1 small solution is covert your jpg to png It've worked for me
-
IE embedded version and youtube's player
ghost11996 replied to ghost11996's topic in AutoIt General Help and Support
@debkol35 umm your problem is the code need a while or a do and i think in IE embedded i used, youtube videos are playing in default player #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) GUICtrlCreateObj($oIE, 10, 40, 600, 360) Local $idButton_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) Local $idButton_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) Local $idButton_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) Local $idButton_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30) Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30) GUICtrlSetColor(-1, 0xff0000) GUISetState(@SW_SHOW) ;Show GUI _IENavigate($oIE, "https://www.google.com") While 1 $msg=GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $idButton_Back ;goback Case $idButton_Forward ;gonext Case $idButton_Home ;gohome Case $idButton_Stop ;stop EndSwitch WEnd ;Do ; $msg = GUIGetMsg() ;Until $msg = $GUI_EVENT_CLOSE ;Exit -
i dont think making cheat/trainer on autoit is good... you will get banned <snip>
-
Hello I'm having a problem with youtube's player fullscreen using the link www.youtube.com/watch?v=a1Y73sPHKxw the fullscreen works right but #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/watch?v=a1Y73sPHKxw") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd When using the link http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen #include <IE.au3> #include <GUIConstantsEx.au3> $width = 800 $height = 600 $hMain=GUICreate("CHIPMUNKS",800,600,@DesktopWidth/2-$width/2,@DesktopHeight/2-$height/2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, $width+3, $height+2) $oIE.navigate("http://www.youtube.com/embed/a1Y73sPHKxw?feature=player_embedded&autoplay=1&allowfullscreen") GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WinSetTitle($hMain,"",_IEPropertyGet($oIE, "title")) WEnd And the Fullscreen's controls is bigger Try run the code if you dont see the images are different I've tried this : '?do=embed' frameborder='0' data-embedContent>> It fixed the fullscreen but the fullscreen Adobe flash player goes to IE's tab instead of goes to the autoit gui's tab Any advise please help me
-
Exit function with FileOpen
ghost11996 replied to ghost11996's topic in AutoIt General Help and Support
@JohnOne: Yea Sorry My mistake @water: I think you misunderstand my question... @Javiwhite: Nice resolution I guess I will put it in my code Thanks Ps: The code was just an example for asking