Jump to content

ROck_

Member
  • Posts

    27
  • Joined

  • Last visited

Awards

This user doesn't have any awards

1 Follower

About ROck_

  • Birthday Jun 19, 1996

Contact Methods

  • Steam
    rpgrock4@gmail.com

Profile Information

  • Gender
    Male
  • Location
    India
  • Interests
    Gaming
  • Occupation
    Studying IT engineering

System

  • CPU
    AMD Phenom IIx6 1090T Black Edition
  • Motherboard
    GA-990XA-UD3
  • RAM
    Kingston HyperX 8 GB 1866 mhz
  • GPU
    Zotac GTX 750 ti 2 gb GDDR5 OC edition
  • Case
    Cooler Master K380
  • PSU
    Corsair 450W
  • Keyboard
    Logitech
  • Mouse
    Razer Deathadder 2013
  • Operating System
    Windows 10

Recent Profile Visitors

839 profile views
  1. That dell inspiron gaming is not available I guess, but ASUS does seem better. Isn't 4 KG weight too much? as I am buying it for travelling.
  2. http://www.amazon.in/Dell-Inspiron-15-7000-15-6-inch-Refurbished/dp/B01FXPRCXE/ref=sr_1_1?ie=UTF8&qid=1490804851&sr=8-1&keywords=dell+inspiron+15+7000 This one? I don't think 750M does much of gaming
  3. http://www.amazon.in/MSI-Gaming-i5-7300HQ-7200rpm-GeForce/dp/B06WGX9BMG/ref=sr_1_2?ie=UTF8&qid=1490801861&sr=8-2&keywords=msi+laptop or http://www.amazon.in/MSI-GL62-7QF-15-6-inch-Corei7-7700HQ/dp/B01N7JUB7F/ref=sr_1_1?ie=UTF8&qid=1490801861&sr=8-1&keywords=msi+laptop
  4. yea I corrected that,the name validation works,contact one never runs. function c() { var mytext = document.getElementById("textarea").value; var myname = document.getElementById("name").value; if(myname.length==0) { alert("Please Enter Your Name"); } var contact=document.getElementById("contact").value; var contactnum=/^\d{10}$/; if(contact.value.match(contactnum)) { return true; } else { alert("Invalid Contact Number"); return false; } }
  5. I have an assignment to validate the form using JavaScript,Please help me out here,why is it not working? I am still trying to figure this out so its not complete yet. <!DOCTYPE html> <html> <head> <style type="text/css"> .container { width: 500px; clear: both; } .container input { width: 100%; clear: both; } body{ background-image:url('268641.jpg');} </style> <script type="text/javascript"> function c() { var mytext=document.getElementById('textarea').value; if(document.getElementById('name').value==0) { alert('Please Enter Your Name'); } var contact=document.getElementById("contact").value; var contactnum=/^\d{10}$/; if((contact.value.match(contactnum)) { return true; } else { alert("Invalid Contact Number"); return false; } } </script> </head> <body> <div class="container"> <form onsubmit="c()"> <label>Name:</label><input type="text" id="name" maxlength="50"><br/><br/> <label>Contact:</label><input type="text" id="contact" maxlength="10"><br/><br/> <label>E-mail:</label><input type="text" id="email"><br/><br/> Gender <br/> <input style="width: 22px;" type="radio" name="gender" value="male">Male<br/> <input style="width: 22px;" type="radio" name="gender" value="female">Female<br/> <input style="width: 22px;" type="radio" name="gender" value="other">Other<br/><br/> <br/> <br/> <label>Comment:</label><textarea id="textarea" rows="4" cols="50"> </textarea><br/> <input type="submit" value="Submit" > </form> </div> </body> </html>
  6. is it fine? I can provide video of the shutter/lag if needed.
  7. Issue remains same even after the cleaning,What I have noticed so far is that the problem occurs rarely when I first start my computer,I tend to do download/updates over night so I don't shut down the computer next morning when I use the computer the sound becomes more frequent and for longer duration. Update: I get huge amount of shutter and lag when I enable/disable the network adapter.
  8. So I noticed my computer makes buzz sound for half a sec and lags whenever I am using it,like it always make the sound when i open a new tab in google chrome,open any website or when i am watching videos,What could be the reason? I checked all the GPU and CPU temps,seems normal. System Specs: OS: Windows 10 Pro 64 bit CPU: AMD Phenom IIx6 1090T GPU: Zotac GTX 750 ti 2 gb OC edition RAM : Kingston HyperX Fury 4x2 1600 mhz Motherboard : Gigabyte GA-990XA-UD3 I don't hear any sound while gaming,most of the times when using Chrome.
  9. Please help,I am getting warning messages when compile : function containing while/for are not expanded inline # include <fstream.h> # include <iostream.h> # include <conio.h> # include <stdio.h> # include <string.h> # include <ctype.h> fstream fin; fstream finm; fstream fout; class Lib { int i,pos,is_book,nor_i,nor_b,f_ac; int rec_b,rec_i; char ch,ans; public: struct book { int acc_no; int pgs; float cost; int copies; char b_name[35]; char author[35]; }bookfile; struct transaction { int ac_no; char book_n[35]; int dd,mm,yy; int chk; }transfile; //------------------------------------------------------------------------------- int i_record() { fout.seekg(0,ios::end); pos=fout.tellp(); rec_i=pos/sizeof(transaction); return rec_i; } //------------------------------------------------------------------------------------------ int b_record() { fin.seekg(0,ios::end); pos=fin.tellp(); rec_b=pos/sizeof(book); return rec_b; } //--------------------------------------------------------------------------------------------- void return_b() { int off=0,ptrt=0,ret=0; clrscr(); gotoxy(20,12);cout<<"Enter the Acc. No.:"; cin>>is_book; nor_i=i_record(); while (ret<nor_i) { fout.seekg(ret*(sizeof(transaction)),ios::beg); fout.read((char*)&transfile,sizeof(transaction)); nor_b=b_record(); while (off<nor_b) { fin.seekg(off*(sizeof(book)),ios::beg); fin.read((char*)&bookfile,sizeof(book)); if (bookfile.acc_no==is_book) { ptrt = 1; bookfile.copies = bookfile.copies + 1; transfile.chk=0; gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ BOOK RETURNED ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; fin.seekp(off*(sizeof(book)),ios::beg); fin.write((char*)& bookfile,sizeof(book)); fout.seekp(ret*(sizeof(transaction)),ios::beg); fout.write((char*)& transfile,sizeof(transaction)); getch(); clrscr(); break; } else {off++;} }; break; }; if (ptrt==0) { gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ Book No. Incorrect ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; getch(); } } //--------------------------------------------------------------------------------------------- void issue() {int off=0,ptrb=0; clrscr(); gotoxy(20,12);cout<<"ENTER THE ACC N0. :"; cin>>is_book; nor_b=b_record(); nor_i=i_record(); while(off<nor_b) { fin.seekg(off*(sizeof(book)),ios::beg); fin.read((char*)&bookfile,sizeof(book)); if(bookfile.acc_no==is_book) { ptrb=1; if(bookfile.copies-1 < 0) { gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ BOOK NOT AVALIABLE ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; getch(); break; } else{bookfile.copies = bookfile.copies-1; gotoxy(3,9); cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"; gotoxy(3,10);cout<<"º°°°°°°°°°°°°°°°°°°°°°°°°° BOOKS °°°°°°°°°°°°°°°°°°°°°°°º"; gotoxy(3,11);cout<<"ÌÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹"; gotoxy(3,12);cout<<"º 1.³Acc_No ³ º"; gotoxy(3,13);cout<<"º 2.³Book Name ³ º"; gotoxy(3,14);cout<<"º 3.³Date of Issue ³ º"; gotoxy(3,15);cout<<"º 4.³Date of Return³ º"; gotoxy(3,16);cout<<"ÈÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"; gotoxy(25,12);cout<<is_book; transfile.ac_no=is_book; gotoxy(25,13);puts(bookfile.b_name); strcpy(transfile.book_n,bookfile.b_name); gotoxy(25,14);cin>>transfile.dd>>transfile.mm>>transfile.yy; if(transfile.mm<12) { gotoxy(25,15);cout<<transfile.dd<<" "<<transfile.mm+1<<" "<<transfile.yy; } else if(transfile.mm==12) { gotoxy(25,15);cout<<transfile.dd<<" 01"<<" "<<transfile.yy+1; } transfile.chk=1; fout.seekp(nor_i*(sizeof(transaction)),ios::beg); fout.write((char*)& transfile,sizeof(transaction)); fin.seekp(off*(sizeof(book)),ios::beg); fin.write((char*)& bookfile,sizeof(book)); nor_i++; getch() ; clrscr(); gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ BOOK ISSUED ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; getch(); clrscr(); break; } } else{off++; } }; if(ptrb==0) { gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ BOOK DOES NOT EXIST ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; getch(); } } //--------------------------------------------------------------------------------- void find_book() {int offset=0,ptr=0; clrscr(); gotoxy(20,12);cout<<"ENTER THE ACC N0. :"; cin>>f_ac; nor_b=b_record(); while(offset<nor_b) {fin.seekg(offset*(sizeof(book)),ios::beg); fin.read((char*)&bookfile,sizeof(book)); if(bookfile.acc_no==f_ac) {ptr=1; gotoxy(5,5); cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"; gotoxy(5,6); cout<<"º°°°°°°°°°°°°°°°°°°°°°°°°° BOOKS °°°°°°°°°°°°°°°°°°°°°°°º"; gotoxy(5,7); cout<<"ÌÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹"; gotoxy(5,8); cout<<"º 1.³Acc_No ³ º"; gotoxy(5,9); cout<<"º 2.³Book Name ³ º"; gotoxy(5,10);cout<<"º 3.³Author ³ º"; gotoxy(5,11);cout<<"º 4.³Pages ³ º"; gotoxy(5,12);cout<<"º 5.³Cost ³ º"; gotoxy(5,13);cout<<"º 6.³No. of Copies ³ º"; gotoxy(5,14);cout<<"ÈÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"; gotoxy(27,8);cout<<f_ac; gotoxy(27,9);puts(bookfile.b_name); gotoxy(27,10);puts(bookfile.author); gotoxy(27,11);cout<<bookfile.pgs; gotoxy(27,12);cout<<bookfile.cost; gotoxy(27,13);cout<<bookfile.copies; getch(); break; } else{offset++; } }; if(ptr==0) {gotoxy(20,21);cout<<"ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"; gotoxy(20,22);cout<<"³ BOOK DOES NOT EXIST ³"; gotoxy(20,23);cout<<"ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"; getch(); clrscr(); } } //-------------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------- void display_book() {clrscr(); fin.seekg(0); nor_b=b_record(); for(i=0;i<nor_b;i++) { clrscr(); fin.seekg(i*sizeof(book),ios::beg); fin.read((char*)& bookfile,sizeof(book)); if (bookfile.acc_no!=0) { gotoxy(5,5); cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"; gotoxy(5,6); cout<<"º°°°°°°°°°°°°°°°°°°°°°°°°° BOOKS °°°°°°°°°°°°°°°°°°°°°°°º"; gotoxy(5,7); cout<<"ÌÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹"; gotoxy(5,8); cout<<"º 1.³Acc_No ³ º"; gotoxy(5,9); cout<<"º 2.³Book Name ³ º"; gotoxy(5,10);cout<<"º 3.³Author ³ º"; gotoxy(5,11);cout<<"º 4.³Pages ³ º"; gotoxy(5,12);cout<<"º 5.³Cost ³ º"; gotoxy(5,13);cout<<"º 6.³No. of Copies ³ º"; gotoxy(5,14);cout<<"ÈÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"; gotoxy(27,8);cout<<i+1; gotoxy(27,9);puts(bookfile.b_name); gotoxy(27,10);puts(bookfile.author); gotoxy(27,11);cout<<bookfile.pgs; gotoxy(27,12);cout<<bookfile.cost; gotoxy(27,13);cout<<bookfile.copies; getch(); } } } //----------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------- void main_book() {nor_b=b_record(); do{ gotoxy(3,5); cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"; gotoxy(3,6); cout<<"º°°°°°°°°°°°°°°°°°°°°° ENTRY FOR BOOKS °°°°°°°°°°°°°°°°°°°º"; gotoxy(3,7); cout<<"ÌÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹"; gotoxy(3,8); cout<<"º 1.³Acc_No ³ º"; gotoxy(3,9); cout<<"º 2.³Book Name ³ º"; gotoxy(3,10);cout<<"º 3.³Author ³ º"; gotoxy(3,11);cout<<"º 4.³Pages ³ º"; gotoxy(3,12);cout<<"º 5.³Cost ³ º"; gotoxy(3,13);cout<<"º 6.³No. of Copies ³ º"; gotoxy(3,14);cout<<"ÈÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"; bookfile.acc_no=nor_b+1; gotoxy(25,8);cout<<nor_b+1; gotoxy(25,9);gets(bookfile.b_name); gotoxy(25,10);gets(bookfile.author); gotoxy(25,11);cin>>bookfile.pgs; gotoxy(25,12);cin>>bookfile.cost; gotoxy(25,13);cin>>bookfile.copies; fin.seekp(nor_b*(sizeof(book)),ios::beg); fin.write((char*)& bookfile,sizeof(book)); nor_b++; clrscr(); gotoxy(20,12);cout<<"DO YOU WANNA CONTINUE [y/n].... "; cin>>ans; }while (ans=='y' || ans=='Y'); } }; //---------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------ void main() {int ch; Lib l; clrscr(); fin.open ("BOOKMAST.DAT",ios::in|ios::out|ios::binary); fout.open("BOOKTRNS.DAT",ios::in|ios::out|ios::binary); do{clrscr(); gotoxy(25,5); cout<<"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"; gotoxy(25,6); cout<<"º MAIN MENU º"; gotoxy(25,7); cout<<"ÌÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹"; gotoxy(25,8); cout<<"º 1.³Display Books º"; gotoxy(25,9); cout<<"º 2.³Add New Books º"; gotoxy(25,10);cout<<"º 3.³Issue º"; gotoxy(25,11);cout<<"º 4.³Return º"; gotoxy(25,12);cout<<"º 5.³Find a Book º"; gotoxy(25,13);cout<<"º 0.³Quit º"; gotoxy(25,14);cout<<"ÈÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"; gotoxy(25,20);cout<<"YOUR CHOICE.........:"; cin>>ch; clrscr(); switch (ch) {case 1 : l.display_book(); break; case 2 : l.main_book(); break; case 3 : l.issue(); break; case 4 : l.return_b(); break; case 5 : l.find_book(); break; case 0 : break; default : {clrscr(); gotoxy(20,11);cout<<"WRONG CHOICE"; } } } while(ch!=0); fin.close(); finm.close(); fout.close(); }
  10. With SendPlay the script doesn't even work outside the game.Also I noticed the script is running with sendinput just mod does not recognize the buttons,the keys are pressed in game, not as mod functions but just as just numpad1
  11. So I am trying to write a script for a game.I am using mode for game GTA San Andreas,the hotkeys work fine with the game I tried some other scripts but I can not get the keys that mod use to work with autohotkey.So basically the mod does not recognize the keys pressed with autohotkey only directly from keyboard,is there a way to make AHK work with specific programs or mods? Numpad2:: SendInput, {enter} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {Numpad1} Sleep, 1000 SendInput, {NumpadMult} Mode uses Numpad1 to perform action,which in this case does not work with AHK.
  12. Well It has everything a flagship product should have.Would be nice to have one.
  13. My razer deathadder died,so using logitech M100 and logitech keyboard (not gaming).Would be nice to have new gaming experience with those.
  14. Only buy Razer deathadder if you want to use it for 6-9 months only It probably won't last more than that.I changed 3 deathadders in 1.5 year,the middle mouse button stopped working for all 3 of them within just 5 months also for third one right click stopped making click noise still works though.Comfort wise deathadder is best in class but this mouse has no durability.I don't own Logitech but I will also buy G502 now.
  15. Using GTX 750 ti now,long time no upgrade, so desperate for it.
×