I generated a spreadsheet app with VBA with DropDown List on my laptop (Vista OS) to user selection. Then using Sendkey I send out strings to be intrepreted by AutoHotKey scripts. This process works on laptop, but not on XP workstation at work.
vbs script using: WshShell.SendKeys "%I" works on XP workstation but vba Sendkey command (SendKeys "%y") within Excel 2003 on XP workstation does not work.
I'm using this with AutoHotKey scripts to call up a URL and various hotkey functions.
This is in my AHK scrip file and it's looking for a Alt I
!I::SendInput, {F6} http://www.google.com/search?q=GG&rl...e7&rlz=1I7ADBF {ENTER}
Which Selects the Favorites tab on IE browser on XP instead of going to URL for Google.
Please note AltI in vb script = %I
I'm thinking I need to switch a setting in Excel.
Also when sending SendKey (key strokes) to Notepad
like BELL = WD6
AutoHotKey switches BELL to WD6 but from XP while in Excel it only sends
BELL and does not switch to WD6. But again this works correctly on laptop.
The following vb script works on XP but not in Excel which switches a word to a code.
WshShell.AppActivate "CMIS-COMTRAK Asset Information - Microsoft Internet Explorer provided by Serco Inc."
WScript.Sleep 5000
'WshShell.SendKeys "%y"
'WScript.Sleep 1000
WshShell.SendKeys "bell"
Bell will automatically be switched to WD6 on laptop as vb script and in Excel in vba on laptop.
Can anyone help?
Bookmarks