Content Type
Profiles
Forums
Events
Everything posted by Outbreaker
-
I also noticed that the "browsewm.dll" file is not a part of POSReady 2009 but it is included in the IE6 HotFix. So much for the Microsoft claim that this POSReady 2009 updates are not for Windows XP.
-
Ahh thanks, that is what i was looking for now the HTA Script is now working excellent. And the 'replaceAll' commend i found in google but i think that one was for jQuery or JaveScript. I'm sorry for all the noob questions but i'm really not a coder unfortunately i had to use a HTA Script for my little free project there was no way around it.
-
It works but thier is a little problem it replaces "(+basepath+)" only once in a entry VALUE. I did try to change 'replace' to 'replaceAll' but that didn't work at all. Example .hta Script: <!--This code is property of Gunsmokingman and Or Jake1Eye and you must have his permission to use.This is only posted as example code and meant only to used as such.--><TITLE> « Test Script » </TITLE><HTA:APPLICATION ID="TESTSCRIPT" SCROLL="no" SCROLLFLAT="no" SINGLEINSTANCE="yes" SHOWINTASKBAR="yes" SYAMENU="yes" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" CONTEXTMENU="no" NAVIGABLE="no" BORDER="thin" BORDERSTYLE="normal" INNERBORDER="no" CAPTION="yes" WINDOWSTATE="normal" APPLICATIONNAME="Test_Script" ICON="%SystemRoot%\explorer.exe"><script language="JavaScript">//-> Resize And Place In Approx Centerwindow.resizeTo(300,160)window.moveTo(screen.availWidth/2-(300/2),screen.availHeight/2-(160/2))//-> Objects For Runtimevar Act = new ActiveXObject("Wscript.Shell");var fso = new ActiveXObject("Scripting.FileSystemObject");var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");//-> Runtime Variblevar c34 = String.fromCharCode(34);var HtaPath = TESTSCRIPT.commandLine.replace(c34,"");var basepath = new Array;//-> Body OnLoad Functionwindow.onload=function() { basepath = HtaPath.split('\\'); basepath.pop(); basepath = basepath.join('\\');}//-> Process Only Checked Checkboxesfunction submit() { for (var i = 0; i < cbo.length; i++) { if (cbo[i].value==null==false && cbo[i].checked) { try { alert(cbo[i].value.replace("(+basepath+)",Act.CurrentDirectory),1,true); } catch(e) { /*Error Code For Selected But Could Not Run*/; } } } window.close();}//-> Close HTAfunction closehta() { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.CommandLine==null==false && p.name =="mshta.exe") { var a = p.commandLine.replace('"',"") var b = p.ExecutablePath + HtaPath if (a.length==b.length+3==true) { TKill(p.ProcessId); } } }}//-> Kills ProcessIDfunction TKill(K) { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process Where ProcessID='"+K+"'") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); p.Terminate(); }}</script><body onbeforeunload="closehta()"><table width="100%" align="center" border="1"> <td valign="top"> <table> <tr> <td class="c1">Demo</td> <td><input type="checkbox" id="cbo" name="checkbox1" value='"%WinDir%\system32\calc.exe"' checked></input> </td> </tr> <tr> <td class="c1">INI Config file path Problem</td> <td><input type="checkbox" id="cbo" name="checkbox2" value='"(+basepath+)\..\Programs\File.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input> </td> </tr> </table> </td></table><table width="60%" align="center" style="margin:8px 0px 0px 0px;"> <tr> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="submit()">Submit</button></td> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="closehta()">Quit</button></td> </tr></table></body>
-
Thanks for the help but i have problems to implement this examples into the Script i'm using. Here is a trimmed down version of the script i use, the idea i had was to use for example a command like (+basepath+) that would print out the Script current working directory. value='"..\Programs\Mozilla Firefox v26.0.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input><!--This code is property of Gunsmokingman and Or Jake1Eye and you must have his permission to use.This is only posted as example code and meant only to used as such.--><TITLE> « Test Script » </TITLE><HTA:APPLICATION ID="TESTSCRIPT" SCROLL="no" SCROLLFLAT="no" SINGLEINSTANCE="yes" SHOWINTASKBAR="yes" SYAMENU="yes" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" CONTEXTMENU="no" NAVIGABLE="no" BORDER="thin" BORDERSTYLE="normal" INNERBORDER="no" CAPTION="yes" WINDOWSTATE="normal" APPLICATIONNAME="Test_Script" ICON="%SystemRoot%\explorer.exe"><script language="JavaScript">//-> Resize And Place In Approx Centerwindow.resizeTo(300,160)window.moveTo(screen.availWidth/2-(300/2),screen.availHeight/2-(160/2))//-> Objects For Runtimevar Act = new ActiveXObject("Wscript.Shell");var fso = new ActiveXObject("Scripting.FileSystemObject");var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");//-> Runtime Variblevar c34 = String.fromCharCode(34);var HtaPath = TESTSCRIPT.commandLine.replace(c34,"");var basepath = new Array;//-> Body OnLoad Functionwindow.onload=function() { basepath = HtaPath.split('\\'); basepath.pop(); basepath = basepath.join('\\'); Act.CurrentDirectory = basepath;}//-> Process Only Checked Checkboxesfunction submit() { for (var i = 0; i < cbo.length; i++) { if (cbo[i].value==null==false && cbo[i].checked) { try { Act.Run(Act.ExpandEnvironmentStrings(cbo[i].value),1,true); } catch(e) { /*Error Code For Selected But Could Not Run*/; } } } window.close();}//-> Close HTAfunction closehta() { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.CommandLine==null==false && p.name =="mshta.exe") { var a = p.commandLine.replace('"',"") var b = p.ExecutablePath + HtaPath if (a.length==b.length+3==true) { TKill(p.ProcessId); } } }}//-> Kills ProcessIDfunction TKill(K) { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process Where ProcessID='"+K+"'") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); p.Terminate(); }}</script><body onbeforeunload="closehta()"><table width="100%" align="center" border="1"> <td valign="top"> <table> <tr> <td class="c1">Demo</td> <td><input type="checkbox" id="cbo" name="checkbox1" value='"%WinDir%\system32\calc.exe"' checked></input> </td> </tr> <tr> <td class="c1">INI Config file path Problem</td> <td><input type="checkbox" id="cbo" name="checkbox2" value='"..\Programs\File.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input> </td> </tr> </table> </td></table><table width="60%" align="center" style="margin:8px 0px 0px 0px;"> <tr> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="submit()">Submit</button></td> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="closehta()">Quit</button></td> </tr></table></body>
-
Shouldn't then this here not work when i replace "Act.ExpandEnvironmentStrings" with "Act.CurrentDirectory"? var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");var Act = new ActiveXObject("Wscript.Shell");Act.Run(Act.CurrentDirectory(cbo[i].value),1,true);<input type="checkbox" id="cbo" name="checkbox1" value='"..\Programs\File.exe" /INI="..\Settings\Config.ini"' checked</input>The problem is that there is a problem that is insisting that i point to the full path for the silent installation Config.ini file.
-
HI, Is it possible to get this DOS commend line "%CD%\..\Settings\File.ini" to work whit a VBScript? It works in a CMD window but i cannot get it to work whit a VBScript. var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");var Act = new ActiveXObject("Wscript.Shell"); Act.Run(Act.ExpandEnvironmentStrings(cbo[i].value),1,true);<input type="checkbox" id="cbo" name="checkbox1" value='"..\Programs\File.exe" /INI="%CD%\..\Settings\File.ini"' checked</input>
-
Need a little Batch help.
Outbreaker replied to Outbreaker's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Thanks guys everything is now working with "IF !ERRORLEVEL! EQU 0 (" . -
Need a little Batch help.
Outbreaker replied to Outbreaker's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I did everything you said but i still get this error: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ixhplayerg.apl\shell 'do' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . -
HI, I did a little script but i'm stuck at the stage where the script should checks if a registry entry exists and if one exists then the script should add the additional registry keys. Everything works except this check thing. SETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=3g2-0 3ga-0 3gp-0 3gp2-0 3gpp-0 aac-0 ac3-0 aif-0 aifc-0 aiff-0 alac-0 amr-0 amv-0 aob-0 ape-0 apl-0for %%j in (%Extn%) do ( for /f "tokens=1,2 delims=-" %%a in ("%%j") do ( REG QUERY "%SC%\ixhplayerg.%%a" 1>NUL IF "%ERRORLEVEL%"=="0" do ( REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue" /ve /t REG_SZ /d "Add to IXH Playlist" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue" /v "Icon" /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\",%%b" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue\command" /ve /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\" \"/add %%1\"" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\open" /ve /t REG_SZ /d "Play with IXH" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\open" /v "Icon" /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\",%%b" /f 1>NUL ) ))ENDLOCAL
-
HI, I try to do a little script for Joomla (CMS) that would add a HTML "<div></div>" tag line based on the first category page (entry page) and the browser user-agent. But the problem i have is to only run the script on the first category page (entry page). This is the working PHP Script that would outputting a different "<div></div>" tag if a user-agent.is detected. if (preg_match('/(Test1-Bot|Test2-bot)/i', $_SERVER['HTTP_USER_AGENT'])) { echo '<div class="cloud1">'; } else { echo '<div class="cloud2">'; } <p>Some HTML Output</p> </div> So now the problem is that i want to run the above PHP Script only on the first category page (entry page) but i have problems to code this (Beginner). This script would show it on all Blog pages: if ( $option == 'com_content' and $view == 'category' and $id == '8' and $Itemid == '101' and $jinput->get('layout') == 'blog' /*!*/ ) return XXX; And this script would show it only on the Blog page 2. if ( $option == 'com_content' and $view == 'category' and $id == '8' and $Itemid == '101' and $jinput->get('layout') == 'blog' /*!*/ and $jinput->get('limitstart') == '4' /*!*/ and $jinput->get('start') == '4' ) return XXX; How could i code a script that would run the above user-agent script only on Blog Page 1 (enter page)?
-
cmd/bat to uninstall IE ?
Outbreaker replied to vinifera's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Okay then the IE uninstaller on Win7 is little bit differently than on WinXP. But i wouldn't remove any IE files manually on WinXP i tried this and i got some problems with some third-party applications. -
cmd/bat to uninstall IE ?
Outbreaker replied to vinifera's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Check if the IE .exe file is not only hidden like in WinXP with WMP. -
cmd/bat to uninstall IE ?
Outbreaker replied to vinifera's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Don't remove any Internet Explorer files because various Windows components and third-party applications rely upon Internet Explorer code. Here is a batch script to uninstall it over the control panel (Tested on WinXP): @ECHO OFF ECHO. ECHO Uninstalling Internet Explorer... SET WC="%Temp%\WC_Uninstall_Config.txt" ECHO [components]> %WC% ECHO IEAccess = Off>> %WC% sysocmgr /i:"%WINDIR%\inf\sysoc.inf" /u:"%Temp%\WC_Uninstall_Config.txt" DEL "%Temp%\WC_Uninstall_Config.txt" ECHO Done pause EXIT http://itk.samfundet.no/dok-filer/ms-xp-sp2-deployment-ref/u_components.htm -
Merry Christmas
Outbreaker replied to Yzöwl's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Merry Chrismas. Format C.\ -
Graphic card is more important then an SSD and i don't want to upgrade again in one year but i will wait till the GTX 660TI is around 200€.
-
Thanks for the input i think i will but 2 x 2TB HDD i always can update to an SSD if needed or if they get a lot cheaper. I think i will be better of getting a better graphic card (GTX 560TI -> GTX 660TI) instead of an SSD.
-
I want to stay around 100€ for an SSD or HDD don't want to rob a bank. Question if i use a 128GB SSD and put only Windows on it and everything else on a 2TB HDD would i see a big speed difference than like putting everything on one HDD?
-
It's not an easy choice since i have right now around 700GB of files Steam itself already uses 60GB space so i would need at least a 250GB SSD and i would also need a 2 x 2TB HDD one for storage and one for Backup. The 250GB SSD (Samsung 830) cost as much as the 2 x 2TB HDD together.
-
If i buy a HDD then for sure a 7200rpm (Hitachi Deskstar 7K3000 2TB), I have also no problem to wait 3 seconds more if a program opens the main point for me is if an SSD is noticeably faster if i work in Photoshop and in Microsoft Office simultaneously. I fear that i put the 110€ in the sand when I buy a SSD because i can only use it for Windows and Progarms.
-
HI I can't decide if i should buy for my new PC an SSD or HDD i'm not sure if it's worth the 110€ for a 128GB SSD if i have 8GM RAM. Do i have any performance gain if i do Browsering, Office work and Photoshop work ...? I also boot my PC only once a month for updates so the booting time isn't important.
-
Power supply PCI Express amperage output question
Outbreaker replied to Outbreaker's topic in Hardware Hangout
Thanks. And what if a power supply has "+12V - 70 A" and 4x PCIe connectors? does that mean it doesn't matter how much amperage a single +12V connector uses only that all +12V conncter can not get more then 70 A is that right? -
HI I'm looking for a new Power supply for my new PC but i'm confused about some Technical Data on the "be quiet! Straight Power E9 700 Watt" . +12V1 - 18 A / 56 A +12V2 - 18 A / 56 A +12V3 - 22 A / 56 A +12V4 - 22 A / 56 A Way are they wirtting 56A behind every +12V connector?