
JohnWang
Active Members-
Posts
40 -
Joined
-
Last visited
JohnWang's Achievements

Seeker (1/7)
0
Reputation
-
DllOpen always return -1 for certain Dll files
JohnWang replied to JohnWang's topic in AutoIt General Help and Support
YES! That's exactly the problem, I just figured it out as well. Thanks for the prompt reply! -
Hello, I am trying to use some function in MediaInfo.dll specifically the Inform function to get video bitrate. However, Dllopen function seems to always return -1. I have searched the forum and most people does not have problem using it and is incorporated in many scripts. I have redownloaded the dll file from another source but still the same thing. Here's the the test code I used: (I made sure MediaInfo.dll was located in C:\) Dim $MediaInfo = @ScriptDir & "\Tools\MediaInfo\" Func GetBitrate($iFile) Dim $MediaInfoDll = DllOpen("C:\MediaInfo.dll") MsgBox(0,"Error", $MediaInfoDll) EndFunc ;==>GetBitrate GetBitrate("C:\Test1.mp4") The return is always -1, I didn't try dllcall yet because dllOpen wouldn't work correctly, and Dllcall looks a bit complex to try to debug. Thanks.
-
WOOOOOOOOOOOOOOW, I bow to your skills! lol, anyways... Thanks! That really helps!
-
I have declared $phrase to be a global variable, however, everything I ran the screen the compiler say the variable is not declared. Thanks for the help in advance. AutoItSetOption("MustDeclareVars",1) TextSpeech("This was a triumph.") TextSpeech("I'm making a note here:") TextSpeech("HUGE SUCCESS.") TextSpeech("It's hard to overstate") TextSpeech("my satisfaction.") TextSpeech("Aperture Science") TextSpeech("We do what we must") TextSpeech("because we can.") TextSpeech("For the good of all of us.") TextSpeech("Except the ones who are dead.") TextSpeech("But there's no sense crying") Global $phrase Func TextSpeech($msg) Dim $PID,$Handle If Not ProcessExists("rundll32.exe") Then Run("control speech") WinWait("Speech Properties","You can control the voice properties, speed, and other options for text-to-speech translation") $PID = WinGetProcess("Speech Properties","You can control the voice properties, speed, and other options for text-to-speech translation") $Handle = WinGetHandle("Speech Properties","You can control the voice properties, speed, and other options for text-to-speech translation") $phrase = $Handle EndIf ControlSetText($phrase,"",1017,$msg) WinSetState("Speech Properties","You can control the voice properties, speed, and other options for text-to-speech translation",@SW_Hide) Sleep(100) ControlClick("Speech Properties","",1019) Sleep(1000) ;MsgBox(0,"STOP",ControlgetText($Handle,"",1019)) ; While ControlgetText($Handle,"",1019) = "S&top" ; Sleep(500) ; Wend ;$ret = ProcessClose("rundll32.exe") EndFunc
-
Au3GlPlugin T2 - OpenGl Plugin Evolution
JohnWang replied to A. Percy's topic in AutoIt Example Scripts
What is the base unit for shapes, pixel? For example, I used AddCube and I want it to fit the screen perfectly, but a 240 in the width parameter will exceed the 1280 x 800 res of my screen. Thank you. -
Au3GlPlugin T2 - OpenGl Plugin Evolution
JohnWang replied to A. Percy's topic in AutoIt Example Scripts
Hi, I have tried the above using, Texture Add, and Texture Bind, and the use of Capture Screen function to update the screen. It works and the screenshot refreshes and update the cube I was using. However, every time the function TextureAdd is called it use up a small amount of ram (probably because the cube was small. Also I have exclude the possibility that the Screenshot/Screenshot function was using the RAM by Isolating it), and with a while loop set to update the texture can result in gigs of RAM used up in matter of couple of minutes. So, is it possible to by pass this by removing the texture from the RAM once it is used presently? If not, do you plan to write a function in the near future for such function? Thank you in advance, this plugin is awesome, and I really appreciate you spending your personal time maintaining it. -
Does GUICtrlSetOnEvent works with Picture Control?
JohnWang replied to JohnWang's topic in AutoIt General Help and Support
Woah, that's weird, your code works just fine on my machine as well....d*mn, I hate these kind of errors, now I have to look at all the codes more carefully and completely just to figure out what went wrong. Thank you so much, at least now I know it's my fault and it should be working. EDIT: Alright Guys, thank you very much for the help, I have figure out what went wrong, GuiCtrlSetState(-1,$GUI_DISABLE) was needed on the picture which I had set as background to prevent the two picture controls from overlaping. -
Does GUICtrlSetOnEvent works with Picture Control?
JohnWang replied to JohnWang's topic in AutoIt General Help and Support
Oops, that was my trial and error while I was looking at the scripts on the froum seeing if I can figure it out before having to ask. It should be like the second example posted, but as you can see with my other GuiCtrlSetOnEvents, I tried it already and it doesn't work. There is GUIGetCursorInfo, I don't see GUiGetCursor in the help file, also isn't it a hassle having to compare the mouse coordinates to find out which botton I am clicking... is there easier solution? -
Hi, This must be very simple but I just can't figure it out. Does GUICtrlSetOnEvent works with Picture Control? I already set the OnEventMode to 1, If it does work, where did I do wrong in my code? Any Help is appreciated. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=Diva #AutoIt3Wrapper_Compression=4 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.8.1 Author: Removed Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here ;This is a project to create a mobile management unit with basic human/machine interactions. ;Includes #include <GUIConstants.au3> #include <File.au3> #include <string.au3> ;AutoIt specific Options Opt("GUIOnEventMode", 1) Opt("MustDeclareVars", 1) ;HotKeys ;Delcarations Dim $title, $guiPanWidth, $guiPanHeight, $guiPanHandle, $guiPanFrame ;General Declarations Dim $guiBtnSM, $guiBtnTB, $guiBtnSI, $guiBtnMC, $guiBtnCP, $guiBtnMD, $guiBtnTools, $guiBtnOpt ;Gui Botton handles for Bottons: Start Menu, TaskBar, System Info, My Computer, My Control Panel, My Documents, Tools, and Options respectively ;Variables $title = "The Pan 0.0" $guiPanWidth = 300 $guiPanHeight = 400 ;Functions Titles ;Misc. Info. ;Program Starts - Identification starts here. $guiPanHandle = GUICreate($title,$guiPanWidth,$guiPanHeight,-1,-1,$WS_POPUP,$WS_EX_DLGMODALFRAME) GUISetOnEvent($GUI_EVENT_CLOSE, "PanelEvents") GUISetOnEvent($GUI_EVENT_MINIMIZE, "PanelEvents") GUISetOnEvent($GUI_EVENT_RESTORE, "PanelEvents") ;Setting up the look for The Pan GuictrlCreatePic("BkgrdDrkOliveGrn.jpg",0,0,$guiPanWidth,$guiPanHeight,-1,$GUI_WS_EX_PARENTDRAG) $guiPanFrame = GUICtrlCreateLabel("",25,0,$guiPanWidth - 60,$guiPanHeight) ;Center Background color piece GuiCtrlSetBkColor(-1,0x006432); Set the color of the label manually: Dark Green GuiCtrlCreateLabel("",25,0,$guiPanWidth - 60,40) GuiCtrlSetBkColor(-1,0xFFFFFF) GuiCtrlCreateLabel("",25,$guiPanHeight - 40,$guiPanWidth - 60,40) GuiCtrlSetBkColor(-1,0xFFFFFF) ;The User interactables: Bottons Using Picture Controls ;Left Side(4) GUICtrlCreatePic("Botton ImageHolder.jpg",5,5,15,30) GUICtrlSetOnEvent($GUI_EVENT_PRIMARYDOWN,"StartMenu") GUICtrlCreatePic("Botton ImageHolder.jpg",5,40,15,30) GUICtrlSetOnEvent(-1,"Shortcuts") GUICtrlCreatePic("Botton ImageHolder.jpg",5,75,15,30) GUICtrlSetOnEvent(-1,"TaskBar") GUICtrlCreatePic("Botton ImageHolder.jpg",5,110,15,30) GUICtrlSetOnEvent(-1,"SystemInfo") ;Right Side(5) GUICtrlCreatePic("Botton ImageHolder.jpg",$guiPanWidth - 30,5,20,40) GUICtrlCreatePic("Botton ImageHolder.jpg",$guiPanWidth - 30,50,20,40) GUICtrlCreatePic("Botton ImageHolder.jpg",$guiPanWidth - 30,95,20,40) GUICtrlCreatePic("Botton ImageHolder.jpg",$guiPanWidth - 30,140,20,40) GUICtrlCreatePic("Botton ImageHolder.jpg",$guiPanWidth - 30,185,20,40) ;The labels which are going to become the core of the program GUISetState(@SW_SHOW) StartMenu() while 1 Sleep(10000) ; Idling for 4 seconds Exit WEnd ;Functions Func QuickLaunchLoad() EndFunc Func StartMenuLoad() EndFunc Func ShortCutLoad() EndFunc Func CoreCreate() ;creates the center labels for the shortcuts and startmenu items EndFunc Func StartMenu() Msgbox(0,"Working:","StartMenu") EndFunc Func Shortcuts() EndFunc Func TaskBar() EndFunc Func SystemInfo() EndFunc Func PanelEvents() Select Case @GUI_CTRLID = $GUI_EVENT_CLOSE ;MsgBox(0, "Close Pressed", "ID=" & @GUI_CTRLID & " WinHandle=" & @GUI_WINHANDLE) Exit Case @GUI_CTRLID = $GUI_EVENT_MINIMIZE ;MsgBox(0, "Window Minimized", "ID=" & @GUI_CTRLID & " WinHandle=" & @GUI_WINHANDLE) Case @GUI_CTRLID = $GUI_EVENT_RESTORE ;MsgBox(0, "Window Restored", "ID=" & @GUI_CTRLID & " WinHandle=" & @GUI_WINHANDLE) EndSelect EndFunc
-
Au3GlPlugin T2 - OpenGl Plugin Evolution
JohnWang replied to A. Percy's topic in AutoIt Example Scripts
Hi, First I must thank you for creating such an awesome plug in. However, I have problem running the examples that involves ntdll.dll which generates a crash message when ever an example with "Texture" is started. SciTe would start compiling it and fails to start with a windows error message. I have a dedicated card as shown below which show definitely support OpenGL, I am unsure why this is happening and search of the forum does not reveal the proper solution to my problem. Therefore, I have posted here for help. Thank you for any replies. Here's some basic sepc: Vista 32 bit Home Basic 8600m GT C2D 1.6 -
*Hope the contains of this thread is not considered offensive to the mods/admins, if so please delete this thread at well. sorry in advance if so. Captcha According to Wikipedia.org means: completely automated public Turing test to tell computers and humans apart", trademarked by Carnegie Mellon University) is a type of challenge-response test used in computing to determine whether or not the user is human. I am pretty sure most of you have encountered one of these before, either from browser games or email/forum sign ups. Here is my question, is there anyways to fufill the Captacha system with a program? meaning is it possible to write a program (lets say in auto it ) so the fill in the blank processes can be automated such as a bot for browser games. Examples would be kings of Choas, Dark Thrones etc [just examples i dont play any of the browser games, used to, not anymore]. The reason for this question is that recently i got a program which does an automation for me [going to the web site, enter the text and download requested file], and it had successfully passed the system. I got curious and check out the program folder and found only thing it there related to it was a temp image that contains the original generated Captcha image, this puzzles me and i have no way of figuring it out how the programmer did it. So im here to ask you guys for help. I did some research in google. Some of the common used method are either by using an optical text recognition program[basically means a programs that look at the image and try to figure out the best match that fits teh text] or an dirty alternative of exploiting human weakness.. feeding the challenge to a porn site asking users for input before the "goods". However, i dont think either methods are very reliable (well besides the second one)....and there must be a better way to do this task. I am just trouble by it, and i want to figure it out. Thanks in advance for any reply.
-
Hey Thanks for the post.. Issue one shouldnt be a problem since the menu is disabled, it will not respond as you click on any opions on the menu. Issue 2: i back to the code and found some error with the way i detect the drive and i exempted "A:' drive from the detection. Im very sorry that i forgot to exempt the A drive in the first place as i dont have a floppy drive on my pc so obviously i didnt notice the problem in the first place. I went in and added a splash Text On When the PC locks up and turns off when its unlocked, hope this helps =D and thanks pointing out my errors again Heres the new code: Enjoy
-
Nice script... it works for me , here in TX.. =D thanks for the post. Off topic: One more thing about the xp mod pack is it stable to use? caz i check out the forum and many ppl have problem with their pc after the vista mod.. -JohnWang
-
oops sry edited in the original post, No problem im just giving credit to where its due.. =D
-
hello~ I made a program that locks the pc and can unlock the pc by using a "Memory Stick" or a removable Drive. No More typing pain in the ass long password, just pop in the Memory Sticks and Bingo its unlocked. did this for fun, thought it might be neat/trying something new, to unlock your pc with a Memory Stick/Removable Drive.Longer password/Less typing i guess *Reminder: Acutally speed may vary on different computer caz i have a processor speed of 3.0 ghz so the Encrypt/Decrypt goes faster on my pc, but i think it should be fine on most of the other pcs.. IMPORTANT Please Read: There's a HotKey Put in Place for those who wants to test teh program but dont have a Removable Drive or those that are lazi to find their drive O_o. HotKey:Ctrl + Alt + h Try it at ur own risk lol.... (beta tested on my pc so it should be fine.. just in case so i placed a warning) Special Thanks to Valuater, his code show me some neat way of locking ones pc. "*VAULTER* -PC LOCKOUT" Anyways Heres the Code: