- Messages
- 147
- Reaction score
- 1
- Points
- 28
magandang araw mga ka-SYMB, gusto ko po sana gumawa nang Auto Retarget Application para sa Cabal PH .. kaso po hindi ko lang alam kung ano ang code na ilalagay ko para maemulate ang keystrokes
eto po yung code ko ngayon,
pag dinedebug ko sya at tinetest with notepad, lumalabas po na ok yung emulation nang keystrokes .. pero pag tinatry ko sya sa Cabal, once na maifocus ko ang window nang Cabal nagka Crash na yung application ko at eto po ang error report
sa tingin ko lang po kse, dun sa code, parang ang inemulate nya ay yung mismong letters/numbers/symbols na iiinput nang user at hindi yung keystroke kaya sya nagka crash ..
kaya po ang hihingin kong tulong sa inyo ay, kung ano po ang code para ma emulate ko ang Keystrokes sa keyboard para gumana ang AutoHotKey ko ? .. salamat po in advance mga kaibigan
eto po yung code ko ngayon,
Code:
My.Computer.Keyboard.SendKeys("1", True) 'Command to emulate keystroke
System.Threading.Thread.Sleep(1000) 'Command to delay execution of next line
My.Computer.Keyboard.SendKeys("2", True)
System.Threading.Thread.Sleep(1000)
My.Computer.Keyboard.SendKeys("3", True)
System.Threading.Thread.Sleep(1000)
pag dinedebug ko sya at tinetest with notepad, lumalabas po na ok yung emulation nang keystrokes .. pero pag tinatry ko sya sa Cabal, once na maifocus ko ang window nang Cabal nagka Crash na yung application ko at eto po ang error report
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
at System.Windows.Forms.SendKeys.SendInput(Byte[] oldKeyboardState, Queue previousEvents)
at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
at Hyper_Retargeter_1._0.Form1.btnEnable_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18051 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Hyper Retargeter 1.0
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Kristian%20Acel%20Cua/Desktop/Hyper%20Retargeter%201.0.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50709.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18033 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18037 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18053 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18053 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
sa tingin ko lang po kse, dun sa code, parang ang inemulate nya ay yung mismong letters/numbers/symbols na iiinput nang user at hindi yung keystroke kaya sya nagka crash ..
kaya po ang hihingin kong tulong sa inyo ay, kung ano po ang code para ma emulate ko ang Keystrokes sa keyboard para gumana ang AutoHotKey ko ? .. salamat po in advance mga kaibigan