420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich

penis pump

Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
I would go to a VBS forum, but... by breakabond - Sat, 11 Feb 2017 07:27:55 EST ID:1joa5uVv No.36502 Ignore Report Quick Reply
File: 1486816075377.png -(11163B / 10.90KB, 359x171) Thumbnail displayed, click image for full size. 11163
I want to make a better GUI for this script. The script is supposed to accept an input string and a number -> wait -> type that string and simulate enter key in loop.
Like a basic emergecny beacon of sorts

set shell = createobject("wscript.shell")

strtext = inputbox("Message :")
strtimes = inputbox("Number of times to spam")

if not isnumeric(strtimes) then
wscript.quit
end if
msgbox "You have 5 minutes to end wscript.exe"
wscript.sleep(300000)
for i=1 to strtimes
shell.sendkeys(strtext & "{enter}")
wscript.sleep(1000)
next


But can I rather leave a msgbox open with a button to cancel it? -> 5 mins is up -> one of two things (whichever is easier for yall)
1) msgbox dissapears and the loop begins spamming message. this requires quickly ending wscript.exe
2) gui remains (msgbox with quit button), maybe even has a countdown, and allows clicking to quit the script, and the spamming happens after the timer just normal.

Option 2, harder, but does it require fancy threading?
>>
Cedric Pickwell - Sun, 12 Feb 2017 02:20:17 EST ID:cpPd0VLJ No.36503 Ignore Report Quick Reply
If you wish to avoid threading, then you can do all of this on a single-thread if you create the message-box with a timer attached to a callback (say ticks once every second or so).
>>
breakabond - Sun, 12 Feb 2017 10:23:21 EST ID:1joa5uVv No.36504 Ignore Report Quick Reply
>>36503
What's your going rate?
>>
Cedric Pickwell - Sun, 12 Feb 2017 16:45:51 EST ID:cpPd0VLJ No.36505 Ignore Report Quick Reply
>>36504
I don't have a going rate. You should post this question on the Windows subsection of Stack Overflow.
>>
Martha Manderfield - Mon, 13 Feb 2017 20:38:18 EST ID:1joa5uVv No.36506 Ignore Report Quick Reply
>>36505
cmonnnn make it for me
>>
Graham Farryfock - Mon, 06 Mar 2017 16:31:04 EST ID:rAGFRmkY No.36598 Ignore Report Quick Reply
It's called VB6
>>
David Dubblegold - Tue, 07 Mar 2017 12:53:22 EST ID:rAGFRmkY No.36603 Ignore Report Quick Reply
Dim
>>
Untested Like This? - Tue, 07 Mar 2017 12:57:50 EST ID:rAGFRmkY No.36604 Ignore Report Quick Reply
Do
Dim Vb=MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
If Vb=VBYes Then
End
Else
Vb=MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
End If
Loop Until Vb=VBYes
>>
Edward Himmermock - Wed, 08 Mar 2017 05:14:37 EST ID:YL0YFsWq No.36605 Ignore Report Quick Reply
>>36603
BrU strikes again
>>
Fanny Grandford - Sun, 19 Mar 2017 13:19:37 EST ID:8Wkw9vVF No.36624 Ignore Report Quick Reply
>>36604
Do
Dim Vb As Integer
Vb = MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
If Vb = VBYes Then
Exit Loop
End If
Loop Until Vb=VBYes
>>
Jenny Gebberhodging - Sat, 25 Mar 2017 11:06:55 EST ID:rAGFRmkY No.36633 Ignore Report Quick Reply
<style>
video{
filter:contrast(2);
}
canvas{
filter:invert(180%);
}
</style>
<center>
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>

<canvas id="canvas" width="640" height="480"></canvas>
<script>

document.addEventListener("DOMContentLoaded", function() {
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var video = document.getElementById('video');
var mediaConfig = { video: true,audio:false};
var errBack = function(e) {
console.log('An error has occurred!', e)
};
if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
video.src = window.URL.createObjectURL(stream);
video.play();

});
}
else if(navigator.getUserMedia) {
navigator.getUserMedia(mediaConfig, function(stream) {
video.src = stream;
video.play();

}, errBack);
} else if(navigator.webkitGetUserMedia) {
navigator.webkitGetUserMedia(mediaConfig, function(stream){
video.src = window.webkitURL.createObjectURL(stream);
video.play();
}, errBack);
} else if(navigator.mozGetUserMedia) {
navigator.GetUserMedia(mediaConfig, function(stream){
video.src = window.URL.createObjectURL(stream);
video.play();
}, errBack);
}
var cct=getBase64Image(video)
var ctt=getBase64Image(video);
document.addEventListener('keydown', function() {


ctt=getBase64Image(video);




if(ctt>539909){
context.drawImage(video, 0, 0, 640, 480);
}else{
alert('Person Not In Frame!!');
}


});
}, false);
function getBase64Image(img) {

var canvas = document.createElement("canvas");
canvas.width = img.width;
canvas.height = img.height;

var ctx = canvas.getContext("2d");
ctx.drawImage(img, 0, 0);

var dataURL = canvas.toDataURL("image/png");

return dataURL.length;
}
</script>


</body>


Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.