Jump to content
UBot Underground

problems with _blank links in load html and missing keyboard keys


Recommended Posts

Problems getting a clicked link inside a load html command to function in a new window.

 

example

on load("Bot Loaded") {
    load html("<a href=\"http://www.google.com\" target=\"_blank\">Go to google</a> ")
}

compile the bot.

load the bot.

click link.

nothing.

click link again.

nothing.

click click click click *bashes keyboard*

nothing. + missing key.

Link to post
Share on other sites

i thing isnt so easy cause of browsersandboxes (dont allows open external programs)

the only way what works maybe,  is to scraoe the link and offert it in your UI Panel

Link to post
Share on other sites

the problem with that is that the way the script works is it scraps data, then loads a new html page to display that data.

if you did that in the ui panel, the data does not refresh, and if it did, it would reset the the form fields no? 

 

 

 

 

i thing isnt so easy cause of browsersandboxes (dont allows open external programs)

the only way what works maybe,  is to scraoe the link and offert it in your UI Panel

Link to post
Share on other sites

that's actually a good idea.

with windows, you can open a browser using the start command.

 

 

cmd

start http://www.youtube.com/#video

 

hmm. thanks for reminding me of that. lol

i'll have to see if i can execute a shell command from the loaded html pages links or buttons. i've not done that before. tried to avoid utilizing any outside commands to prevent trust issues.

 

i real don't know it was an idea i would try

cause i see it is the only possiblety u got 
maybe another way is to scrap the link and doit over shell comand

Link to post
Share on other sites

as for links if anyone is wondering,

<a href=\"#\" target=\"_blank\" onclick=\"ubot.runScript(\'browse()\')\">Go to google</a>

I'd be curious to figure a way to modify a variable from the same link, so that inside the runscript, it will include a url already defined.

until then, I guess I have a bunch of defines to make :P

 

hope that helps someone looking for a work-around.

on load("Bot Loaded") {
    load html("<a href=\"#\" target=\"_blank\" onclick=\"ubot.runScript(\'browse()\')\">Go to google</a>")
}
define browse {
    save to file("start.bat", "start http://www.google.com")
    shell("start.bat")
    delete file("start.bat")
}
Link to post
Share on other sites

Is this what you are trying to do?

 

http://www.ubotstudio.com/forum/index.php?/topic/12812-example-popups-in-new-window-source/

 

Or here    shell("cmd.exe /c start http://www.r2-vps.net")

 

from here http://www.ubotstudio.com/forum/index.php?/topic/9608-monetizing-a-free-bot/page-2

 

same thread (lot's of things here)

 

ui html panel("<a href=\"#;\" onclick=\"ubot.runScript(\'goBabyGo\');\">Click here ;)</a>", 50)
define goBabyGo {
    shell("cmd.exe /c start http://imautobots.com")
}

 

TC

Link to post
Share on other sites

i've already coded it to use define's. works good. i'll change that in a later version to prevent a new file being created.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...