Mouse click/keyboard selection on GSTIN on some other page ; thereafter I press the hotkey.
(Use this GSTIN 07ARJPP6864D1ZG for trials of your codes)
Code: Select all
^`::
{
Send, ^c
Sleep 50
Run, chrome.exe --new-window https://services.gst.gov.in/services/searchtp
WinWait, ahk_exe chrome.exe
WinMaximize, ahk_exe chrome.exe
Sleep 1000
Send {Tab 13}
Send, ^v
Sleep 4000
Send, {Tab}
Sleep 5000
Send, {Enter}
Sleep 200
Send, {tab 2}
Send, {space}
return
}
Code: Select all
Send, ^c
URL = https://services.gst.gov.in/services/searchtp
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
WinMaximize, % "ahk_id " WB.HWND
wb.Navigate(URL)
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy
; wait for the page to load
Sleep, 10
gstin := wb.document.getElementById("for_gstin")
gstin.value := Clipboard
Sleep 100
wb.document.getElementById("for_gstin").click()
Sleep 100
Send, {Tab}
Sleep 3000
wb.document.getElementById("lotsearch").click()
return
The code works till clipboard paste only. Rest you guys may try to help me in. I do not have IT background so don't know how all this works.