Notepad Program?

ZRTMWA

New member
Local time
4:39 AM
Messages
6
Does anyone have/ know some code I could save into my notepad as a .bat file or something that would act as software on my computer. The only other program made out of code saved into notepad that I've seen opened/ejected the cd drive.

I want it to perform the same function as pressing the Fn key + the number one "1" on my keyboard.

I have this software I downloaded called CoreTemp that allows you to browse for a program to execute with your processor reaches a certain temperature (in degrees Celcius). The FN+1 shortcut on my computer turns the fan to 100% power.

Does anyone know how? I'm new to programming entirely.

Thanks.
Chris
 

My Computer

OS
64 bit Windows 7 Ultimate
What scan code does your keyboard generate for Fn + 1? That's the quandary. The Fn key by itself does not generate a code. The keyboard processor modifies the code placed in the keyboard buffer for other keys when the Fn key is pressed. It's usually keyboard specific. At least I haven't seen any spec for it. It doesn't appear in any keyboard character table and since it doesn't generate a code, you can't "read" it to perform an action.

In your case, it sounds like the Fn + 1 is being handled by a driver or the BIOS. On my PC all it does is generate a "1". :confused:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
I have no idea. It just cranks up the fan to 100%. I have a Sager Laptop with a Clevo Co. W150HRM motherboard. The BIOS is by American Megatrends Inc. Version 4.6.4
 

My Computer

OS
64 bit Windows 7 Ultimate
What exactly are you trying to do? Send keystrokes from a program? If so, the easiest for newbie programmers on Windows is probably AutoIt3

The syntax is very much like Basic with Select Case, While Wend, For loops etc..

You use the Send command to send keystrokes. For example Send("{F1}")

If you don't have function keys on your keyboard you can use another combination as hotkey and use Send to send the F1 instead. Use HotKeySet function to associate a hotkey with a function(not a function key but a block of code that is called by name.) The AutoIt3 download comes with a help file with many examples.

There's also a user forum to ask questions and ask for help.

AutoIt Forums


edit: btw not every AutoIt3 program is a hotkey. You can do stuff with it very similar to basic and other programs. But the way the hotkey programs work, they place an icon in the Task Tray and watch for the key presses. When they see the one you set as the hotkey, they call the function you associated with the key. The function can do stuff like pop up a window, or just send a different key or combination of keys to the active window etc..
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
No, he wants a script or program to send (Fn + 1), which is undefined, to an undefined program (fan control) when another program (CoreTemp) executes the first script or program. Ideally, you'd want CoreTemp to just execute a program to ramp the fan(s) up but poking into the BIOS is beyond me.

Maybe the thing to do is search for an exsisting program that all it does is run the fans at 100% for some period of time. I'm pretty sure it will need to be BIOS specific though.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
No, he wants a script or program to send (Fn + 1), which is undefined, to an undefined program (fan control) when another program (CoreTemp) executes the first script or program. Ideally, you'd want CoreTemp to just execute a program to ramp the fan(s) up but poking into the BIOS is beyond me.

Maybe the thing to do is search for an exsisting program that all it does is run the fans at 100% for some period of time. I'm pretty sure it will need to be BIOS specific though.

If Fn + 1, whatever that is, is a global hotkey, then AutoIt3 can send it. It's trivial. Just lo9ok in the help file. I don't get all the bit about the BIOS. If there's a software running that bumps the fans when you press the hotkey combo and the hotkey is global, then you can simulate it with AutuIt3. It's a macro app foremost and also a general scripting language for Windows programming.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
That is the problem. The Fn key is NOT a hot key. It has no keyboard code--It doesn't generate any character. The Fn key instructs the keyboard processor to change the key code for the next character typed. It's that modified key code that is undefined. You can't send (Fn + 1) it in a script if you don't know what it is.

I think it would be better to just use Speed Fan. It has automatic fan control built in when temps go above a preset limit. And, you can set the fan to 100% if you wish.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
I've tried SpeedFan before. My MoBo wasn't on the list of compatibles and sure enough, I had zero fan control options. The only thing it was good for was telling me my CPU and GPU temps. I'll try out AutoIt3 though.
 

My Computer

OS
64 bit Windows 7 Ultimate
Just to make sure I understand what's happening; Can you type Fn + 1 at anytime to increase fan speed or is it only when CoreTemp is running? In other words, is CoreTemp controlling the fan?

Out of curiosity, could you run Windows Task Manager then click on the Processes tab? At the bottom, check "Show processes from all users". Then post a screen shot. You might have to post it in two sections if your's is long.

Just wondering if we can figure out what process, if any, is "watching" for the {Fn + 1}.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
Back
Top