Include turning on Caps Lock????

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Include turning on Caps Lock????

Post by PepsiHog » Mon Dec 03, 2012 7:02 am

Hello Everyone,

Here is another great, "What the??!!!".

The include in this script is turning on caps lock. I spent time eliminating possibilities, such as the dialog. And the included scripts. I commented out all the srt's that are in the included scripts. But it still turns on caps lock. (????) Basically, there's no code left to execute, but for the includes.

So to re-CAP (ha-ha), there isn't much left and I can't figure this out. Maybe it's my computer. And that's fine if it is. But I rebooted twice, and it WAS working at one point, but I'm not sure if I just didn't notice it.

I am running V12.1.10. With Windows XP sp3. There are notes in the script as well.

If someone is up to it, will you test this script and see if you get the same result? I will restore my XP if needed, but first I'd like to be sure that's what it is.

Thanks in advance,
PepsiHog

Code: Select all

// COMPILE_OPTS|C:\Documents and Settings\Felix The Cat\Desktop\gui_com.exe||CONSOLE=0|INCLUDES=1| /LOGFILE=\dev\nul /NOSYSTRAY /HIDE /NOSTOPKEY

let>FPath=%Desktop_Dir%
let>Simi=;

// exports added just for posting.
ExportData>ADDDIALOGHANDLERS.SCP_DATA,%FPath%\ADDDIALOGHANDLERS.SCP
ExportData>BUTTON_DEFS.SCP_DATA,%FPath%\BUTTON_DEFS.SCP
ExportData>COMONE_INCLUDES.SCP_DATA,%FPath%\COMONE_INCLUDES.SCP
ExportData>COMONE_INCLUDES.SCP_DATA,%FPath%\CUT_COPY_PASTE.SCP

Include>%FPath%\ComOne_Includes.scp

// Windows XP sp3  - MS v12.1.10 (last avail ver 12)

// Dialog1 was here.

// Dialog1 was commented out, and problem continued.

// once this gosub excutes, it turns on caps lock.
GoSub>Do_Includes
//GoSub>Do_AddDialogHandlers
//GoSub>Do_Button_Defs
//GoSub>Do_Create_Read_Ini_File

//CapsOff

//Show>Dialog1,r
wait>99999999

srt>DoExit
  exit
END>DoExit




/*
ADDDIALOGHANDLERS.SCP_DATA:
FFFE0D000A000D000A007300720074003E0044006F005F004100640064004400690061006C006F006700480061006E0064006C006500720073000D000A002F002F004100640064004400690061006C006F006700480061006E0064006C00650072003E004400690061006C006F00670031002C004D0065006E0075004900740
065006D0035002C004F006E0043006C00690063006B002C0044006F0045007800690074000D000A002F002F004100640064004400690061006C006F006700480061006E0064006C00650072003E004400690061006C006F00670031002C004D0065006E0075004900740065006D0037002C004F006E0043006C00690063006B
002C0044006F005F004300750074000D000A002F002F004100640064004400690061006C006F006700480061006E0064006C00650072003E004400690061006C006F00670031002C004D0065006E0075004900740065006D0038002C004F006E0043006C00690063006B002C0044006F005F0043006F00700079000D000A002
F002F004100640064004400690061006C006F006700480061006E0064006C00650072003E004400690061006C006F00670031002C004D0065006E0075004900740065006D0039002C004F006E0043006C00690063006B002C0044006F005F00500061007300740065000D000A000D000A0045004E0044003E0044006F005F00
4100640064004400690061006C006F006700480061006E0064006C00650072007300
*/

/*
BUTTON_DEFS.SCP_DATA:
FFFE0D000A000D000A007300720074003E0044006F005F0042007500740074006F006E005F0044006500660073000D000A002F002F0020005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E002C00540
06500780074002C00200020000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0031002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F0067
00500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0032002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D005
30042007500740074006F006E0033002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0034002C0054006500780074002C000D000A002F002F005300
650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0035002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690
061006C006F00670031002C004D00530042007500740074006F006E0036002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0037002C005400650078
0074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0038002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F007
00065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E0039002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D005300420075007400
74006F006E00310030002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310031002C0054006500780074002C000D000A002F002F0053006500740
04400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310032002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061
006C006F00670031002C004D00530042007500740074006F006E00310033002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310034002C0054006
500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310035002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F0067005000
72006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310036002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530
042007500740074006F006E00310037002C0054006500780074002C000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F00670031002C004D00530042007500740074006F006E00310038002C0054006500780074002C0043006C006F0073
0065000D000A0045004E0044003E0044006F005F0042007500740074006F006E005F0044006500660073000D000A00
*/

/*
COMONE_INCLUDES.SCP_DATA:
FFFE0D000A000D000A002F002F00200049006E0063006C007500640065007300200066006F007200200043006F006D0031000D000A000D000A007300720074003E0044006F005F0049006E0063006C0075006400650073000D000A0049006E0063006C007500640065003E0043003A005C0044006F00630075006D0065006E0
074007300200061006E0064002000530065007400740069006E00670073005C00460065006C0069007800200054006800650020004300610074005C004400650073006B0074006F0070005C00470055004900200053007500620073005C004300750074005F0043006F00700079005F00500061007300740065002E00730063
0070000D000A0049006E0063006C007500640065003E0043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C00460065006C0069007800200054006800650020004300610074005C004400650073006B0074006F0070005C0047005500490020005
3007500620073005C004100640064004400690061006C006F006700480061006E0064006C006500720073002E007300630070000D000A0049006E0063006C007500640065003E0043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C0046006500
6C0069007800200054006800650020004300610074005C004400650073006B0074006F0070005C00470055004900200053007500620073005C0042007500740074006F006E005F0044006500660073002E007300630070000D000A0049006E0063006C007500640065003E0043003A005C0044006F00630075006D0065006E0
074007300200061006E0064002000530065007400740069006E00670073005C00460065006C0069007800200054006800650020004300610074005C004400650073006B0074006F0070005C00470055004900200053007500620073005C004300720065006100740065005F0052006500610064005F0049006E0069005F0046
0069006C0065002E007300630070000D000A0045004E0044003E0044006F005F0049006E0063006C007500640065007300
*/

/*
COMONE_INCLUDES.SCP_DATA:
FFFE0D000A007300720074003E0044006F005F004300720065006100740065005F0052006500610064005F0049006E0069005F00460069006C0065000D000A002F002F0049006600460069006C0065004500780069007300740073003E0025004600500061007400680025005C00690043006F006E006600690067002E00690
06E0069000D000A002F002F0065006C00730065000D000A002F002F00570072006900740065004C006E003E0025004600500061007400680025005C00690043006F006E006600690067002E0069006E0069002C007700740066002C005B004D00610069006E005D000D000A002F002F00450064006900740049006E00690046
0069006C0065003E0025004600500061007400680025005C00690043006F006E006600690067002E0069006E0069002C004D00610069006E002C00530065006300740069006F006E0073002C004D00610069006E003B000D000A002F002F00450064006900740049006E006900460069006C0065003E0025004600500061007
400680025005C00690043006F006E006600690067002E0069006E0069002C004D00610069006E002C0045006E00740072006900650073002C00530065006300740069006F006E0073003B0045006E00740072006900650073003B000D000A002F002F0065006E006400690066000D000A002F002F0052006500610064004900
6E006900460069006C0065003E0025004600500061007400680025005C00690043006F006E006600690067002E0069006E0069002C004D00610069006E002C00530065006300740069006F006E0073002C0043006F006D00530065006300740069006F006E0073000D000A002F002F0053007400720069006E0067005200650
070006C006100630065003E0043006F006D00530065006300740069006F006E0073002C003B002C00630072006C0066002C0043006F006D00530065006300740069006F006E0073000D000A002F002F005300650074004400690061006C006F006700500072006F00700065007200740079003E004400690061006C006F0067
0031002C004D0053004C0069007300740042006F00780031002C0054006500780074002C00250043006F006D00530065006300740069006F006E00730025000D000A0045004E0044003E0044006F005F004300720065006100740065005F0052006500610064005F0049006E0069005F00460069006C006500
*/

/*
CUT_COPY_PASTE.SCP_DATA:
FFFE0D000A000D000A007300720074003E0044006F005F004300750074000D000A002F002F005000720065007300730020004300540052004C000D000A002F002F0077006100690074003E002E00300031000D000A002F002F00530065006E00640054006500780074003E0078000D000A002F002F0077006100690074003E0
02E00300031000D000A002F002F00520065006C00650061007300650020004300540052004C000D000A0045004E0044003E0044006F005F004300750074000D000A000D000A007300720074003E0044006F005F0043006F00700079000D000A002F002F005000720065007300730020004300540052004C000D000A002F002F
0077006100690074003E002E00300031000D000A002F002F00530065006E00640054006500780074003E0063000D000A002F002F0077006100690074003E002E00300031000D000A002F002F00520065006C00650061007300650020004300540052004C000D000A0045004E0044003E0044006F005F0043006F00700079000
D000A000D000A007300720074003E0044006F005F00500061007300740065000D000A002F002F0047006500740043006C006900700042006F006100720064003E0043006C00690070000D000A002F002F00530065006E00640054006500780074003E00250043006C006900700025000D000A0045004E0044003E0044006F00
5F0050006100730074006500
*/
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 03, 2012 3:10 pm

You provide some included scripts as exported data. The one of those that you include in the posted sample Includes four more scripts that are in a folder on your desktop. Whats in those scripts?

Code: Select all

srt>Do_Includes
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Cut_Copy_Paste.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\AddDialogHandlers.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Button_Defs.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Create_Read_Ini_File.scp
END>Do_Includes

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Dec 03, 2012 3:30 pm

Might want to search in files for "CapsOn"
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Hello

Post by PepsiHog » Mon Dec 03, 2012 7:42 pm

@JRL,

Thanks for helping. There are 5 binary files. Four(4) of those files are imported by the fifth binary file. In my macro the includes will change based on what needs to be done. That's why the fifth macro is an include script. The main script "includes" the ever changing includes in the ComOne_INCLUDES.SCP. This process makes updating each mini script possible.

By binary I mean the binary imports in the provided script.(not exe's) This was done only for posting to this forum. The binary data isn't actually part of the macro. They are all separate scripts for their part in my macro.

//////////////////////////////////////////////////////////////////////////////////
Edit - JRL- I meant to change the paths to just Desktop_Dir. I see why you were confused. Sorry. The four includes are the other 4 imported binaries. If you look in this macro FPath is Desktop_Dir. FPath was originally the path you see in the four includes.
//////////////////////////////////////////////////////////////////////////////////

@Marcus,

I have searched all macros and the dialog(dialog not included here). I thought of that already. The dialog was eliminated, thus was not included in the post. In-fact, if you look at the scripts that are in binary, all lines are commented out. (Granted, you can't tell that until you export them.) There is nothing but a skeleton of a macro here, and it still turns on caps lock.

I eliminated the dialog by copying it to a new script and executing it from there. Caps did not turn on. Also without the dialog caps still turns on.
I did as you suggested as one of the very first steps in problem solving.

And ofcourse, thanks for helping, Marcus.

L8tr,
PepsiHog
Last edited by PepsiHog on Mon Dec 03, 2012 7:53 pm, edited 1 time in total.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 03, 2012 7:50 pm

I didn't mention that the skeleton macro you've posted did not change my caps lock setting. But the skeleton macro run on your computer will include and execute those scripts in your Desktop\GUI Subs folder. So it sounds to me like something in one of those scripts is the culprit.

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Hello

Post by PepsiHog » Mon Dec 03, 2012 7:59 pm

JRL-

Those four are the binary. See above post.

It is within the Include process that the caps lock turns on. So if you did not do the include the caps lock wouldn't turn on.

Thanks,
PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 03, 2012 8:36 pm

Sorry. I'm confused.

To start with there are five binaries in your posted script but two of them have the same label name "COMONE_INCLUDES.SCP_DATA:" they are not identical scripts.

Second, of the four Exportdata> lines. two of them are using the COMONE_INCLUDES.SCP_DATA to create two files that are identical. But in the sample that's ok because you only include> one of them.

Of the five binaries the only one that has any usable code is COMONE_INCLUDES.SCP_DATA and it turns out you include that script.

I can run the script up to that point.

The included script "COMONE_INCLUDES.SCP" then wants to include 4 more files that I don't have.

Is all that correct?

Edit: just saw your updated post. I'll readjust and try again.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 03, 2012 9:11 pm

I reset things so that I could include the binary scripts. Still no change to my caps lock settings. There is one issue still. The last file the "COMONE_INCLUDES.SCP" wants to include is one named "Create_Read_Ini_File.scp". That one is not in the binaries so don't know what it might contain.

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Hello

Post by PepsiHog » Mon Dec 03, 2012 9:21 pm

You are correct, JRL. I made a mistake in the original post and posted two scripts of the same.

Here are all the external scripts.

Code: Select all


srt>Do_Create_Read_Ini_File
//IfFileExists>%FPath%\iConfig.ini
//else
//WriteLn>%FPath%\iConfig.ini,wtf,[Main]
//EditIniFile>%FPath%\iConfig.ini,Main,Sections,Main;
//EditIniFile>%FPath%\iConfig.ini,Main,Entries,Sections;Entries;
//endif
//ReadIniFile>%FPath%\iConfig.ini,Main,Sections,ComSections
//StringReplace>ComSections,;,crlf,ComSections
//SetDialogProperty>Dialog1,MSListBox1,Text,%ComSections%
END>Do_Create_Read_Ini_File

//////////////////////////////////////////////////////////////////////

srt>Do_AddDialogHandlers
//AddDialogHandler>Dialog1,MenuItem5,OnClick,DoExit
//AddDialogHandler>Dialog1,MenuItem7,OnClick,Do_Cut
//AddDialogHandler>Dialog1,MenuItem8,OnClick,Do_Copy
//AddDialogHandler>Dialog1,MenuItem9,OnClick,Do_Paste

END>Do_AddDialogHandlers

//////////////////////////////////////////////////////////////////////

srt>Do_Button_Defs
// SetDialogProperty>Dialog1,MSButton,Text,  
//SetDialogProperty>Dialog1,MSButton1,Text,
//SetDialogProperty>Dialog1,MSButton2,Text,
//SetDialogProperty>Dialog1,MSButton3,Text,
//SetDialogProperty>Dialog1,MSButton4,Text,
//SetDialogProperty>Dialog1,MSButton5,Text,
//SetDialogProperty>Dialog1,MSButton6,Text,
//SetDialogProperty>Dialog1,MSButton7,Text,
//SetDialogProperty>Dialog1,MSButton8,Text,
//SetDialogProperty>Dialog1,MSButton9,Text,
//SetDialogProperty>Dialog1,MSButton10,Text,
//SetDialogProperty>Dialog1,MSButton11,Text,
//SetDialogProperty>Dialog1,MSButton12,Text,
//SetDialogProperty>Dialog1,MSButton13,Text,
//SetDialogProperty>Dialog1,MSButton14,Text,
//SetDialogProperty>Dialog1,MSButton15,Text,
//SetDialogProperty>Dialog1,MSButton16,Text,
//SetDialogProperty>Dialog1,MSButton17,Text,
//SetDialogProperty>Dialog1,MSButton18,Text,Close
END>Do_Button_Defs

///////////////////////////////////////////////////////////////////////////

srt>Do_Includes
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Cut_Copy_Paste.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\AddDialogHandlers.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Button_Defs.scp
Include>C:\Documents and Settings\Felix The Cat\Desktop\GUI Subs\Create_Read_Ini_File.scp
END>Do_Includes

//////////////////////////////////////////////////////////////////////////////

srt>Do_Cut
//Press CTRL
//wait>.01
//SendText>x
//wait>.01
//Release CTRL
END>Do_Cut

srt>Do_Copy
//Press CTRL
//wait>.01
//SendText>c
//wait>.01
//Release CTRL
END>Do_Copy

srt>Do_Paste
//GetClipBoard>Clip
//SendText>%Clip%
END>Do_Paste

//////////////////////////////////////////////////////////////////////////////////
srt>Do_Includes --- is saved as ComOne_Includes.scp

All the others are named as the srt.

Dang! Sorry I crapped up this post! My bad.

Sorry for that.
PepsiHog
Last edited by PepsiHog on Mon Dec 03, 2012 9:36 pm, edited 1 time in total.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 03, 2012 9:34 pm

OK. I now have a script that writes the binary versions of your scripts to files and includes them and I still don't get any change of th state of my caps lock key.

I'm on XP SP3 using Macro Scheduler 13.2.3

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Hello

Post by PepsiHog » Mon Dec 03, 2012 9:39 pm

JRL-

Ok. Thank you so much. I'm sorry for all the mistakes I made in my post.

Looks like I'm on to retoring XP. Oh, well.

Thanks again,
PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts