home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / secret1a / form.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-10-12  |  12.0 KB  |  367 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Secret functions"
  5.    ClientHeight    =   4635
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   5010
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   4635
  13.    ScaleWidth      =   5010
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.Frame Frame6 
  16.       Caption         =   "Control Panels"
  17.       Height          =   2175
  18.       Left            =   1720
  19.       TabIndex        =   19
  20.       Top             =   0
  21.       Width           =   1575
  22.       Begin VB.ComboBox Combo1 
  23.          Height          =   315
  24.          ItemData        =   "Form.frx":0000
  25.          Left            =   120
  26.          List            =   "Form.frx":0013
  27.          Style           =   2  'Dropdown List
  28.          TabIndex        =   23
  29.          Top             =   1680
  30.          Width           =   1335
  31.       End
  32.       Begin VB.CommandButton Command25 
  33.          Caption         =   "Open following->"
  34.          Height          =   375
  35.          Left            =   120
  36.          TabIndex        =   22
  37.          Top             =   1200
  38.          Width           =   1335
  39.       End
  40.       Begin VB.CommandButton Command23 
  41.          Caption         =   "Control Panels"
  42.          Height          =   375
  43.          Left            =   120
  44.          TabIndex        =   21
  45.          Top             =   240
  46.          Width           =   1335
  47.       End
  48.       Begin VB.CommandButton Command24 
  49.          Caption         =   "Display"
  50.          Height          =   375
  51.          Left            =   120
  52.          TabIndex        =   20
  53.          Top             =   720
  54.          Width           =   1335
  55.       End
  56.    End
  57.    Begin VB.Frame Frame4 
  58.       Caption         =   "Mouse / Keyboard"
  59.       Height          =   2175
  60.       Left            =   1720
  61.       TabIndex        =   13
  62.       Top             =   2400
  63.       Width           =   1575
  64.       Begin VB.CommandButton Command11 
  65.          Caption         =   "Swap buttons"
  66.          Height          =   375
  67.          Left            =   120
  68.          TabIndex        =   18
  69.          Top             =   720
  70.          Width           =   1335
  71.       End
  72.       Begin VB.CommandButton Command14 
  73.          Caption         =   "Disable mouse"
  74.          Height          =   375
  75.          Left            =   120
  76.          TabIndex        =   17
  77.          Top             =   1200
  78.          Width           =   1335
  79.       End
  80.       Begin VB.CommandButton Command13 
  81.          Caption         =   "Dis. keyboard"
  82.          Height          =   375
  83.          Left            =   120
  84.          TabIndex        =   16
  85.          Top             =   1680
  86.          Width           =   1335
  87.       End
  88.       Begin VB.TextBox Text1 
  89.          Height          =   315
  90.          Left            =   1080
  91.          TabIndex        =   15
  92.          Text            =   "10"
  93.          Top             =   270
  94.          Width           =   375
  95.       End
  96.       Begin VB.CommandButton Command12 
  97.          Caption         =   "Cursor blink"
  98.          Height          =   375
  99.          Left            =   120
  100.          TabIndex        =   14
  101.          Top             =   240
  102.          Width           =   950
  103.       End
  104.    End
  105.    Begin VB.Frame Frame3 
  106.       Caption         =   "Others functions"
  107.       Height          =   4575
  108.       Left            =   3390
  109.       TabIndex        =   10
  110.       Top             =   0
  111.       Width           =   1575
  112.       Begin VB.CommandButton Command20 
  113.          Caption         =   "FTP"
  114.          Height          =   375
  115.          Left            =   120
  116.          TabIndex        =   30
  117.          Top             =   4080
  118.          Width           =   1335
  119.       End
  120.       Begin VB.CommandButton Command16 
  121.          Caption         =   "System crash"
  122.          Height          =   375
  123.          Left            =   120
  124.          TabIndex        =   29
  125.          Top             =   3600
  126.          Width           =   1335
  127.       End
  128.       Begin VB.CommandButton Command21 
  129.          Caption         =   "Open with"
  130.          Height          =   375
  131.          Left            =   120
  132.          TabIndex        =   28
  133.          Top             =   3120
  134.          Width           =   1335
  135.       End
  136.       Begin VB.CommandButton Command22 
  137.          Caption         =   "Format drive"
  138.          Height          =   375
  139.          Left            =   120
  140.          TabIndex        =   27
  141.          Top             =   2640
  142.          Width           =   1335
  143.       End
  144.       Begin VB.CommandButton Command19 
  145.          Caption         =   "Copy disk"
  146.          Height          =   375
  147.          Left            =   120
  148.          TabIndex        =   26
  149.          Top             =   2160
  150.          Width           =   1335
  151.       End
  152.       Begin VB.CommandButton Command17 
  153.          Caption         =   "Repaint screen"
  154.          Height          =   375
  155.          Left            =   120
  156.          TabIndex        =   25
  157.          Top             =   1680
  158.          Width           =   1335
  159.       End
  160.       Begin VB.CommandButton Command15 
  161.          Caption         =   "Connect drive"
  162.          Height          =   375
  163.          Left            =   120
  164.          TabIndex        =   24
  165.          Top             =   1200
  166.          Width           =   1335
  167.       End
  168.       Begin VB.CommandButton Command10 
  169.          Caption         =   "Add hardware"
  170.          Height          =   375
  171.          Left            =   120
  172.          TabIndex        =   12
  173.          Top             =   720
  174.          Width           =   1335
  175.       End
  176.       Begin VB.CommandButton Command9 
  177.          Caption         =   "Print test page"
  178.          Height          =   375
  179.          Left            =   120
  180.          TabIndex        =   11
  181.          Top             =   240
  182.          Width           =   1335
  183.       End
  184.    End
  185.    Begin VB.Frame Frame2 
  186.       Caption         =   "Exit Windows"
  187.       Height          =   3135
  188.       Left            =   60
  189.       TabIndex        =   3
  190.       Top             =   1440
  191.       Width           =   1575
  192.       Begin VB.CommandButton Command8 
  193.          Caption         =   "Force shutdown"
  194.          Height          =   375
  195.          Left            =   120
  196.          TabIndex        =   9
  197.          Top             =   2640
  198.          Width           =   1335
  199.       End
  200.       Begin VB.CommandButton Command7 
  201.          Caption         =   "Restart explorer"
  202.          Height          =   375
  203.          Left            =   120
  204.          TabIndex        =   8
  205.          Top             =   2160
  206.          Width           =   1335
  207.       End
  208.       Begin VB.CommandButton Command6 
  209.          Caption         =   "Reboot"
  210.          Height          =   375
  211.          Left            =   120
  212.          TabIndex        =   7
  213.          Top             =   1200
  214.          Width           =   1335
  215.       End
  216.       Begin VB.CommandButton Command5 
  217.          Caption         =   "Shutdown"
  218.          Height          =   375
  219.          Left            =   120
  220.          TabIndex        =   6
  221.          Top             =   240
  222.          Width           =   1335
  223.       End
  224.       Begin VB.CommandButton Command4 
  225.          Caption         =   "Log off"
  226.          Height          =   375
  227.          Left            =   120
  228.          TabIndex        =   5
  229.          Top             =   1680
  230.          Width           =   1335
  231.       End
  232.       Begin VB.CommandButton Command3 
  233.          Caption         =   "Shutdown 2"
  234.          Height          =   375
  235.          Left            =   120
  236.          TabIndex        =   4
  237.          Top             =   720
  238.          Width           =   1335
  239.       End
  240.    End
  241.    Begin VB.Frame Frame1 
  242.       Caption         =   "Arrange windows"
  243.       Height          =   1215
  244.       Left            =   60
  245.       TabIndex        =   0
  246.       Top             =   0
  247.       Width           =   1575
  248.       Begin VB.CommandButton Command2 
  249.          Caption         =   "Cascade"
  250.          Height          =   375
  251.          Left            =   120
  252.          TabIndex        =   2
  253.          Top             =   720
  254.          Width           =   1355
  255.       End
  256.       Begin VB.CommandButton Command1 
  257.          Caption         =   "Tile"
  258.          Height          =   375
  259.          Left            =   120
  260.          TabIndex        =   1
  261.          Top             =   240
  262.          Width           =   1355
  263.       End
  264.    End
  265. Attribute VB_Name = "Form1"
  266. Attribute VB_GlobalNameSpace = False
  267. Attribute VB_Creatable = False
  268. Attribute VB_PredeclaredId = True
  269. Attribute VB_Exposed = False
  270. 'Author Marek Letosnik
  271. 'letosnik@atlas.cz
  272. 'Sorry for my bad english
  273. Private Sub Command1_Click()
  274. Shell "rundll32 user,tilechildwindows"
  275. End Sub
  276. Private Sub Command10_Click()
  277. Shell "rundll32 sysdm.cpl,InstallDevice_Rundll"
  278. End Sub
  279. Private Sub Command11_Click()
  280. 'Swapped buttons is not possible return to default state
  281. 'with this function
  282. Shell "rundll32 user,swapmousebutton"
  283. End Sub
  284. Private Sub Command12_Click()
  285. 'This function change the cursor blink time, but i don't know
  286. 'which values is right. I tried values from 0 to thousands and
  287. 'cursor always blink very quick :-(
  288. Shell "rundll32 user,setcaretblinktime val(text1)"
  289. Text1.SetFocus
  290. 'You can change also DoubleClick time:
  291. 'Shell "rundll32 user,setdoubleclicktime val(text1)"
  292. End Sub
  293. Private Sub Command13_Click()
  294. 'This will disable keyboard
  295. 'Usage this command with "enable" parameter is not functional!
  296. If MsgBox("Disabled keyboard will be functional only after rebooting! Do You want to continue?", vbCritical + vbYesNo, "Caution!") = vbNo Then Exit Sub
  297. Shell "rundll32 keyboard,disable"
  298. End Sub
  299. Private Sub Command14_Click()
  300. 'This will disable mouse
  301. 'Usage this command with "enable" parameter is not functional!
  302. If MsgBox("Disabled mouse will be functional only after rebooting! Do You want to continue?", vbCritical + vbYesNo, "Caution!") = vbNo Then Exit Sub
  303. Shell "rundll32 mouse,disable"
  304. End Sub
  305. Private Sub Command15_Click()
  306. Shell "rundll32 user,wnetconnectdialog"
  307. End Sub
  308. Private Sub Command16_Click()
  309. If MsgBox("All unsaved work will be lost! Do You want to continue?", vbCritical + vbYesNo, "Caution!") = vbNo Then Exit Sub
  310. Shell "rundll32 user,disableoemlayer"
  311. End Sub
  312. Private Sub Command17_Click()
  313. Shell "rundll32 user,repaintscreen"
  314. End Sub
  315. Private Sub Command19_Click()
  316. Shell "rundll32 diskcopy,DiskCopyRunDll", vbNormalFocus
  317. End Sub
  318. Private Sub Command2_Click()
  319. Shell "rundll32 user,cascadechildwindows"
  320. End Sub
  321. Private Sub Command20_Click()
  322. 'Someone not have file "muai.dll"
  323. Shell "rundll32 muai.dll,RnaWizard/1"
  324. '/1 = no title screen
  325. End Sub
  326. Private Sub Command21_Click()
  327. Shell "rundll32 shell32,OpenAs_RunDLL"
  328. End Sub
  329. Private Sub Command22_Click()
  330. Shell "rundll32 shell32,SHFormatDrive"
  331. End Sub
  332. Private Sub Command23_Click()
  333. Shell "rundll32 shell32,Control_RunDLL", vbNormalFocus
  334. End Sub
  335. Private Sub Command24_Click()
  336. Shell "rundll32 shell32,Control_RunDLL desk.cpl"
  337. End Sub
  338. Private Sub Command25_Click()
  339. Shell "rundll32 shell32,Control_RunDLL main.cpl @" & Combo1.ItemData(Combo1.ListIndex)
  340. End Sub
  341. Private Sub Command3_Click()
  342. Shell "rundll32 user,exitwindows"
  343. End Sub
  344. Private Sub Command4_Click()
  345. Shell "rundll32 shell32,SHExitWindowsEx 0"
  346. End Sub
  347. Private Sub Command5_Click()
  348. Shell "rundll32 shell32,SHExitWindowsEx 1"
  349. End Sub
  350. Private Sub Command6_Click()
  351. Shell "rundll32 shell32,SHExitWindowsEx 2"
  352. End Sub
  353. Private Sub Command7_Click()
  354. If MsgBox("All unsaved work will be lost! Do You want to continue?", vbCritical + vbYesNo, "Caution!") = vbNo Then Exit Sub
  355. Shell "rundll32 shell32,SHExitWindowsEx -1"
  356. End Sub
  357. Private Sub Command8_Click()
  358. If MsgBox("All unsaved work will be lost! Do You want to continue?", vbCritical + vbYesNo, "Caution!") = vbNo Then Exit Sub
  359. Shell "rundll32 krnl386.exe,exitkernel"
  360. End Sub
  361. Private Sub Command9_Click()
  362. Shell "rundll32 msprint2.dll,RUNDLL_PrintTestPage"
  363. End Sub
  364. Private Sub Form_Load()
  365. Combo1.ListIndex = 0
  366. End Sub
  367.