is this possible

Discussion in 'Software' started by red death68, Jul 2, 2011.

  1. red death68

    red death68 Command Sergeant Major

    ok so im making a custom interface for my hta and would like to create a custom run button is it possible to make a picture and use it in place of the run button?
     
  2. GermanOne

    GermanOne Guest

    Embed a picture and use the onClick event to run the program.
    Code:
    <img src="abc.jpg" alt="Run Button" width="100" height="30" onClick="yourSub" style="cursor:'hand';" />
    
    Regards
    GermanOne
     
  3. red death68

    red death68 Command Sergeant Major

    works perfectly tyvm man

    one other question how can i choose where its placed ?
     
    Last edited: Jul 2, 2011
  4. GermanOne

    GermanOne Guest

    Position could be also defined in the style attribute.
    Code:
    <img src="abc.jpg" alt="Run Button" width="100" height="30" onClick="yourSub" style="cursor:'hand'; position:'absolute'; top:50; left:100;" />
    Regards
    GermanOne
     
  5. red death68

    red death68 Command Sergeant Major

    works perfectly ty
     
  6. red death68

    red death68 Command Sergeant Major

    german one more question how can i position my check boxes to custom positions?
     
  7. GermanOne

    GermanOne Guest

    The same way (directly in the tag) or programatically
    Code:
    id.style.position="absolute"
    id.style.top="50"
    id.style.left="100"
    
    ... where you have to change id to the real ID of the tag.

    Regards
    GermanOne
     
  8. red death68

    red death68 Command Sergeant Major

    german im still having trouble this is the code im using to get the positioning down please help me i cant seem to make it work

    Code:
    <html>
      <head>
        <title>Mod Uninstaller</title>
        <HTA:APPLICATION 
             ID="Mod Uninstaller"
             APPLICATIONNAME="Mod Uninstaller"
             SCROLL="no"
             SINGLEINSTANCE="yes"
             WINDOWSTATE="maximize"
             MaximizeButton="no"
             MinimizeButton="no"
             Border="thin"
             icon="moduninstaller.ico"
        >
      </head>
    
     <SCRIPT LANGUAGE="VBScript">   
        window.resizeto 800, 600 
        sub test
         msgbox "hi"
        end sub
      </script>
      
      <body background="beginning of uninstaller ui.PNG" BGPROPERTIES=FIXED>
    		
          <input type="checkbox" id="sound" sound.style.position="absolute" sound.style.top="50" sound.style.left="100" > <br>
          <input type="checkbox" name="bg" > <br>
          <input type="checkbox" name="bgm" > <br>
          <input type="checkbox" name="ui" > <br>
          <input type="checkbox" name="km" /> <br>
    	  <input type="checkbox" name="msg" /> <br>
          <img src="moduninstaller.ico" alt="Run Button" width="128" height="128" onClick="test" style="cursor:'hand'; position:'absolute'; top:347; left:442;" />
      </body>
    </html>
     
  9. GermanOne

    GermanOne Guest

    Wrong. I wrote "programmatically" (by vbs).

    If you want to change the style property directly in the tag, you have to do the same like in post #4.
    Code:
    <input type="checkbox" id="sound" style="position:'absolute'; top:50; left:100;">
    Regards
    GermanOne
     
  10. red death68

    red death68 Command Sergeant Major

    o i see my bad man totally misunderstood that post thanks again dude for the clearification
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds