dqdegvzman Posted April 29, 2013 Share Posted April 29, 2013 help me edit this scriptI want to change the Detection of java on the computer ("C:\Program Files\Java\jre7\bin\java.exe")byHKEY_LOCAL_MACHINE\SOFTWARE\JavaSoftIf FileExists("C:\Program Files\Java\jre7\bin\java.exe") Or FileExists("C:\Program Files (x86)\Java\jre7\bin\java.exe") Then ShellExecute(@ScriptDir & "\xxx.jar") Else $java = InetGet("http://javadl.sun.com/webapps/download/AutoDL?BundleId=76860", "javainstall.exe") ShellExecute($java) ShellExecute(@ScriptDir & "\xxx.jar") EndIf Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 29, 2013 Moderators Share Posted April 29, 2013 (edited) dqdegvzman, you already have a thread going on this subject, and have been receiving suggestions. Why are you opening another thread? My advice would be to look at the help file under Registry Management. Edited April 29, 2013 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Nessie Posted April 29, 2013 Share Posted April 29, 2013 Just answered a few hour ago:_NavInfo_IsJavaInstalled from my will do the trick.Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
dqdegvzman Posted April 29, 2013 Author Share Posted April 29, 2013 dqdegvzman, you already have a thread going on this subject, and have been receiving suggestions. Why are you opening another thread? My advice would be to look at the help file under Registry Management.I made mistake in writing the informationyou can write to me, the change should I do Link to comment Share on other sites More sharing options...
dqdegvzman Posted April 29, 2013 Author Share Posted April 29, 2013 Just answered a few hour ago:_NavInfo_IsJavaInstalled from my will do the trick.Hi!my scripts workI want to change the Detection of java on the computer("C:Program FilesJavajre7binjava.exe")byHKEY_LOCAL_MACHINESOFTWAREJavaSoft Link to comment Share on other sites More sharing options...
dqdegvzman Posted April 29, 2013 Author Share Posted April 29, 2013 Just answered a few hour ago:_NavInfo_IsJavaInstalled from my will do the trick.Hi!you can write to me, the change should I do Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 29, 2013 Moderators Share Posted April 29, 2013 No one is going to spoon feed you the script. And as Melba mentioned already, this continued begging is going to lead to a short stay on this forum; I would suggest you put forth some effort. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Nessie Posted April 29, 2013 Share Posted April 29, 2013 (edited) It's very easy to implement, there is also an example of usage in the UDF topic: #include <NavInfo.au3> $Is_Java = _NavInfo_IsJavaInstalled() If $Is_Java Then MsgBox(0, "", "") ShellExecute(@ScriptDir & "\xxx.jar") Else $java = InetGet("http://javadl.sun.com/webapps/download/AutoDL?BundleId=76860", "javainstall.exe") ShellExecute($java) ShellExecute(@ScriptDir & "\xxx.jar") EndIf Hi! Edited April 29, 2013 by Nessie My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
dqdegvzman Posted April 29, 2013 Author Share Posted April 29, 2013 It's very easy to implement, there is also an example of usage in the UDF topic: #include <NavInfo.au3> $Is_Java = _NavInfo_IsJavaInstalled() If $Is_Java Then MsgBox(0, "", "") ShellExecute(@ScriptDir & "\xxx.jar") Else $java = InetGet("http://javadl.sun.com/webapps/download/AutoDL?BundleId=76860", "javainstall.exe") ShellExecute($java) ShellExecute(@ScriptDir & "\xxx.jar") EndIf Hi! --------------------------- AutoIt Error --------------------------- Line 1 (File "H:auti itNouveau dossiermourad.au3"): #include <NavInfo.au3> Error: Error opening the file. --------------------------- OK --------------------------- Link to comment Share on other sites More sharing options...
Nessie Posted April 29, 2013 Share Posted April 29, 2013 You have to download the UDF from the topic, then copy the .au3 that you have downloaded to the "Include" folder contained in the autoit installation folder Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2013 Moderators Share Posted April 29, 2013 Nessie,I would strongly disagree with that suggestion for storing the UDF. Much better to create your own "Include" folder as described in the Adding UDFs to AutoIt and SciTE tutorial in the Wiki. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2013 Moderators Share Posted April 29, 2013 (edited) dqdegvzman,I note the use of the word "mourad" in your script path. I also note that you share an IP with enviroinvestor, who tried to get round his ban with the mourad000009 account. Anything to say about that? M23 Edited April 29, 2013 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Nessie Posted April 29, 2013 Share Posted April 29, 2013 Nessie,I would strongly disagree with that suggestion for storing the UDF. Much better to create your own "Include" folder as described in the Adding UDFs to AutoIt and SciTE tutorial in the Wiki. M23Thanks for the advice, and this is how i store all the UDF that are not natively included to autoit. But seeing that case (without offence), its better for him to copy the UDF than playing with the windows registry.Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2013 Moderators Share Posted April 29, 2013 Nessie, I understand. Now please everyone keep quiet until I get a reply from the OP. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 30, 2013 Moderators Share Posted April 30, 2013 dqdegvzman, I will assume that you are indeed evading a ban given that you opened another account to ask the same question once this thread was spotted. This would have been worthy of a ban anyway, so let us not mess about. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts