Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Notepad Program?

01 Aug 2011   #1
ZRTMWA

64 bit Windows 7 Ultimate
 
 
Notepad Program?

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 System SpecsSystem Spec
.
02 Aug 2011   #2
carwiz

Windows 7 Pro-x64
 
 

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".
My System SpecsSystem Spec
03 Aug 2011   #3
ZRTMWA

64 bit Windows 7 Ultimate
 
 

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 System SpecsSystem Spec
.

04 Aug 2011   #4
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
04 Aug 2011   #5
carwiz

Windows 7 Pro-x64
 
 

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 System SpecsSystem Spec
04 Aug 2011   #6
carwiz

Windows 7 Pro-x64
 
 

Here's an alternative - Dump CoreTemp and run Speed Fan.

http://www.almico.com/speedfan.php
My System SpecsSystem Spec
05 Aug 2011   #7
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by carwiz View Post
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 System SpecsSystem Spec
05 Aug 2011   #8
carwiz

Windows 7 Pro-x64
 
 

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 System SpecsSystem Spec
05 Aug 2011   #9
ZRTMWA

64 bit Windows 7 Ultimate
 
 

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 System SpecsSystem Spec
05 Aug 2011   #10
carwiz

Windows 7 Pro-x64
 
 

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 System SpecsSystem Spec
Reply

 Notepad Program?




Thread Tools




Similar help and support threads
Thread Forum
Trying to copy txt file in Notepad. "Notepad: Access is denied"
:mad::confused::cry: If I had known how much hassle Win 7 was I would have stuck with XP! Well I suppose its a learning curve.... Latest major hassle, I have a text file on my E:\drive, this is a copy of my XP C:\ drive before I installed Win 7 on it. I have now been able to get to it...
General Discussion
Relocated a Program Folder (Notepad ++) icon is now Generic
Hey I installed Notepad++ to E:\ then I relocated it to a subfolder on that partition. When I went to "uninstall" hoping it would give option to "fix" it didn't recognize the program. Basically I relocated the application folder from its orig install location, now the application icon is...
Software
problem from replaced notepad ++ with notepad
I find some post that saying can replace our notepad with notepad++ so I do it but now it had a problem with notepad++ because when I open every *.txt it ask to create new file....like this picture
Installation & Setup
Error message when I replaces "notepad.exe" by "notepad++.exe"
Hi, I folow this tutorial: How To Replace Notepad in Windows 7 - How-To Geek After, when I started the "notepad.exe" (notepad++ executable) from C:\Windows the error below appears:
General Discussion
Notepad++ 5.5.1 available
source..
Software
Notepad++ 5.5.0 Available
source..
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:58.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App